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