Skip to content

Commit

Permalink
libcasm-global to >=2.0.4; libcasm-xtal to >=2.0a9; build python3.12 …
Browse files Browse the repository at this point in the history
…wheels
  • Loading branch information
bpuchala committed Mar 14, 2024
1 parent 6cdda32 commit 5b1ca80
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 34 deletions.
8 changes: 3 additions & 5 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
build_and_store_wheels: &BUILD_AND_STORE_WHEELS
install_cibuildwheel_script:
- python -m pip install cibuildwheel==2.14.1
- python -m pip install cibuildwheel==2.17.0
run_cibuildwheel_script:
- cibuildwheel
wheels_artifacts:
Expand All @@ -24,11 +24,9 @@ linux_aarch64_task:
macos_arm64_task:
name: Build macOS arm64 wheels.
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-xcode:latest
image: ghcr.io/cirruslabs/macos-sonoma-xcode
env:
PATH: /opt/homebrew/opt/[email protected]/bin:$PATH
CIBW_ARCHS_MACOS: arm64
PATH: /opt/homebrew/opt/[email protected]/libexec/bin:$PATH
install_pre_requirements_script:
- brew install [email protected]
- ln -s python3 /opt/homebrew/opt/[email protected]/bin/python
<<: *BUILD_AND_STORE_WHEELS
2 changes: 1 addition & 1 deletion .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: '3.11'

- name: Set up requirements and configuration variables
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: '3.11'

- name: Set up requirements & configuration variables
run: |
Expand All @@ -32,15 +32,15 @@ jobs:
uses: actions/cache/restore@v4
with:
path: CASMcode_global/dist
key: ${{ runner.os }}-libcasm-global-v2-0-3
key: ${{ runner.os }}-libcasm-global-v2-0-4

### libcasm-xtal ###
- name: restore libcasm-xtal cache
id: cache-libcasm-xtal-restore
uses: actions/cache/restore@v4
with:
path: CASMcode_crystallography/dist
key: ${{ runner.os }}-libcasm-xtal-v2-0a5
key: ${{ runner.os }}-libcasm-xtal-v2-0a9

- name: Install CASM dependencies
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-linux-cxx-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: '3.11'

- name: Set up requirements & configuration variables
run: |
Expand All @@ -32,15 +32,15 @@ jobs:
uses: actions/cache/restore@v4
with:
path: CASMcode_global/dist
key: ${{ runner.os }}-libcasm-global-v2-0-3
key: ${{ runner.os }}-libcasm-global-v2-0-4

### libcasm-xtal ###
- name: restore libcasm-xtal cache
id: cache-libcasm-xtal-restore
uses: actions/cache/restore@v4
with:
path: CASMcode_crystallography/dist
key: ${{ runner.os }}-libcasm-xtal-v2-0a5
key: ${{ runner.os }}-libcasm-xtal-v2-0a9

- name: Install CASM dependencies
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test-linux-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: '3.11'

- name: Set up requirements & configuration variables
run: |
Expand All @@ -24,15 +24,15 @@ jobs:
uses: actions/cache/restore@v4
with:
path: CASMcode_global/dist
key: ${{ runner.os }}-libcasm-global-v2-0-3
key: ${{ runner.os }}-libcasm-global-v2-0-4

- name: checkout libcasm-global
if: steps.cache-libcasm-global-restore.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: prisms-center/CASMcode_global
path: CASMcode_global
ref: v2.0.3
ref: v2.0.4

- name: make global
if: steps.cache-libcasm-global-restore.outputs.cache-hit != 'true'
Expand All @@ -58,15 +58,15 @@ jobs:
uses: actions/cache/restore@v4
with:
path: CASMcode_crystallography/dist
key: ${{ runner.os }}-libcasm-xtal-v2-0a5
key: ${{ runner.os }}-libcasm-xtal-v2-0a9

- name: checkout libcasm-xtal
if: steps.cache-libcasm-xtal-restore.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: prisms-center/CASMcode_crystallography
path: CASMcode_crystallography
ref: v2.0a5
ref: v2.0a9

- name: make xtal
if: steps.cache-libcasm-xtal-restore.outputs.cache-hit != 'true'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: '3.11'

- name: Set up requirements & configuration variables
run: |
Expand All @@ -32,15 +32,15 @@ jobs:
uses: actions/cache/restore@v4
with:
path: CASMcode_global/dist
key: ${{ runner.os }}-libcasm-global-v2-0-3
key: ${{ runner.os }}-libcasm-global-v2-0-4

### libcasm-xtal ###
- name: restore libcasm-xtal cache
id: cache-libcasm-xtal-restore
uses: actions/cache/restore@v4
with:
path: CASMcode_crystallography/dist
key: ${{ runner.os }}-libcasm-xtal-v2-0a5
key: ${{ runner.os }}-libcasm-xtal-v2-0a9

- name: Install CASM dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-macos-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: '3.11'

- name: Set up requirements & configuration variables
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: '3.11'

- name: Set up requirements & configuration variables
run: |
Expand Down
4 changes: 2 additions & 2 deletions build_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ scikit-build
cmake>=3.20
ninja
pybind11>=2.6
libcasm-global>=2.0.2
libcasm-xtal>=2.0a5
libcasm-global>=2.0.4
libcasm-xtal>=2.0a9
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ requires = [
"cmake>=3.20",
"ninja",
"pybind11>=2.6",
"libcasm-global>=2.0.2",
"libcasm-xtal>=2.0a5",
"libcasm-global>=2.0.4",
"libcasm-xtal>=2.0a9",
]
build-backend = "setuptools.build_meta"

Expand All @@ -29,8 +29,8 @@ classifiers = [
"Topic :: Scientific/Engineering",
]
dependencies = [
"libcasm-global>=2.0.2",
"libcasm-xtal>=2.0a5",
"libcasm-global>=2.0.4",
"libcasm-xtal>=2.0a9",
"numpy",
]

Expand Down Expand Up @@ -59,8 +59,8 @@ select = ["E", "F", "I"]
known-first-party = ["libcasm", "casm"]

[tool.cibuildwheel]
# Build for python3.9, 3.10, 3.11
build = "cp39-* cp310-* cp311-*"
# Build for python3.9, 3.10, 3.11, 3.12
build = "cp39-* cp310-* cp311-* cp312-*"
# Build for cpython only
skip = "pp*"

Expand Down
4 changes: 2 additions & 2 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = [
"setuptools",
"wheel",
"pybind11>=2.8.0",
"libcasm-global>=2.0.2",
"libcasm-xtal>=2.0a5",
"libcasm-global>=2.0.4",
"libcasm-xtal>=2.0a9",
]
build-backend = "setuptools.build_meta"
4 changes: 2 additions & 2 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@
],
install_requires=[
"pybind11",
"libcasm-global>=2.0.2",
"libcasm-xtal>=2.0a5",
"libcasm-global>=2.0.4",
"libcasm-xtal>=2.0a9",
],
ext_modules=ext_modules,
cmdclass={"build_ext": build_ext},
Expand Down

0 comments on commit 5b1ca80

Please sign in to comment.