-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
77 lines (72 loc) · 2.53 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
from setuptools import setup, find_packages
from setuptools.command.install import install
from setuptools.command.develop import develop
import os
from shutil import copyfile
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
def copy_config():
default_config = os.path.join(
os.path.dirname(__file__), "src", "gh_fake_analyzer", "config.ini"
)
user_config = os.path.expanduser("~/.gh_fake_analyzer_config.ini")
if not os.path.exists(user_config):
copyfile(default_config, user_config)
print(f"Created default configuration file at {user_config}")
class PostInstallCommand(install):
def run(self):
install.run(self)
copy_config()
class PostDevelopCommand(develop):
def run(self):
develop.run(self)
copy_config()
setup(
name="gh-fake-analyzer",
version="0.1.9",
author="blackbigswan",
author_email="[email protected]",
description="An OSINT utility for downloading, analyzing and detecting potential suspicious activity patterns in GitHub profiles",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/shortdoom/gh-fake-analyzer",
package_dir={"": "src"},
packages=find_packages(where="src", include=["gh_fake_analyzer*"]),
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Topic :: Security",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"Environment :: Console",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
python_requires=">=3.7",
install_requires=[
"requests==2.32.3",
"python-dotenv==1.0.1",
"python-dateutil==2.9.0.post0",
"GitPython==3.1.43",
"urllib3==2.2.2",
],
entry_points={
"console_scripts": [
"gh-analyze=gh_fake_analyzer.terminal:start_terminal",
],
},
include_package_data=True,
package_data={
"gh_fake_analyzer": ["config.ini", "modules/*", "utils/*"],
},
cmdclass={
"install": PostInstallCommand,
"develop": PostDevelopCommand,
},
)