Skip to content

Commit

Permalink
update version and release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ehermes committed Mar 3, 2024
1 parent ab969e3 commit bd28298
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 34 deletions.
67 changes: 34 additions & 33 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ on:

jobs:

build-linux-cp37:
build-linux-cp38:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64

steps:
- uses: actions/checkout@master

- name: Install Python package dependencies
run: /opt/python/cp37-cp37m/bin/python -m pip install cython wheel numpy scipy ase jax jaxlib
run: /opt/python/cp38-cp38/bin/python -m pip install cython wheel numpy scipy ase jax jaxlib

- name: Build binary wheel
run: /opt/python/cp37-cp37m/bin/python setup.py bdist_wheel
run: /opt/python/cp38-cp38/bin/python setup.py bdist_wheel

- name: Apply auditwheel
- name: Apply auditwheel for manylinux wheel
run: auditwheel repair -w dist dist/*

- name: Remove linux wheel
Expand All @@ -30,21 +30,21 @@ jobs:
- name: Archive dist artifacts
uses: actions/upload-artifact@v1
with:
name: dist-linux-3.7
name: dist-linux-3.8
path: dist

build-linux-cp38:
build-linux-cp39:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64

steps:
- uses: actions/checkout@master

- name: Install Python package dependencies
run: /opt/python/cp38-cp38/bin/python -m pip install cython wheel numpy scipy ase jax jaxlib
run: /opt/python/cp39-cp39/bin/python -m pip install cython wheel numpy scipy ase jax jaxlib

- name: Build binary wheel
run: /opt/python/cp38-cp38/bin/python setup.py bdist_wheel
run: /opt/python/cp39-cp39/bin/python setup.py bdist_wheel

- name: Apply auditwheel for manylinux wheel
run: auditwheel repair -w dist dist/*
Expand All @@ -55,21 +55,21 @@ jobs:
- name: Archive dist artifacts
uses: actions/upload-artifact@v1
with:
name: dist-linux-3.8
name: dist-linux-3.9
path: dist

build-linux-cp39:
build-linux-cp310:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64

steps:
- uses: actions/checkout@master

- name: Install Python package dependencies
run: /opt/python/cp39-cp39/bin/python -m pip install cython wheel numpy scipy ase jax jaxlib
run: /opt/python/cp310-cp310/bin/python -m pip install cython wheel numpy scipy ase jax jaxlib

- name: Build binary wheel
run: /opt/python/cp39-cp39/bin/python setup.py bdist_wheel
run: /opt/python/cp310-cp310/bin/python setup.py bdist_wheel

- name: Apply auditwheel for manylinux wheel
run: auditwheel repair -w dist dist/*
Expand All @@ -80,21 +80,21 @@ jobs:
- name: Archive dist artifacts
uses: actions/upload-artifact@v1
with:
name: dist-linux-3.9
name: dist-linux-3.10
path: dist

build-linux-cp310:
build-linux-cp311:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64

steps:
- uses: actions/checkout@master

- name: Install Python package dependencies
run: /opt/python/cp310-cp310/bin/python -m pip install cython wheel numpy scipy ase jax jaxlib
run: /opt/python/cp311-cp311/bin/python -m pip install cython wheel numpy scipy ase jax jaxlib

- name: Build binary wheel
run: /opt/python/cp310-cp310/bin/python setup.py bdist_wheel
run: /opt/python/cp311-cp311/bin/python setup.py bdist_wheel

- name: Apply auditwheel for manylinux wheel
run: auditwheel repair -w dist dist/*
Expand All @@ -105,21 +105,21 @@ jobs:
- name: Archive dist artifacts
uses: actions/upload-artifact@v1
with:
name: dist-linux-3.10
name: dist-linux-3.11
path: dist

build-linux-cp311:
build-linux-cp312:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64

steps:
- uses: actions/checkout@master

- name: Install Python package dependencies
run: /opt/python/cp311-cp311/bin/python -m pip install cython wheel numpy scipy ase jax jaxlib
run: /opt/python/cp312-cp312/bin/python -m pip install cython wheel numpy scipy ase jax jaxlib

- name: Build binary wheel
run: /opt/python/cp311-cp311/bin/python setup.py bdist_wheel
run: /opt/python/cp312-cp312/bin/python setup.py bdist_wheel

- name: Apply auditwheel for manylinux wheel
run: auditwheel repair -w dist dist/*
Expand All @@ -130,15 +130,16 @@ jobs:
- name: Archive dist artifacts
uses: actions/upload-artifact@v1
with:
name: dist-linux-3.11
name: dist-linux-3.12
path: dist


build-macos:
runs-on: macos-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7, 3.8, 3.9, '3.10', '3.11']
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@master
Expand All @@ -162,7 +163,7 @@ jobs:
path: dist

upload:
needs: [build-linux-cp37, build-linux-cp38, build-linux-cp39, build-linux-cp310, build-linux-cp311, build-macos]
needs: [build-linux-cp38, build-linux-cp39, build-linux-cp310, build-linux-cp311, build-linux-cp312, build-macos]
runs-on: ubuntu-latest

steps:
Expand All @@ -171,7 +172,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.11'
python-version: '3.12'

- name: Install dependencies
run: |
Expand All @@ -181,12 +182,6 @@ jobs:
- name: Create source dist
run: python setup.py sdist

- name: Stage linux 3.7
uses: actions/download-artifact@v1
with:
name: dist-linux-3.7
- run: mv -v dist-linux-3.7/* dist/

- name: Stage linux 3.8
uses: actions/download-artifact@v1
with:
Expand All @@ -211,11 +206,11 @@ jobs:
name: dist-linux-3.11
- run: mv -v dist-linux-3.11/* dist/

- name: Stage macos 3.7
- name: Stage linux 3.12
uses: actions/download-artifact@v1
with:
name: dist-macos-3.7
- run: mv -v dist-macos-3.7/* dist/
name: dist-linux-3.12
- run: mv -v dist-linux-3.12/* dist/

- name: Stage macos 3.8
uses: actions/download-artifact@v1
Expand All @@ -241,6 +236,12 @@ jobs:
name: dist-macos-3.11
- run: mv -v dist-macos-3.11/* dist/

- name: Stage macos 3.12
uses: actions/download-artifact@v1
with:
name: dist-macos-3.12
- run: mv -v dist-macos-3.12/* dist/

- name: Upload with twine
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from setuptools import setup, Extension, find_packages

VERSION = '2.3.2'
VERSION = '2.3.3'

debug = '--debug' in sys.argv or '-g' in sys.argv

Expand Down

0 comments on commit bd28298

Please sign in to comment.