Skip to content

Commit d0fc532

Browse files
authored
Merge pull request #128 from pyswmm/py312_support
Adding PY3.12 Support to build
2 parents 391c66d + 6b2f745 commit d0fc532

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

.github/workflows/build_wheel.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
fail-fast: false
4848
matrix:
4949
os: [ubuntu-latest, windows-2022, macos-12]
50-
pyver: [cp38, cp39, cp310, cp311]
50+
pyver: [cp38, cp39, cp310, cp311, cp312]
5151

5252
steps:
5353
- name: Checkout repo
@@ -64,14 +64,14 @@ jobs:
6464
CIBW_BEFORE_TEST: pip install -r {package}/test-requirements.txt
6565
# mac needs ninja to build
6666
CIBW_BEFORE_BUILD_MACOS: brew install ninja
67-
# configure cibuildwheel to build native archs ('auto'), and some emulated ones
67+
# configure cibuildwheel to build native archs ('auto'), and some emulated ones
6868
CIBW_ARCHS_LINUX: x86_64
6969
CIBW_ARCHS_WINDOWS: AMD64
7070
CIBW_ARCHS_MACOS: x86_64
7171
# only build current supported python: https://devguide.python.org/versions/
7272
# don't build pypy or musllinux to save build time. TODO: find a good way to support those archs
7373
CIBW_BUILD: ${{matrix.pyver}}-*
74-
CIBW_SKIP: cp36-* cp37-* cp312-* pp* *-musllinux*
74+
CIBW_SKIP: cp36-* cp37-* pp* *-musllinux*
7575
# Will avoid testing on emulated architectures
7676
# Skip trying to test arm64 builds on Intel Macs
7777
CIBW_TEST_SKIP: "*-*linux_{aarch64,ppc64le,s390x} *-macosx_arm64 *-macosx_universal2:arm64"
@@ -87,7 +87,7 @@ jobs:
8787
fail-fast: false
8888
matrix:
8989
os: [ubuntu-latest,macos-12]
90-
pyver: [cp38, cp39, cp310, cp311]
90+
pyver: [cp38, cp39, cp310, cp311, cp312]
9191

9292
steps:
9393
- name: Checkout repo
@@ -106,15 +106,15 @@ jobs:
106106
with:
107107
package-dir: ./swmm-toolkit
108108
env:
109-
# configure cibuildwheel to build native archs ('auto'), and some emulated ones
109+
# configure cibuildwheel to build native archs ('auto'), and some emulated ones
110110
CIBW_ARCHS_LINUX: aarch64
111-
CIBW_ARCHS_MACOS: arm64
111+
CIBW_ARCHS_MACOS: arm64
112112
# only build current supported python: https://devguide.python.org/versions/
113113
# don't build pypy or musllinux to save build time. TODO: find a good way to support those archs
114114
CIBW_BUILD: ${{matrix.pyver}}-*
115-
CIBW_SKIP: cp36-* cp37-* cp312-* pp* *-musllinux*
115+
CIBW_SKIP: cp36-* cp37-* pp* *-musllinux*
116116
CIBW_BUILD_VERBOSITY: 1
117117

118118
- uses: actions/upload-artifact@v3
119119
with:
120-
path: ./wheelhouse/*.whl
120+
path: ./wheelhouse/*.whl

swmm-toolkit/setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ def exclude_files(cmake_manifest):
124124
cmake_args = cmake_args,
125125
cmake_process_manifest_hook = exclude_files,
126126

127-
description='OWA SWMM Python Toolkit',
127+
description='PySWMM SWMM Python Toolkit',
128128
long_description=long_description,
129129
long_description_content_type='text/markdown',
130-
url='https://github.com/OpenWaterAnalytics/swmm-python',
130+
url='https://github.com/pyswmm/swmm-python',
131131

132132
author='See AUTHORS',
133133
maintainer_email='bemcdonnell@gmail.com',
@@ -145,7 +145,8 @@ def exclude_files(cmake_manifest):
145145
"Programming Language :: Python :: 3.9",
146146
"Programming Language :: Python :: 3.10",
147147
"Programming Language :: Python :: 3.11",
148+
"Programming Language :: Python :: 3.12",
148149
"Programming Language :: C",
149150
"Development Status :: 5 - Production/Stable",
150151
]
151-
)
152+
)

0 commit comments

Comments
 (0)