-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
61 lines (57 loc) · 1.87 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
import os
import sys
from setuptools import setup, find_packages
# --- version check ---
CURRENT_PYTHON = sys.version_info[:2]
REQUIRED_PYTHON = (3, 6)
if CURRENT_PYTHON < REQUIRED_PYTHON:
print(
f"""
--- Unsopported Python version ---
Ventus requires at least Python {REQUIRED_PYTHON[0]}.{REQUIRED_PYTHON[1]},
but you're trying to install it on Python {CURRENT_PYTHON[0]}.{CURRENT_PYTHON[1]}.
"""
)
sys.exit(1)
# --- publish option ---
if sys.argv[-1] == 'publish':
"""pack and publish"""
os.system('python setup.py sdist bdist_wheel')
os.system('twine upload dist/*')
sys.exit()
# --- read readme.md ---
with open("README.md", "r") as f:
readme = f.read()
# --- setting up ---
setup(
name="ventus",
version='0.3.4',
author="aaronlyy (Aaron Levi)",
author_email="<aaronlevican@gmail.com>",
url="https://github.com/aaronlyy/ventus",
description='A google dorking library and cli.',
long_description_content_type="text/markdown",
long_description=readme,
packages=["ventus"],
entry_points={
"console_scripts": [
"ventus = ventus.cli:cli"
]
},
install_requires=['requests', 'beautifulsoup4', 'click'],
keywords=['dorking', 'google', 'scraping', 'google dorking', 'hacking', 'cracking'],
classifiers=[
"Intended Audience :: Developers",
'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',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development :: Libraries',
"Operating System :: Unix",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
]
)