Skip to content

Commit

Permalink
fix(setup): load install_requires from the requirements.txt file
Browse files Browse the repository at this point in the history
  • Loading branch information
jrs65 committed Oct 21, 2020
1 parent 9b72e7c commit 9f25a57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ PyYAML
skyfield>=1.0
future
cython
click
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@
import versioneer


REQUIRES = ["numpy>=1.16", "h5py", "PyYAML", "cython", "future", "click"]

# Don't install requirements if on ReadTheDocs build system.
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
if on_rtd:
requires = []
else:
requires = REQUIRES
# Load the PEP508 formatted requirements from the requirements.txt file. Needs
# pip version > 19.0
with open("requirements.txt", "r") as fh:
requires = fh.readlines()


# Cython
Expand Down

0 comments on commit 9f25a57

Please sign in to comment.