Skip to content

Commit

Permalink
Improve requirements reader
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Oct 3, 2022
1 parent 0e06d86 commit 1ac6b67
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,26 @@
README = (HERE / "README.md").read_text()

with open(HERE / "requirements/base.txt") as f:
requirements = f.read().splitlines()
requirements = [
line
for line in f.read().splitlines()
if not line.startswith(("#", "-")) and len(line)
]

with open(HERE / "requirements/development.txt") as f:
requirements_dev = f.read().splitlines()
requirements_dev = [
line
for line in f.read().splitlines()
if not line.startswith(("#", "-")) and len(line)
]


with open(HERE / "requirements/documentation.txt") as f:
requirements_docs = f.read().splitlines()
requirements_docs = [
line
for line in f.read().splitlines()
if not line.startswith(("#", "-")) and len(line)
]


# ############################################################################
Expand Down

0 comments on commit 1ac6b67

Please sign in to comment.