-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (42 loc) · 1.47 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
import codecs
import re
from setuptools import find_packages, setup
def get_version(filename):
with codecs.open(filename, "r", "utf-8") as fp:
contents = fp.read()
v = re.search(r"__version__ = ['\"]([^'\"]+)['\"]", contents)
if v is None:
raise Exception(
"No match. Create/Update version.py to include line of __version__ = 'X.Y.Z'"
)
else:
return v.group(1)
version = get_version("src/grf/version.py")
with open("README.md", encoding="utf-8") as f:
readme = f.read()
setup(
name="godaddy-records-finder",
version=version,
description=("GoDaddy Records Finder"),
long_description=readme,
long_description_content_type="text/markdown",
author="whoDoneItAgain",
author_email="[email protected]",
package_dir={"": "src"},
packages=find_packages("src"),
zip_safe=False,
install_requires=["requests==2.31.0"],
python_requires=">=3.12, <=4.0, !=4.0",
entry_points={"console_scripts": ["grf = grf.__main__:main"]},
url="https://github.com/whodoneitagain/godaddy-records-finder",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: Name Service (DNS)",
"Topic :: Internet",
],
)