Skip to content

Commit c3f7fee

Browse files
authored
CI: Fix generating requirements-dev.txt (#57185)
1 parent cad0d87 commit c3f7fee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
pip
55
versioneer[toml]
6-
cython~==3.0.5
6+
cython~=3.0.5
77
meson[ninja]==1.2.1
88
meson-python==0.13.1
99
pytest>=7.3.2

scripts/generate_pip_deps_from_conda.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def conda_package_to_pip(package: str):
4545
- A package requiring a specific version, in conda is defined with a single
4646
equal (e.g. ``pandas=1.0``) and in pip with two (e.g. ``pandas==1.0``)
4747
"""
48-
package = re.sub("(?<=[^<>])=", "==", package).strip()
48+
package = re.sub("(?<=[^<>~])=", "==", package).strip()
4949

5050
for compare in ("<=", ">=", "=="):
5151
if compare in package:

0 commit comments

Comments
 (0)