Skip to content

Commit 2e7ee86

Browse files
author
karosc
committed
Update windows action runner and python support
- Updated windows action runner to 2022 - Revised cmake args to use VS 2022 - Update cmake to 3.21 for VS 2022 generator support - Deprecate Python 3.6 by removing from build and test scripts - Add Python 3.10 support by adding to build and test scripts - Update numpy to 1.21.5 for Python 3.10 support - Update pytest to 7.1.1 for Python 3.10 support
1 parent 7ae4411 commit 2e7ee86

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.github/workflows/python-package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ jobs:
7171
strategy:
7272
fail-fast: false
7373
matrix:
74-
os: [windows-2016, macos-10.15]
75-
py: [3.6, 3.7, 3.8, 3.9]
74+
os: [windows-2022, macos-10.15]
75+
py: ["3.7", "3.8", "3.9", "3.10"]
7676
include:
77-
- os: windows-2016
77+
- os: windows-2022
7878
sys_pkgs: choco install swig
7979
activate: ./build-env/Scripts/activate
8080

swmm-toolkit/build-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
setuptools==41.4.0
55
wheel==0.33.6
66
scikit-build==0.11.1
7-
cmake==3.18.4
7+
cmake==3.21

swmm-toolkit/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def run(self):
6565

6666
# Set Platform specific cmake args here
6767
if platform_system == "Windows":
68-
cmake_args = ["-GVisual Studio 15 2017 Win64"]
68+
cmake_args = ["-GVisual Studio 17 2022","-Ax64"]
6969

7070
elif platform_system == "Darwin":
7171
cmake_args = ["-GNinja","-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.9"]
@@ -116,10 +116,10 @@ def exclude_files(cmake_manifest):
116116
"Operating System :: POSIX :: Linux",
117117
"Operating System :: MacOS",
118118
"License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication",
119-
"Programming Language :: Python :: 3.6",
120119
"Programming Language :: Python :: 3.7",
121120
"Programming Language :: Python :: 3.8",
122121
"Programming Language :: Python :: 3.9",
122+
"Programming Language :: Python :: 3.10",
123123
"Programming Language :: C",
124124
"Development Status :: 4 - Beta",
125125
]

swmm-toolkit/test-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

33

4-
pytest==6.1.1
5-
numpy==1.17.2
4+
pytest==7.1.1
5+
numpy==1.21.5
66
aenum==2.2.6

swmm-toolkit/tools/build-wheels.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ mkdir -p ./dist
2121
cd swmm-toolkit
2222

2323
# Build wheels
24-
for PYBIN in /opt/python/cp{36,37,38,39}*/bin; do
24+
for PYBIN in /opt/python/cp{37,38,39,310}*/bin; do
2525
# Setup python virtual environment for build
2626
${PYBIN}/python -m venv --clear ./build-env
2727
source ./build-env/bin/activate
@@ -52,7 +52,7 @@ done
5252

5353

5454
# Install packages and test
55-
for PYBIN in /opt/python/cp{36,37,38,39}*/bin; do
55+
for PYBIN in /opt/python/cp{37,38,39,310}*/bin; do
5656
# Setup python virtual environment for test
5757
${PYBIN}/python -m venv --clear ./test-env
5858
source ./test-env/bin/activate

0 commit comments

Comments
 (0)