Skip to content

Commit

Permalink
Add Python 3.12 builds (#31)
Browse files Browse the repository at this point in the history
* Add Python 3.12 builds

The migrator seems confused by another package from a split feedstock
that also produces non-Python packages that qiskit-aer depends on
not having Python 3.12 builds yet, so this is a manual migration.

Explicitly exclude TestNoiseTransformer tests because they require cvxpy.
Previously they were skipped by unittest when cvxpy was not installed but
test skipping was broken by Python 3.12.1 (see
testing-cabal/testtools#371 and
python/cpython#106588), so we had to explicitly
skip the tests with the test runner.
  • Loading branch information
wshanks authored Jan 19, 2024
1 parent 2e2ebb0 commit dedee0d
Show file tree
Hide file tree
Showing 12 changed files with 336 additions and 5 deletions.
12 changes: 12 additions & 0 deletions .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .azure-pipelines/azure-pipelines-osx.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .azure-pipelines/azure-pipelines-win.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
cdt_name:
- cos6
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cuda_compiler:
- None
cuda_compiler_version:
- None
cxx_compiler:
- gxx
cxx_compiler_version:
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
libblas:
- 3.9 *netlib
liblapack:
- 3.9 *netlib
numpy:
- '1.26'
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
python:
- 3.12.* *_cpython
spdlog:
- '1.12'
target_platform:
- linux-64
zip_keys:
- - cxx_compiler_version
- cuda_compiler
- cuda_compiler_version
- cdt_name
- docker_image
- - python
- numpy
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
cdt_name:
- cos7
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cuda_compiler:
- cuda-nvcc
cuda_compiler_version:
- '12.0'
cxx_compiler:
- gxx
cxx_compiler_version:
- '11'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
libblas:
- 3.9 *netlib
liblapack:
- 3.9 *netlib
numpy:
- '1.26'
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
python:
- 3.12.* *_cpython
spdlog:
- '1.12'
target_platform:
- linux-64
zip_keys:
- - cxx_compiler_version
- cuda_compiler
- cuda_compiler_version
- cdt_name
- docker_image
- - python
- numpy
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
cdt_name:
- cos7
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cuda_compiler:
- nvcc
cuda_compiler_version:
- '11.8'
cxx_compiler:
- gxx
cxx_compiler_version:
- '11'
docker_image:
- quay.io/condaforge/linux-anvil-cuda:11.8
libblas:
- 3.9 *netlib
liblapack:
- 3.9 *netlib
numpy:
- '1.26'
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
python:
- 3.12.* *_cpython
spdlog:
- '1.12'
target_platform:
- linux-64
zip_keys:
- - cxx_compiler_version
- cuda_compiler
- cuda_compiler_version
- cdt_name
- docker_image
- - python
- numpy
38 changes: 38 additions & 0 deletions .ci_support/migrations/python312.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
migrator_ts: 1695046563
__migrator:
migration_number: 1
operation: key_add
primary_key: python
ordering:
python:
- 3.6.* *_cpython
- 3.7.* *_cpython
- 3.8.* *_cpython
- 3.9.* *_cpython
- 3.10.* *_cpython
- 3.11.* *_cpython
- 3.12.* *_cpython # new entry
- 3.6.* *_73_pypy
- 3.7.* *_73_pypy
- 3.8.* *_73_pypy
- 3.9.* *_73_pypy
paused: false
longterm: True
pr_limit: 30
max_solver_attempts: 6 # this will make the bot retry "not solvable" stuff 6 times
exclude:
# this shouldn't attempt to modify the python feedstocks
- python
- pypy3.6
- pypy-meta
- cross-python
- python_abi
exclude_pinned_pkgs: false

python:
- 3.12.* *_cpython
# additional entries to add for zip_keys
numpy:
- 1.26
python_impl:
- cpython
37 changes: 37 additions & 0 deletions .ci_support/osx_64_numpy1.26python3.12.____cpython.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.9'
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cuda_compiler:
- None
cuda_compiler_version:
- None
cxx_compiler:
- clangxx
cxx_compiler_version:
- '16'
libblas:
- 3.9 *netlib
liblapack:
- 3.9 *netlib
llvm_openmp:
- '16'
macos_machine:
- x86_64-apple-darwin13.4.0
numpy:
- '1.26'
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
python:
- 3.12.* *_cpython
spdlog:
- '1.12'
target_platform:
- osx-64
zip_keys:
- - python
- numpy
37 changes: 37 additions & 0 deletions .ci_support/osx_arm64_numpy1.26python3.12.____cpython.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
MACOSX_DEPLOYMENT_TARGET:
- '11.0'
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cuda_compiler:
- None
cuda_compiler_version:
- None
cxx_compiler:
- clangxx
cxx_compiler_version:
- '16'
libblas:
- 3.9 *netlib
liblapack:
- 3.9 *netlib
llvm_openmp:
- '16'
macos_machine:
- arm64-apple-darwin20.0.0
numpy:
- '1.26'
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
python:
- 3.12.* *_cpython
spdlog:
- '1.12'
target_platform:
- osx-arm64
zip_keys:
- - python
- numpy
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cuda_compiler:
- None
cuda_compiler_version:
- None
cxx_compiler:
- vs2019
libblas:
- 3.9 *netlib
liblapack:
- 3.9 *netlib
numpy:
- '1.26'
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
python:
- 3.12.* *_cpython
spdlog:
- '1.12'
target_platform:
- win-64
zip_keys:
- - cuda_compiler
- cuda_compiler_version
- - python
- numpy
Loading

0 comments on commit dedee0d

Please sign in to comment.