From 611914f2cbbed312ebcd0a279aa657d45921c6bf Mon Sep 17 00:00:00 2001 From: fucm Date: Fri, 8 Feb 2019 23:00:18 +0100 Subject: [PATCH] Fix pypi description --- MANIFEST.in | 2 +- setup.py | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 4bf4483..7152b80 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1 @@ -include README.md \ No newline at end of file +include README.md LICENSE \ No newline at end of file diff --git a/setup.py b/setup.py index 6d17b8f..235da5f 100644 --- a/setup.py +++ b/setup.py @@ -13,6 +13,10 @@ with open(os.path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() +if sys.argv[-1] == 'build': + os.system('python3 setup.py sdist bdist_wheel') + sys.exit() + if sys.argv[-1] == 'publish': os.system('python3 setup.py sdist upload') sys.exit() @@ -32,14 +36,15 @@ def run_tests(self): setup( - name='pyStiebelEltron', + name='pystiebeleltron', version='0.0.1.dev0', description='Python API for interacting with the Stiebel Eltron ISG web gateway via Modbus for controlling integral ventilation units and heat pumps.', long_description=long_description, + long_description_content_type='text/markdown', url='https://github.com/fucm/python-stiebel-eltron', author='Martin Fuchs', - author_email='martin.fuchs AT gmx.ch', license='MIT', + python_requires='>=3.4', install_requires=['pymodbus>=2.1.0'], tests_require=['tox'], cmdclass={'test': Tox},