Skip to content

Commit aef7d15

Browse files
committed
Have setup.py load install_requires from requirements.txt
Avoids maintaining the same list in two places.
1 parent 04ba1c7 commit aef7d15

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
include README.md
22
include CHANGELOG.md
33
include LICENSE
4+
include requirements.txt

setup.py

+6-7
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ def get_long_description():
1414
return text[idx:]
1515

1616

17+
def get_requirements():
18+
with open('requirements.txt') as f:
19+
return f.read().splitlines()
20+
21+
1722
setup(
1823
name='fastpurge',
1924
version='1.0.0',
@@ -35,11 +40,5 @@ def get_long_description():
3540
'Programming Language :: Python :: 3',
3641
'Topic :: Software Development :: Libraries :: Python Modules',
3742
],
38-
install_requires=[
39-
'requests',
40-
'more-executors>=1.19.1',
41-
'six',
42-
'monotonic',
43-
'edgegrid-python',
44-
],
43+
install_requires=get_requirements(),
4544
)

0 commit comments

Comments
 (0)