Skip to content

Commit

Permalink
[chore] setup.py use joinpath
Browse files Browse the repository at this point in the history
  • Loading branch information
ifduyue committed Feb 27, 2024
1 parent b990c28 commit ae38033
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ae38033

Please sign in to comment.