-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
82 lines (64 loc) · 2.49 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
80
81
82
# =========================================================================
from pkg_resources import parse_requirements as pk_parse_requirements
from pathlib import Path
from setuptools import setup, find_packages
# =========================================================================
name = 'iptoolbox'
version = '0.0.3'
# =========================================================================
BASE_DIR = Path(__file__).resolve().parent
# If you make changes to the project and the changes require other packages that are available in pypi, put them in the "requirements.txt" file.
if not Path(BASE_DIR / "requirements.txt").is_file():
print(
"\n"
"There is no 'requirements.txt' file."
"\n"
"\tGet the content of the file from the link below"
"\n\n"
f">> [https://github.com/V70024/{name}/blob/{version}/requirements.txt]"
"\n\n"
)
exit()
with open(BASE_DIR / "requirements.txt", "r") as requirements_txt:
reqs = [str(requirement) for requirement in pk_parse_requirements(requirements_txt)]
with open(BASE_DIR / "README.md", 'r') as file_README:
long_description = file_README.read()
classifiers = [
"Topic :: Internet",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Development Status :: 1 - Planning",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: Microsoft",
"Operating System :: MacOS",
"Operating System :: BeOS",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
project_urls = {
'Repository': f'https://github.com/V70024/iptoolbox/tree/{version}',
'Documentation': f'https://github.com/V70024/iptoolbox/wiki/iptoolbox-{version}',
'Bug Tracker': 'https://github.com/V70024/iptoolbox/issues'
}
setup(
name=name,
version=version,
description=f'{name} is a tool for purposefully creating IP, testing and scanning it',
author='V70024',
author_email='Zz2f0024@protonmail.com',
python_requires='>=3.6',
license="MIT",
long_description=long_description,
long_description_content_type="text/markdown",
project_urls=project_urls,
url=f'https://github.com/V70024/{name}',
classifiers=classifiers,
package_data={name: ['data.json']},
keywords=name,
packages=find_packages(),
install_requires=reqs
)