Skip to content

Commit 9dad6da

Browse files
committed
build(python): change extra names to comply with PEP 685 (#446)
Since pip>=23.3.0, non-normalised extra names are ignored, so `snakemake_reports` is changed to `snakemake-reports`. The former name is kept for backward compatibility with older versions of pip.
1 parent b4a81d5 commit 9dad6da

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"tabulate<0.9",
4242
"pulp>=2.7.0,<2.8.0",
4343
],
44-
"snakemake_reports": [
44+
"snakemake-reports": [
4545
"snakemake==6.15.5 ; python_version<'3.7'",
4646
"snakemake==7.32.4 ; python_version>='3.7'",
4747
"pygraphviz<1.8",
@@ -50,6 +50,9 @@
5050
],
5151
}
5252

53+
# backwards compatibility with extras before PEP 685
54+
extras_require["snakemake_reports"] = extras_require["snakemake-reports"]
55+
5356
extras_require["all"] = []
5457
for key, reqs in extras_require.items():
5558
if ":" == key[0]:

0 commit comments

Comments
 (0)