From 57cb8b0b1d7cee05a230c77d0392868274f82843 Mon Sep 17 00:00:00 2001 From: Santiago Espinosa Date: Mon, 4 Sep 2023 13:02:35 +0200 Subject: [PATCH] fix: add basepath to setup.py file openers (#22) --- setup.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 41bec6a..c992063 100644 --- a/setup.py +++ b/setup.py @@ -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()