Skip to content

Commit

Permalink
Rebuild for python312 (#1)
Browse files Browse the repository at this point in the history
automerged PR by conda-forge/automerge-action
  • Loading branch information
github-actions[bot] authored Dec 7, 2023
2 parents 6424440 + f5d5abd commit 0cf7443
Show file tree
Hide file tree
Showing 8 changed files with 160 additions and 1 deletion.
4 changes: 4 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.

3 changes: 3 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.

35 changes: 35 additions & 0 deletions .ci_support/linux_64_numpy1.26python3.12.____cpython.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
c_compiler:
- gcc
c_compiler_version:
- '12'
cdt_name:
- cos6
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
- gxx
cxx_compiler_version:
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
numpy:
- '1.26'
openmpi:
- '4'
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
pybind11_abi:
- '4'
python:
- 3.12.* *_cpython
target_platform:
- linux-64
zip_keys:
- - c_compiler_version
- cxx_compiler_version
- - 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'
c_compiler:
- clang
c_compiler_version:
- '16'
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
- clangxx
cxx_compiler_version:
- '16'
llvm_openmp:
- '16'
macos_machine:
- x86_64-apple-darwin13.4.0
numpy:
- '1.26'
openmpi:
- '4'
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
pybind11_abi:
- '4'
python:
- 3.12.* *_cpython
target_platform:
- osx-64
zip_keys:
- - c_compiler_version
- cxx_compiler_version
- - python
- numpy
14 changes: 14 additions & 0 deletions README.md

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

4 changes: 3 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ package:
source:
url: https://github.com/quantumlib/qsim/archive/refs/tags/v{{ version }}.tar.gz
sha256: 81101fe9e6356e54125f703956e787aa366717c1e6e77aea794879b53c84ff60
patches:
- patches/0005-Allow-installing-for-Python-3.12.patch

build:
skip: true # [win]
number: 0
number: 1
script: {{ PYTHON }} -m pip install . -vvv --no-deps --no-build-isolation

requirements:
Expand Down
26 changes: 26 additions & 0 deletions recipe/patches/0005-Allow-installing-for-Python-3.12.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From dd26233a6b5cdfe36d855c7127cfad9bcdfc9e68 Mon Sep 17 00:00:00 2001
From: Bas Nijholt <[email protected]>
Date: Thu, 7 Dec 2023 08:54:39 -0800
Subject: [PATCH] Allow installing for Python 3.12

I have tested qsim on Python 3.12 and everything works just fine.
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index ed4720c..70ebca4 100644
--- a/setup.py
+++ b/setup.py
@@ -114,7 +114,7 @@ setup(
url="https://github.com/quantumlib/qsim",
author="Vamsi Krishna Devabathini",
author_email="[email protected]",
- python_requires=">=3.7.0,<3.12.0",
+ python_requires=">=3.7.0",
install_requires=requirements,
extras_require={
"dev": dev_requirements,
--
2.43.0

0 comments on commit 0cf7443

Please sign in to comment.