Skip to content

Commit 0f80894

Browse files
committed
Added: extra dependencies for data (#209)
1 parent d2dff15 commit 0f80894

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

requirements/data.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
openpyxl<4.0.0
2+
pandas<3.0.0
3+
xlrd<3.0.0

setup.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,17 @@ def read_version():
1818
with open("README.md", "r", encoding="utf-8") as fh:
1919
long_description = fh.read()
2020

21-
requirements_file = os.getenv('REQUIREMENTS', 'requirements/base.txt')
21+
requirements_file = "requirements/base.txt"
2222

2323
# Read requirements/base.txt for install_requires
2424
with open(requirements_file, encoding="utf-8") as f:
2525
install_requires = f.read().splitlines()
26-
26+
27+
data_extras_file = "requirements/data.txt"
28+
29+
with open(data_extras_file, encoding="utf-8") as f:
30+
install_extras_data = f.read().splitlines()
31+
2732
setup(
2833
name='libreforms_fastapi',
2934
version=version,
@@ -46,4 +51,7 @@ def read_version():
4651
'libreformsctl=libreforms_fastapi.cli.__init__:cli',
4752
],
4853
},
54+
extras_require={
55+
"data": install_extras_data,
56+
},
4957
)

0 commit comments

Comments
 (0)