Skip to content

Commit 0124871

Browse files
committed
deps: fix sympy deps in setup
1 parent 03aec47 commit 0124871

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎.github/workflows/pythonpublish.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616
- name: Install dependencies
1717
run: |
1818
python -m pip install --upgrade pip
19-
pip install setuptools wheel twine
19+
pip install setuptools wheel twine==5.0.0
20+
2021
- name: Build and publish
2122
env:
2223
TWINE_USERNAME: __token__

‎setup.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ def numpy_compat(required):
3131
sympy_version = pkg_resources.get_distribution("sympy").version
3232
min_ver2 = pkg_resources.parse_version("1.12.1")
3333
if pkg_resources.parse_version(sympy_version) < min_ver2:
34-
new_reqs.append(f"numpy>{numpy_lb},<2.0")
34+
new_reqs.extend([f"numpy>{numpy_lb},<2.0", f"sympy=={sympy_version}"])
3535
else:
36-
new_reqs.append(f"numpy>=2.0,<{numpy_ub}")
36+
new_reqs.extend([f"numpy>=2.0,<{numpy_ub}", f"sympy=={sympy_version}"])
3737
except pkg_resources.DistributionNotFound:
3838
new_reqs.extend([f"sympy>=1.12.1,<{sympy_ub}", f"numpy>=2.0,<{numpy_ub}"])
3939

0 commit comments

Comments
 (0)