Skip to content

Commit

Permalink
Merge pull request #251 from thisac/feature/python3.9-3.13
Browse files Browse the repository at this point in the history
Support Python 3.9-3.13
  • Loading branch information
thisac authored Oct 11, 2024
2 parents 2ff3425 + 0fa6a62 commit 4f1788f
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 20 deletions.
26 changes: 14 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ commands:
parameters:
cibw-version:
type: string
default: 2.15.0
default: 2.21.2
steps:
- run:
name: run cibuildwheel
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
type: string

docker:
- image: cimg/python:3.9
- image: cimg/python:3.12

environment:
<<: *global-environment
Expand All @@ -62,7 +62,7 @@ jobs:
type: string

machine:
image: ubuntu-2004:202101-01
image: default

resource_class: arm.medium

Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:

deploy-all:
docker:
- image: cimg/python:3.9
- image: cimg/python:3.12

steps:
- attach_workspace:
Expand All @@ -137,7 +137,7 @@ jobs:
build-sdist:
docker:
- image: cimg/python:3.9
- image: cimg/python:3.12

steps:
- checkout
Expand All @@ -155,7 +155,7 @@ jobs:

test-sdist:
docker:
- image: cimg/python:3.9
- image: cimg/python:3.12

steps:
- checkout
Expand Down Expand Up @@ -210,7 +210,7 @@ workflows:
- build-and-test-linux: &build
matrix:
parameters:
python-version: &python-versions [3.8.9, 3.9.4, 3.10.0, 3.11.0, 3.12.0]
python-version: &python-versions [3.9.4, 3.10.0, 3.11.0, 3.12.0, 3.13.0]
- build-and-test-linux-aarch64:
matrix:
parameters:
Expand All @@ -224,22 +224,24 @@ workflows:
- build-and-test-windows: *build
- test-sdist:
requires:
- build-sdist
- build-sdist
- test-dependencies:
requires:
- build-and-test-linux
matrix:
parameters:
python-version: *python-versions
dependency-versions: ["dwave-networkx==0.8.10 fasteners==0.15 homebase==1.0.1 networkx==2.4 oldest-supported-numpy rectangle-packer==2.0.1 scipy==1.7.3", # oldest supported
"dwave-networkx fasteners homebase networkx numpy rectangle-packer scipy", # latest
dependency-versions: ["dwave-networkx==0.8.10 fasteners==0.15 homebase==1.0.1 networkx==2.4 oldest-supported-numpy scipy==1.7.3", # oldest supported
"dwave-networkx fasteners homebase networkx numpy scipy", # latest
]
exclude:
# SciPy 1.7.3 doesn't support Python 3.11
- python-version: 3.11.0
dependency-versions: "dwave-networkx==0.8.10 fasteners==0.15 homebase==1.0.1 networkx==2.4 oldest-supported-numpy rectangle-packer==2.0.1 scipy==1.7.3"
dependency-versions: "dwave-networkx==0.8.10 fasteners==0.15 homebase==1.0.1 networkx==2.4 oldest-supported-numpy scipy==1.7.3"
- python-version: 3.12.0
dependency-versions: "dwave-networkx==0.8.10 fasteners==0.15 homebase==1.0.1 networkx==2.4 oldest-supported-numpy rectangle-packer==2.0.1 scipy==1.7.3"
dependency-versions: "dwave-networkx==0.8.10 fasteners==0.15 homebase==1.0.1 networkx==2.4 oldest-supported-numpy scipy==1.7.3"
- python-version: 3.13.0
dependency-versions: "dwave-networkx==0.8.10 fasteners==0.15 homebase==1.0.1 networkx==2.4 oldest-supported-numpy scipy==1.7.3"

deploy:
jobs:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ classifiers = [
"Operating System :: MacOS",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
]
dependencies = [
Expand All @@ -39,7 +39,7 @@ maintainers = [
{name = "D-Wave Inc.", email = "tools@dwavesys.com"},
]
name = "minorminer"
requires-python = ">= 3.8"
requires-python = ">= 3.9"

[project.readme]
file = "README.rst"
Expand Down
5 changes: 5 additions & 0 deletions releasenotes/notes/python-3.9-3.13-c79f4b7c8eba4d47.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
features:
- Add support for Python 3.13.
upgrade:
- Drop support for Python 3.8.
13 changes: 7 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
numpy==1.22.3
scipy==1.8.0
networkx==2.4
dwave-networkx>=0.8.11
fasteners==0.15
# working environment for Python>=3.8, <=3.12
numpy==2.0.2
scipy==1.13.1
networkx==3.2.1
dwave-networkx==0.8.15
fasteners==0.19
homebase==1.0.1
Cython==3.0.6
Cython==3.0.11

0 comments on commit 4f1788f

Please sign in to comment.