mirror of
https://github.com/ProtoThis/python-synology.git
synced 2025-08-08 06:36:06 +00:00
Add PyPi badges + Add long_description, python_requires, license, & classifiers to setup (#15)
+ format setup to use 4 spaces indent
This commit is contained in:
12
README.rst
12
README.rst
@ -5,6 +5,18 @@ Python API for Synology DSM
|
|||||||
.. image:: https://travis-ci.org/StaticCube/python-synology.svg?branch=master
|
.. image:: https://travis-ci.org/StaticCube/python-synology.svg?branch=master
|
||||||
:target: https://travis-ci.org/StaticCube/python-synology
|
: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
|
Installation
|
||||||
============
|
============
|
||||||
|
|
||||||
|
34
setup.py
34
setup.py
@ -6,19 +6,39 @@
|
|||||||
# - Minor means API bugfix or new functionality
|
# - Minor means API bugfix or new functionality
|
||||||
# - Micro means change of any kind (unless significant enough for a minor/major).
|
# - Micro means change of any kind (unless significant enough for a minor/major).
|
||||||
|
|
||||||
import io
|
|
||||||
from setuptools import setup
|
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(
|
setup(
|
||||||
name = 'python-synology',
|
name = 'python-synology',
|
||||||
packages = ['SynologyDSM'], # this must be the same as the name above
|
|
||||||
version = '0.4.0',
|
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/',
|
url = 'https://github.com/StaticCube/python-synology/',
|
||||||
download_url = 'https://github.com/StaticCube/python-synology/tarball/0.4.0',
|
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'],
|
keywords = ['synology-dsm', 'synology'],
|
||||||
classifiers = [],
|
|
||||||
install_requires=['requests>=1.0.0']
|
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user