Skip to content

Commit 67a98cb

Browse files
committed
Add more files
1 parent 9377510 commit 67a98cb

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# python-dingz requirements. Use setup.py for the dependencies.
2+
.

setup.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
"""Set up the Python API for Dingz devices."""
2+
import os
3+
4+
import sys
5+
6+
from setuptools import setup, find_packages
7+
8+
here = os.path.abspath(os.path.dirname(__file__))
9+
10+
with open(os.path.join(here, 'README.rst'), encoding='utf-8') as readme:
11+
long_description = readme.read()
12+
13+
if sys.argv[-1] == 'publish':
14+
os.system('python3 setup.py sdist upload')
15+
sys.exit()
16+
17+
setup(
18+
name='python-dingz',
19+
version='0.0.1',
20+
description='Python API for interacting with Dingz devices',
21+
long_description=long_description,
22+
url='https://github.com/fabaff/python-dingz',
23+
author='Fabian Affolter',
24+
author_email='fabian@affolter-engineering.ch',
25+
license='MIT',
26+
install_requires=['aiohttp', 'async_timeout'],
27+
packages=find_packages(),
28+
zip_safe=True,
29+
include_package_data=True,
30+
classifiers=[
31+
'Development Status :: 3 - Alpha',
32+
'Environment :: Console',
33+
'Intended Audience :: Developers',
34+
'License :: OSI Approved :: MIT License',
35+
'Operating System :: MacOS :: MacOS X',
36+
'Operating System :: Microsoft :: Windows',
37+
'Operating System :: POSIX',
38+
'Programming Language :: Python :: 3.7',
39+
'Programming Language :: Python :: 3.8',
40+
'Topic :: Utilities',
41+
],
42+
)

0 commit comments

Comments
 (0)