diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3acf0fb..3ce7181 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ on: jobs: - build-linux-cp37: + build-linux-cp38: runs-on: ubuntu-latest container: quay.io/pypa/manylinux2014_x86_64 @@ -16,12 +16,12 @@ jobs: - 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 @@ -30,10 +30,10 @@ 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 @@ -41,10 +41,10 @@ jobs: - 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/* @@ -55,10 +55,10 @@ 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 @@ -66,10 +66,10 @@ jobs: - 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/* @@ -80,10 +80,10 @@ 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 @@ -91,10 +91,10 @@ jobs: - 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/* @@ -105,10 +105,10 @@ 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 @@ -116,10 +116,10 @@ jobs: - 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/* @@ -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 @@ -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: @@ -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: | @@ -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: @@ -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 @@ -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 }} diff --git a/setup.py b/setup.py index e5a0430..b636eea 100644 --- a/setup.py +++ b/setup.py @@ -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