Skip to content

Commit

Permalink
CI: Fix generating requirements-dev.txt (#57185)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhshadrach authored Jan 31, 2024
1 parent cad0d87 commit c3f7fee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pip
versioneer[toml]
cython~==3.0.5
cython~=3.0.5
meson[ninja]==1.2.1
meson-python==0.13.1
pytest>=7.3.2
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_pip_deps_from_conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def conda_package_to_pip(package: str):
- A package requiring a specific version, in conda is defined with a single
equal (e.g. ``pandas=1.0``) and in pip with two (e.g. ``pandas==1.0``)
"""
package = re.sub("(?<=[^<>])=", "==", package).strip()
package = re.sub("(?<=[^<>~])=", "==", package).strip()

for compare in ("<=", ">=", "=="):
if compare in package:
Expand Down

0 comments on commit c3f7fee

Please sign in to comment.