-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
77 lines (62 loc) · 2.16 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import re
import sys
import os
from distutils.core import setup
from codecs import open
from glob import glob
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
packages = [
'simpletr64',
'simpletr64.actions'
]
version = ''
with open('simpletr64/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
with open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with open('HISTORY.rst', 'r', 'utf-8') as f:
history = f.read()
setup(
name='simpleTR64',
version=version,
packages=['simpletr64', 'simpletr64.actions', 'tests'],
scripts=glob('bin/**'),
install_requires=['requests>=2.8.1'],
url='http://bpannier.github.io/simpletr64/',
license='Apache 2.0',
author='Benjamin Pannier',
author_email='sourcecode@ka.ro',
description='An easy to use UPnP TR64 protocol library',
long_description=readme + '\n\n' + history,
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: System Administrators',
'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Home Automation',
'Topic :: System :: Networking',
'Topic :: System :: Networking :: Monitoring',
'Topic :: Software Development :: Libraries',
],
keywords='TR64 protocol network UPnP',
)