diff --git a/README.rst b/README.rst index fbc8418..0a0d591 100644 --- a/README.rst +++ b/README.rst @@ -5,6 +5,18 @@ Python API for Synology DSM .. image:: https://travis-ci.org/StaticCube/python-synology.svg?branch=master :target: https://travis-ci.org/StaticCube/python-synology +.. image:: https://img.shields.io/pypi/v/python-synology.svg + :alt: Library version + :target: https://pypi.org/project/python-synology + +.. image:: https://img.shields.io/pypi/pyversions/python-synology.svg + :alt: Supported versions + :target: https://pypi.org/project/python-synology + +.. image:: https://pepy.tech/badge/python-synology + :alt: Downloads + :target: https://pypi.org/project/python-synology + Installation ============ diff --git a/setup.py b/setup.py index 9b6f086..fbe06c3 100644 --- a/setup.py +++ b/setup.py @@ -6,19 +6,39 @@ # - Minor means API bugfix or new functionality # - Micro means change of any kind (unless significant enough for a minor/major). -import io from setuptools import setup +from codecs import open +from os import path + +here = path.abspath(path.dirname(__file__)) + +# Get the long description from the README file +with open(path.join(here, 'README.rst'), encoding='utf-8') as f: + long_description = f.read() setup( - name = 'python-synology', - packages = ['SynologyDSM'], # this must be the same as the name above - version = '0.4.0', - description = 'Python API for communication with Synology DSM', - author = 'FG van Zeelst (StaticCube)', - author_email = 'GitHub@StaticCube.com', - url = 'https://github.com/StaticCube/python-synology/', - download_url = 'https://github.com/StaticCube/python-synology/tarball/0.4.0', - keywords = ['synology-dsm', 'synology'], - classifiers = [], - install_requires=['requests>=1.0.0'] + name = 'python-synology', + version = '0.4.0', + url = 'https://github.com/StaticCube/python-synology/', + download_url = 'https://github.com/StaticCube/python-synology/tarball/0.4.0', + description = 'Python API for communication with Synology DSM', + long_description=long_description, + author = 'FG van Zeelst (StaticCube)', + author_email = 'GitHub@StaticCube.com', + packages = ['SynologyDSM'], # this must be the same as the name above + install_requires=['requests>=1.0.0'], + python_requires=">=2.7.0", + license="MIT", + classifiers=[ + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + ], + keywords = ['synology-dsm', 'synology'], )