From ae380330684f9b1cdf85fb44d7bb9f61bbd3c63f Mon Sep 17 00:00:00 2001 From: Yue Du Date: Tue, 27 Feb 2024 23:45:13 +0800 Subject: [PATCH] [chore] setup.py use joinpath --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index cfe7d30..d48dc59 100644 --- a/setup.py +++ b/setup.py @@ -24,10 +24,11 @@ ) ] -long_description = Path('README.rst').read_text() + '\n' + Path('CHANGELOG.rst').read_text() +d = Path(__file__).parent +long_description = d.joinpath('README.rst').read_text() + '\n' + d.joinpath('CHANGELOG.rst').read_text() version_dict = {} -exec(Path(__file__).parent.joinpath("xxhash", "version.py").read_text(), {}, version_dict) +exec(d.joinpath("xxhash", "version.py").read_text(), {}, version_dict) version = version_dict["VERSION"] setup(