Debian Codegraph @

setup.py

raw ◀ ▶
1 Debian patch touch this file
1 import io
2 import os
3 import setuptools
4 import shutil
5 import tempfile
6
•7 VERSION = "0.4.4"
8
9
10 current_dir = os.path.abspath(os.path.dirname(__file__))
•11
12
13 def get_dependencies():
14 with io.open(os.path.join(current_dir, "requirements.txt"), encoding="utf-8") as fd:
15 return [line.strip() for line in fd if line.strip() and not line.lstrip().startswith("#") and "setuptools" not in line]
16
17
18 with io.open(os.path.join(current_dir, "README.md"), encoding="utf-8") as fd:
19 desc = fd.read()
20
21 env_dir = tempfile.mkdtemp(prefix="dirsearch-install-")
22 shutil.copytree(os.path.abspath(os.getcwd()), os.path.join(env_dir, "dirsearch"))
23
24 os.chdir(env_dir)
25
26 setuptools.setup(
27 name="dirsearch",
28 version=VERSION,
29 author="Mauro Soria",
30 author_email="[email protected]",
31 description="Advanced web path scanner",
32 long_description=desc,
33 long_description_content_type="text/markdown",
34 url="https://github.com/maurosoria/dirsearch",
35 packages=setuptools.find_packages(),
36 entry_points={"console_scripts": ["dirsearch=dirsearch.dirsearch:main"]},
37 package_data={"dirsearch": ["*", "db/*"]},
38 include_package_data=True,
39 python_requires=">=3.9",
40 install_requires=get_dependencies(),
41 classifiers=[
42 "Programming Language :: Python",
43 "Environment :: Console",
44 "Intended Audience :: Information Technology",
45 "License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
46 "Operating System :: OS Independent",
47 "Topic :: Security",
48 "Programming Language :: Python :: 3.9",
49 ],
50 keywords=["infosec", "bug bounty", "pentesting", "security"],
51 )