This repository has been archived by the owner on Feb 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
79 lines (63 loc) · 1.87 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
78
79
#!/usr/bin/env python
from setuptools import setup, find_packages
import os.path
import sys
install_packages = []
PY2 = sys.version_info[0] == 2
if PY2:
install_packages.append('dnspython')
else:
install_packages.append('dnspython3')
def lt27():
v = sys.version_info
return (v[0], v[1]) < (2, 7)
def lt33():
v = sys.version_info
return (v[0], v[1]) < (3, 3)
ROOT_PATH = os.path.dirname(__file__)
with open(os.path.join(ROOT_PATH, "README.rst")) as f:
long_description = f.read()
tests_require = [
'nose>=1.0',
'coverage'
]
if lt33():
tests_require.append('mock')
if lt27():
install_packages.append('argparse')
tests_require.append('unittest2')
setup(
name='dynsupdate',
description='Dynamic DNS update like nsupdate',
long_description=long_description,
install_requires=install_packages,
tests_require=tests_require,
packages=find_packages(),
test_suite="nose.collector",
entry_points={
'console_scripts': [
'dynsupdate = dynsupdate.client:main'
]
},
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Environment :: Console",
"Topic :: Internet :: Name Service (DNS)",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"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",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: System Administrators",
],
license="BSD",
author='Slava Bacherikov',
author_email='[email protected]',
keywords=["ddns", "dns"],
version="0.1a"
)