Skip to content

Commit

Permalink
fix: add basepath to setup.py file openers (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saigesp authored Sep 4, 2023
1 parent e99593f commit 57cb8b0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@
if sys.version_info.major == 2:
sys.exit("Python 2 is not supported anymore. The last supported version is 3.10.0")

version = "0.3.0"
BASE_DIR = Path(__file__).resolve().parent
version = "{{VERSION_PLACEHOLDER}}"

with Path.open("README.md") as fh:
with Path.open(BASE_DIR / "README.md") as fh:
long_description = fh.read()


def get_reqs(filename):
"""Read file per-line."""
with Path.open(filename) as reqs_file:
with Path.open(BASE_DIR / filename) as reqs_file:
return reqs_file.readlines()


Expand Down

0 comments on commit 57cb8b0

Please sign in to comment.