Skip to content

Commit

Permalink
setup.py: improvements
Browse files Browse the repository at this point in the history
- Use README.md content for long_description;
- Add python_requires.
  • Loading branch information
zmwangx committed May 1, 2019
1 parent 1437243 commit 07ad4af
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,21 @@


HERE = pathlib.Path(__file__).resolve().parent
with open(HERE / "src/caterpillar/version.py", encoding="utf-8") as fp:
with HERE.joinpath("src/caterpillar/version.py").open(encoding="utf-8") as fp:
exec(fp.read())
with HERE.joinpath("README.md").open(encoding="utf-8") as fp:
long_description = fp.read()

setuptools.setup(
name="caterpillar-hls",
version=__version__,
description="Hardened HLS merger",
long_description="See https://github.com/zmwangx/caterpillar#readme.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/zmwangx/caterpillar",
author="Zhiming Wang",
author_email="[email protected]",
python_requires=">=3.6",
license="MIT",
classifiers=[
"Development Status :: 5 - Production/Stable",
Expand Down

0 comments on commit 07ad4af

Please sign in to comment.