Skip to content

Commit 7263ea0

Browse files
JohanKJSchreurssoxofaan
authored andcommitted
Issue #198 Code review: make dependency oschmod required on Windows but in extra_requires if you want it on another platform
1 parent 14a01dd commit 7263ea0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
'xarray>=0.12.3',
4848
'pandas>0.20.0',
4949
'deprecated>=1.2.12',
50-
'oschmod>=0.3.12',
50+
'oschmod>=0.3.12; sys_platform == "win32"',
5151
],
5252
extras_require={
5353
"dev": tests_require + [
@@ -56,6 +56,9 @@
5656
"sphinx-autodoc-typehints",
5757
"flake8",
5858
"myst-parser",
59+
],
60+
"oschmod": [ # install oschmod even when platform is not Windows, e.g. for testing in CI.
61+
"oschmod>=0.3.12"
5962
]
6063
},
6164
entry_points={

0 commit comments

Comments
 (0)