Skip to content

Commit 3fb565d

Browse files
authored
Merge pull request #132 from pyswmm/dev
Staging release v0.15.4
2 parents 63b6f56 + 0d580c2 commit 3fb565d

File tree

6 files changed

+17
-9
lines changed

6 files changed

+17
-9
lines changed

.github/workflows/build_wheel.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,17 @@ jobs:
5656
submodules: true
5757

5858
- name: Build wheels
59-
uses: pypa/cibuildwheel@v2.16.2
59+
uses: pypa/cibuildwheel@v2.17.0
6060
with:
6161
package-dir: ./swmm-toolkit
6262
env:
6363
CIBW_TEST_COMMAND: "pytest {package}/tests"
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+
# remove system swig (cmake bug doesn't respect python venv)
68+
# https://github.com/swig/swig/issues/2481#issuecomment-1949573105
69+
CIBW_BEFORE_BUILD_LINUX: rm -f $(which swig) && rm -f $(which swig4.0)
6770
# configure cibuildwheel to build native archs ('auto'), and some emulated ones
6871
CIBW_ARCHS_LINUX: x86_64
6972
CIBW_ARCHS_WINDOWS: AMD64
@@ -102,10 +105,13 @@ jobs:
102105
platforms: all
103106

104107
- name: Build wheels
105-
uses: pypa/cibuildwheel@v2.16.2
108+
uses: pypa/cibuildwheel@v2.17.0
106109
with:
107110
package-dir: ./swmm-toolkit
108111
env:
112+
# remove system swig (cmake bug doesn't respect python venv)
113+
# https://github.com/swig/swig/issues/2481#issuecomment-1949573105
114+
CIBW_BEFORE_BUILD_LINUX: rm -f $(which swig) && rm -f $(which swig4.0)
109115
# configure cibuildwheel to build native archs ('auto'), and some emulated ones
110116
CIBW_ARCHS_LINUX: aarch64
111117
CIBW_ARCHS_MACOS: arm64

swmm-toolkit/AUTHORS

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ Caleb Buahin <[email protected]>
77
Laurent Courty <[email protected]>
88
Constantine Karos <[email protected]>
99
Abhiram Mullapudi <[email protected]>
10-
Brooke Mason <[email protected]>
10+
Brooke Mason <[email protected]>
11+
Sara C. Troutman <[email protected]>

swmm-toolkit/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cmake_minimum_required (VERSION 3.17)
1515

1616
project(swmm-toolkit
1717
VERSION
18-
0.15.3
18+
0.15.4
1919
)
2020

2121

swmm-toolkit/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def exclude_files(cmake_manifest):
112112

113113
setup(
114114
name = "swmm-toolkit",
115-
version = "0.15.3",
115+
version = "0.15.4",
116116

117117
packages = ["swmm_toolkit", "swmm.toolkit"],
118118
package_dir = package_dir,

swmm-toolkit/src/swmm/toolkit/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
__credits__ = "Colleen Barr, Sam Hatchett"
2020
__license__ = "CC0 1.0 Universal"
2121

22-
__version__ = "0.15.2"
22+
__version__ = "0.15.4"
2323
__date__ = "June 7, 2021"
2424

2525
__maintainer__ = "Michael Tryby"

swmm-toolkit/src/swmm/toolkit/output_metadata.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,10 @@ def _build_pollut_metadata(self, output_handle):
8888
# Create dictionary keys
8989
for i in range(1, n):
9090
symbolic_name = 'POLLUT_CONC_' + str(i)
91-
extend_enum(shared_enum.SubcatchAttribute, symbolic_name, 8 + i)
92-
extend_enum(shared_enum.NodeAttribute, symbolic_name, 6 + i)
93-
extend_enum(shared_enum.LinkAttribute, symbolic_name, 5 + i)
91+
if symbolic_name not in shared_enum.SubcatchAttribute._member_names_:
92+
extend_enum(shared_enum.SubcatchAttribute, symbolic_name, 8 + i)
93+
extend_enum(shared_enum.NodeAttribute, symbolic_name, 6 + i)
94+
extend_enum(shared_enum.LinkAttribute, symbolic_name, 5 + i)
9495

9596
# Update metadata dictionary with pollutant metadata
9697
for i, attr in enumerate(islice(shared_enum.SubcatchAttribute, 8, None)):

0 commit comments

Comments
 (0)