Skip to content

Commit b616f5e

Browse files
Support Python 3.12 and bump rustworkx to 0.13.2 (#990)
* Bump rustworkx to 0.13.2 * Bump rustworkx to 0.13.2 * Add release note for 0.13.2 * Bump cibuildwheel version In order to build Python 3.12 wheels on release we need to use a newer version of cibuildwheel. This commit bumps cibuildwheel to the latest release 2.16.1 which includes building Python 3.12 wheels by default using 3.12.0rc3. --------- Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
1 parent a0bca3a commit b616f5e

File tree

10 files changed

+37
-32
lines changed

10 files changed

+37
-32
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
strategy:
5858
matrix:
5959
rust: [stable]
60-
python-version: ['3.7.16', 3.8, 3.9, "3.10", "3.11"]
60+
python-version: ['3.7.16', 3.8, 3.9, "3.10", "3.11", "3.12.0-rc.3"]
6161
platform: [
6262
{ os: "macOS-latest", python-architecture: "x64", rust-target: "x86_64-apple-darwin" },
6363
{ os: "ubuntu-latest", python-architecture: "x64", rust-target: "x86_64-unknown-linux-gnu" },

.github/workflows/wheels.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- uses: dtolnay/rust-toolchain@stable
5656
- name: Install cibuildwheel
5757
run: |
58-
python -m pip install cibuildwheel==2.10.1 twine
58+
python -m pip install cibuildwheel==2.16.1 twine
5959
- name: Build wheels
6060
run: |
6161
python -m cibuildwheel --output-dir wheelhouse
@@ -97,7 +97,7 @@ jobs:
9797
platforms: all
9898
- name: Install cibuildwheel
9999
run: |
100-
python -m pip install cibuildwheel==2.10.1 twine
100+
python -m pip install cibuildwheel==2.16.1 twine
101101
- name: Build wheels
102102
run: |
103103
python -m cibuildwheel --output-dir wheelhouse
@@ -140,7 +140,7 @@ jobs:
140140
platforms: all
141141
- name: Install cibuildwheel
142142
run: |
143-
python -m pip install cibuildwheel==2.10.1 twine
143+
python -m pip install cibuildwheel==2.16.1 twine
144144
- name: Build wheels
145145
run: |
146146
python -m cibuildwheel --output-dir wheelhouse
@@ -183,7 +183,7 @@ jobs:
183183
platforms: all
184184
- name: Install cibuildwheel
185185
run: |
186-
python -m pip install cibuildwheel==2.10.1 twine
186+
python -m pip install cibuildwheel==2.16.1 twine
187187
- name: Build wheels
188188
run: |
189189
python -m cibuildwheel --output-dir wheelhouse
@@ -226,7 +226,7 @@ jobs:
226226
platforms: all
227227
- name: Install cibuildwheel
228228
run: |
229-
python -m pip install cibuildwheel==2.10.1 twine
229+
python -m pip install cibuildwheel==2.16.1 twine
230230
- name: Build wheels
231231
run: |
232232
python -m cibuildwheel --output-dir wheelhouse
@@ -270,7 +270,7 @@ jobs:
270270
platforms: all
271271
- name: Install cibuildwheel
272272
run: |
273-
python -m pip install cibuildwheel==2.10.1 twine
273+
python -m pip install cibuildwheel==2.16.1 twine
274274
- name: Build wheels
275275
run: |
276276
python -m cibuildwheel --output-dir wheelhouse
@@ -300,7 +300,7 @@ jobs:
300300
steps:
301301
- uses: actions/checkout@v3
302302
- name: Build wheels
303-
uses: joerick/cibuildwheel@v2.10.1
303+
uses: joerick/cibuildwheel@v2.16.1
304304
env:
305305
CIBW_BEFORE_ALL: rustup target add aarch64-apple-darwin
306306
CIBW_ARCHS_MACOS: arm64 universal2
@@ -338,7 +338,7 @@ jobs:
338338
run: rustup default stable-i686-pc-windows-msvc
339339
- name: Install cibuildwheel
340340
run: |
341-
python -m pip install cibuildwheel==2.10.1 twine
341+
python -m pip install cibuildwheel==2.16.1 twine
342342
- name: Build wheels
343343
run: |
344344
python -m cibuildwheel --output-dir wheelhouse

Cargo.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "rustworkx"
33
description = "A python graph library implemented in Rust"
4-
version = "0.13.1"
4+
version = "0.13.2"
55
authors = ["Matthew Treinish <mtreinish@kortar.org>"]
66
license = "Apache-2.0"
77
readme = "README.md"
@@ -33,7 +33,7 @@ ndarray-stats = "0.5.1"
3333
quick-xml = "0.28"
3434
serde = { version = "1.0", features = ["derive"] }
3535
serde_json = "1.0"
36-
rustworkx-core = { path = "rustworkx-core", version = "=0.13.1" }
36+
rustworkx-core = { path = "rustworkx-core", version = "=0.13.2" }
3737

3838
[dependencies.pyo3]
3939
version = "0.19.1"

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
docs_url_prefix = "ecosystem/rustworkx"
2525

2626
# The short X.Y version.
27-
version = '0.13.1'
27+
version = '0.13.2'
2828
# The full version, including alpha/beta/rc tags.
29-
release = '0.13.1'
29+
release = '0.13.2'
3030

3131
extensions = ['sphinx.ext.autodoc',
3232
'sphinx.ext.autosummary',

releasenotes/notes/prepare-0.13.1-45317a1fda68b4ca.yaml renamed to releasenotes/notes/0.13/prepare-0.13.1-45317a1fda68b4ca.yaml

File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
prelude: >
3+
rustworkx 0.13.2 is a minor release, adding support for Python 3.12.
4+
Existing users of 0.13.1 should not be affected by this release, but
5+
are still encouraged to upgraded.

rustworkx-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustworkx-core"
3-
version = "0.13.1"
3+
version = "0.13.2"
44
edition = "2021"
55
authors = ["Matthew Treinish <mtreinish@kortar.org>"]
66
description = "Rust APIs used for rustworkx algorithms"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def readme():
2626
graphviz_extras = ['pillow>=5.4']
2727

2828
PKG_NAME = os.getenv('RUSTWORKX_PKG_NAME', "rustworkx")
29-
PKG_VERSION = "0.13.1"
29+
PKG_VERSION = "0.13.2"
3030
PKG_PACKAGES = ["rustworkx", "rustworkx.visualization"]
3131
PKG_INSTALL_REQUIRES = ['numpy>=1.16.0']
3232
RUST_EXTENSIONS = [RustExtension("rustworkx.rustworkx", "Cargo.toml",

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
minversion = 4.4.0
3-
envlist = py37, py38, py39, py310, py311, lint
3+
envlist = py37, py38, py39, py310, py311, py312, lint
44
isolated_build = true
55

66
[testenv]

0 commit comments

Comments
 (0)