Skip to content

Commit 5d45546

Browse files
authored
Simplify install_requires
Putting python-dateutils directly in install_requires is simpler, allows code and a file to be deleted, and is more aligned with the guidance of the python packaging authority. See https://github.com/pypa/sampleproject/blob/master/setup.py#L143-L149.
1 parent 993b54f commit 5d45546

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

setup.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212

1313
here = os.path.abspath(os.path.dirname(__file__))
1414

15-
with open(os.path.join(here, 'requirements.txt')) as f:
16-
install_requires = f.read().split('\n')
17-
1815
with open(os.path.join(here, 'README.md')) as readme_file:
1916
readme = readme_file.read()
2017

@@ -30,7 +27,7 @@
3027
packages=find_packages(),
3128
py_modules=[splitext(basename(path))[0] for path in glob('pystac/*.py')],
3229
include_package_data=False,
33-
install_requires=install_requires,
30+
install_requires=["python-dateutil>=2.7.0"],
3431
license="Apache Software License 2.0",
3532
zip_safe=False,
3633
keywords=[

0 commit comments

Comments
 (0)