Skip to content

Commit

Permalink
update ruff; bump version 2.0a10
Browse files Browse the repository at this point in the history
  • Loading branch information
bpuchala committed Jul 12, 2024
1 parent f90594e commit 3d5be22
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 15 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ All notable changes to `libcasm-xtal` will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [2.0a10] - 2024-07-12

### Changed

- Clarified documentation for `libcasm.xtal.Lattice.is_equivalent_to`
- Wheels compiled with numpy>=2.0.0
- Run github actions on push, pull_request, and weekly
- Use ruff NPY201


## [2.0a9] - 2024-03-13
Expand Down
2 changes: 1 addition & 1 deletion build_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ scikit-build
cmake>=3.20
ninja
pybind11>=2.6
libcasm-global>=2.0.4
libcasm-global>=2.0.5
16 changes: 8 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ requires = [
"cmake>=3.20",
"ninja",
"pybind11>=2.6",
"libcasm-global>=2.0.4",
"libcasm-global>=2.0.5",
]
build-backend = "setuptools.build_meta"

[project]
name = "libcasm-xtal"
version = "2.0a9"
version = "2.0a10"
authors = [
{ name="CASM developers", email="[email protected]" },
]
Expand All @@ -28,7 +28,7 @@ classifiers = [
"Topic :: Scientific/Engineering",
]
dependencies = [
"libcasm-global>=2.0.4",
"libcasm-global>=2.0.5",
"numpy",
]

Expand All @@ -41,13 +41,13 @@ source-dir = "doc"
build-dir = "doc/build"
all_files = 1

[tool.ruff]
select = ["E", "F", "I"]
[tool.ruff.lint]
select = ["NPY201", "E", "F", "I"]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["libcasm", "casm"]

[tool.cibuildwheel]
Expand All @@ -57,7 +57,7 @@ build = "cp39-* cp310-* cp311-* cp312-*"
skip = "pp*"

# Need libcasm-global at wheel repair stage
before-build = "pip install libcasm-global>=2.0.4"
before-build = "pip install libcasm-global>=2.0.5"

# Testing
test-requires = "pytest pytest-datadir"
Expand Down
2 changes: 1 addition & 1 deletion python/doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# -- package specific configuration --
project = "libcasm-xtal"
version = "2.0" # The short X.Y version.
release = "2.0a9" # The full version, including alpha/beta/rc tags.
release = "2.0a10" # The full version, including alpha/beta/rc tags.
project_desc = "CASM Crystallography"
logo_text = "libcasm-xtal"
github_url = "https://github.com/prisms-center/CASMcode_crystallography/"
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ requires = [
"setuptools",
"wheel",
"pybind11>=2.8.0",
"libcasm-global>=2.0.4",
"libcasm-global>=2.0.5",
]
build-backend = "setuptools.build_meta"
4 changes: 2 additions & 2 deletions python/setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

__version__ = "2.0a9"
__version__ = "2.0a10"

# Available at setup time due to pyproject.toml
from pybind11.setup_helpers import Pybind11Extension, build_ext
Expand Down Expand Up @@ -71,7 +71,7 @@
name="libcasm-xtal",
version=__version__,
packages=["libcasm", "libcasm.xtal"],
install_requires=["pybind11", "libcasm-global>=2.0.4"],
install_requires=["pybind11", "libcasm-global>=2.0.5"],
ext_modules=ext_modules,
cmdclass={"build_ext": build_ext},
)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="libcasm-xtal",
version="2.0a9",
version="2.0a10",
packages=["libcasm", "libcasm.xtal"],
package_dir={"": "python"},
cmake_install_dir="python/libcasm",
Expand Down

0 comments on commit 3d5be22

Please sign in to comment.