-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
47 lines (43 loc) · 1.51 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
from os.path import join, dirname
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
def get_requirements():
reqsFile = open(join(dirname(__file__), 'requirements.txt'), 'r')
reqs = [req.strip() for req in reqsFile if req.strip() != '']
reqs.reverse() # we specify them in dependency resolution order in the file; we need to reverse that for install
reqsFile.close()
return reqs
def read(name, *args):
try:
with open(join(dirname(__file__), name)) as read_obj:
return read_obj.read(*args)
except Exception:
return ''
extra_setup = {}
setup(
name='powerglove-dns',
version='2.0.1',
author='Rob Dennis',
author_email='[email protected]',
description="Reserves an appropriate ip in a PowerDNS installation for a given hostname, updating reverse/forward/text records as well",
long_description=read('README.rst'),
install_requires=get_requirements(),
tests_require=['unittest2', 'mock'],
url="https://github.com/appliedsec/Powerglove-DNS",
test_suite = 'unittest2.collector',
entry_points="""
[console_scripts]
powerglovedns = powerglove_dns:main
""",
packages=find_packages(exclude=['ez_setup']),
include_package_data=True,
classifiers=[
'License :: OSI Approved :: MIT License',
'Development Status :: 5 - Production/Stable',
],
**extra_setup
)