Skip to content

Commit

Permalink
deps: fix sympy deps in setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Jul 11, 2024
1 parent 03aec47 commit 0124871
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install setuptools wheel twine==5.0.0
- name: Build and publish
env:
TWINE_USERNAME: __token__
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ def numpy_compat(required):
sympy_version = pkg_resources.get_distribution("sympy").version
min_ver2 = pkg_resources.parse_version("1.12.1")
if pkg_resources.parse_version(sympy_version) < min_ver2:
new_reqs.append(f"numpy>{numpy_lb},<2.0")
new_reqs.extend([f"numpy>{numpy_lb},<2.0", f"sympy=={sympy_version}"])
else:
new_reqs.append(f"numpy>=2.0,<{numpy_ub}")
new_reqs.extend([f"numpy>=2.0,<{numpy_ub}", f"sympy=={sympy_version}"])
except pkg_resources.DistributionNotFound:
new_reqs.extend([f"sympy>=1.12.1,<{sympy_ub}", f"numpy>=2.0,<{numpy_ub}"])

Expand Down

0 comments on commit 0124871

Please sign in to comment.