|
| 1 | +#!/usr/bin/env python3 |
| 2 | +""" |
| 3 | +Copyright (c) 2018 Fabian Affolter <[email protected]> |
| 4 | +
|
| 5 | +Licensed under MIT. All rights reserved. |
| 6 | +""" |
| 7 | +import os |
| 8 | +import sys |
| 9 | + |
| 10 | +try: |
| 11 | + from setuptools import setup |
| 12 | +except ImportError: |
| 13 | + from distutils.core import setup |
| 14 | + |
| 15 | +here = os.path.abspath(os.path.dirname(__file__)) |
| 16 | + |
| 17 | +with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f: |
| 18 | + long_description = f.read() |
| 19 | + |
| 20 | +if sys.argv[-1] == 'publish': |
| 21 | + os.system('python3 setup.py sdist upload') |
| 22 | + sys.exit() |
| 23 | + |
| 24 | +setup( |
| 25 | + name='volkszaehler', |
| 26 | + version='0.1.0', |
| 27 | + description='Python Wrapper for interacting with the Volkszahler API.', |
| 28 | + long_description=long_description, |
| 29 | + url='https://github.com/fabaff/python-volkszaehler', |
| 30 | + download_url='https://github.com/fabaff/python-volkszaehler/releases', |
| 31 | + author='Fabian Affolter', |
| 32 | + |
| 33 | + license='MIT', |
| 34 | + install_requires=['aiohttp', 'async_timeout'], |
| 35 | + packages=['volkszaehler'], |
| 36 | + zip_safe=True, |
| 37 | + classifiers=[ |
| 38 | + 'Development Status :: 3 - Alpha', |
| 39 | + 'Environment :: Console', |
| 40 | + 'Intended Audience :: Developers', |
| 41 | + 'License :: OSI Approved :: MIT License', |
| 42 | + 'Operating System :: MacOS :: MacOS X', |
| 43 | + 'Operating System :: Microsoft :: Windows', |
| 44 | + 'Operating System :: POSIX', |
| 45 | + 'Programming Language :: Python :: 3.5', |
| 46 | + 'Programming Language :: Python :: 3.6', |
| 47 | + 'Topic :: Utilities', |
| 48 | + ], |
| 49 | +) |
0 commit comments