Load requirements from file, parse them as a Python list!
()
| 7 | |
| 8 | ROOT = os.path.abspath(os.path.dirname(__file__)) |
| 9 | def load_requirements() -> list: |
| 10 | """Load requirements from file, parse them as a Python list!""" |
| 11 | with open(os.path.join(ROOT, "requirements.txt"), encoding="utf-8") as f: |
| 12 | all_reqs = f.read().split("\n") |
| 13 | install_requires = [x.strip() for x in all_reqs if "git+" not in x] |
| 14 | |
| 15 | return install_requires |
| 16 | |
| 17 | setup( |
| 18 | name='D3l', |