-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathsetup.py
62 lines (54 loc) · 2.02 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
#!/usr/bin/env python
import os
import re
from setuptools import setup
CURRENT_DIR = os.path.abspath(os.path.dirname(__file__))
def get_reqs(*fns):
lst = []
for fn in fns:
for package in open(os.path.join(CURRENT_DIR, fn)).readlines():
package = package.strip()
if not package:
continue
lst.append(package.strip())
return lst
with open("godaddypy/__init__.py", "r") as f:
version_match = re.search(r"^__version__\s*=\s*[\'\"]([^\'\"]*)[\'\"]", f.read(), re.MULTILINE)
if version_match is None:
raise RuntimeError("No version information found in godaddypy/__init__.py")
else:
version = version_match.group(1)
with open("README.rst") as file:
long_description = file.read()
setup(
name="GoDaddyPy",
version=version,
description="A very simple python client used to update the IP address in A records for GoDaddy managed domains.",
long_description=long_description,
author="Julian Coy",
author_email="[email protected]",
url="https://github.com/eXamadeus/godaddypy",
packages=["godaddypy"],
install_requires=get_reqs('requirements.txt'),
tests_require=get_reqs('requirements-dev.txt'),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Topic :: Internet :: Name Service (DNS)",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python :: 2",
"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",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
project_urls={
"Source": "https://github.com/eXamadeus/godaddypy",
},
)