From 07ad4afce29aaab8e053c30d46d6f28692c5d009 Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Wed, 1 May 2019 11:32:49 +0800 Subject: [PATCH] setup.py: improvements - Use README.md content for long_description; - Add python_requires. --- setup.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 51d3974..e926c09 100755 --- a/setup.py +++ b/setup.py @@ -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="zmwangx@gmail.com", + python_requires=">=3.6", license="MIT", classifiers=[ "Development Status :: 5 - Production/Stable",