Skip to content

Commit

Permalink
Update build constraints, package and CI (#77)
Browse files Browse the repository at this point in the history
* Add python 3.11 rc to CI

* Add python 3.11 classifier

* Add numpy build constraints for python 3.11

* Set version to v0.7.9

* Remove unused build steps

* Use gcc-9 for python 3.7

* Fix gcc-9

* Use newer version of hypothesis

* Add linux python 3.11 build step

* Revert "Set version to v0.7.9"

This reverts commit 7be17f9.

* Use rc version for linux build step
  • Loading branch information
adrianeboyd authored Oct 14, 2022
1 parent c7a4773 commit 6d26233
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
18 changes: 9 additions & 9 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,23 +93,17 @@ jobs:
condition: eq(variables['Agent.OS'], 'Darwin')
displayName: 'Build wheel (Mac)'

- script: |
gcc --version
python setup.py bdist_wheel
condition: and(eq(variables['Agent.OS'], 'Linux'), or(eq(variables['python.version'], '2.7'), eq(variables['python.version'], '3.5')))
displayName: 'Build wheel (Linux)'
- script: |
clang --version
CC=clang python setup.py bdist_wheel
condition: and(eq(variables['Agent.OS'], 'Linux'), eq(variables['python.version'], '3.6'))
displayName: 'Build wheel (Linux / clang)'
- script: |
gcc-7 --version
CC=gcc-7 python setup.py bdist_wheel
gcc-9 --version
CC=gcc-9 python setup.py bdist_wheel
condition: and(eq(variables['Agent.OS'], 'Linux'), eq(variables['python.version'], '3.7'))
displayName: 'Build wheel (Linux / gcc-7)'
displayName: 'Build wheel (Linux / gcc-9)'
- script: |
gcc-9 --version
Expand All @@ -129,6 +123,12 @@ jobs:
condition: and(eq(variables['Agent.OS'], 'Linux'), eq(variables['python.version'], '3.10'))
displayName: 'Build wheel (Linux / clang-12)'
- script: |
gcc --version
CC=gcc python setup.py bdist_wheel
condition: and(eq(variables['Agent.OS'], 'Linux'), eq(variables['python.version'], '3.11.0-rc.2'))
displayName: 'Build wheel (Linux / gcc)'
- task: PythonScript@0
inputs:
scriptSource: inline
Expand Down
1 change: 1 addition & 0 deletions build-constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ numpy==1.17.3; python_version=='3.8' and platform_machine!='aarch64'
numpy==1.19.2; python_version=='3.8' and platform_machine=='aarch64'
numpy==1.19.3; python_version=='3.9'
numpy==1.21.3; python_version=='3.10'
numpy==1.23.2; python_version=='3.11'
numpy; python_version>='3.11'
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
numpy
pytest
cython
hypothesis>=4.0.0,<6.0.0
hypothesis>=4.0.0,<7.0.0
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ def chdir(new_dir):
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
],
)
Expand Down

0 comments on commit 6d26233

Please sign in to comment.