forked from abdallah/RimuDNS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (50 loc) · 1.75 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
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
__author__ = "Abdallah Deeb <[email protected]>"
import os
from setuptools import setup
NAME = "RimuDNS"
GITHUB_URL = "https://github.com/abdallah/%s" % (NAME)
DESCRIPTION = "Python interface to RimuHosting/Zonomi DNS "
VERSION = "0.0.3"
def read(fname):
full_path = os.path.join(os.path.dirname(__file__), fname)
if os.path.exists(fname):
return open(full_path).read()
else:
return ""
try:
from rimudns.consts import __version__
except ImportError:
for line in read('rimudns/consts.py').split('\n'):
if line.startswith('__version__'):
VERSION = \
line.split('=')[1].replace('"', '').replace("'", '').strip()
requirements = ['lxml >= 2.3.0', 'dnspython >= 1.10.0']
setup(name=NAME,
version=VERSION,
# download_url="%s/zipball/master" % (GITHUB_URL, VERSION),
download_url="%s/zipball/master" % GITHUB_URL,
description=DESCRIPTION,
install_requires=['lxml', 'dnspython'],
author='Abdallah Deeb',
author_email='[email protected]',
url=GITHUB_URL,
long_description=read('README.md'),
license='GPLv3+',
# zip_safe=False,
# package_dir={'rimudns': ''},
# py_modules=['RimuDNS', 'ZoneHandle'],
packages=['rimudns'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Distributed Computing',
'Topic :: Utilities',
],
)