Skip to content

Commit bd15d12

Browse files
DEV: Fixup requirements.txt (#29445)
1 parent 6d9b476 commit bd15d12

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

requirements-dev.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
numpy>=1.15
2-
python==3.7
32
python-dateutil>=2.6.1
43
pytz
54
asv

scripts/generate_pip_deps_from_conda.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import yaml
2121

22-
EXCLUDE = {"python=3"}
22+
EXCLUDE = {"python"}
2323
RENAME = {"pytables": "tables", "pyqt": "pyqt5", "dask-core": "dask"}
2424

2525

@@ -33,15 +33,15 @@ def conda_package_to_pip(package):
3333
- A package requiring a specific version, in conda is defined with a single
3434
equal (e.g. ``pandas=1.0``) and in pip with two (e.g. ``pandas==1.0``)
3535
"""
36-
if package in EXCLUDE:
37-
return
38-
3936
package = re.sub("(?<=[^<>])=", "==", package).strip()
37+
4038
for compare in ("<=", ">=", "=="):
4139
if compare not in package:
4240
continue
4341

4442
pkg, version = package.split(compare)
43+
if pkg in EXCLUDE:
44+
return
4545

4646
if pkg in RENAME:
4747
return "".join((RENAME[pkg], compare, version))

0 commit comments

Comments
 (0)