Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
[FIX] `ModuleNotFoundError`
  • Loading branch information
jzsmoreno committed Apr 10, 2024
1 parent c8e0253 commit 80fe8b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
7 changes: 2 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
from pathlib import Path

import setuptools
from pip._internal.req import parse_requirements

# Parse the requirements.txt file
requirements = parse_requirements("requirements.txt", session="hack")

# Get the list of requirements as strings
install_requires = [str(req.requirement) for req in requirements]
with open("requirements.txt", "r") as f:
install_requires = f.read().splitlines()

with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
Expand Down

0 comments on commit 80fe8b3

Please sign in to comment.