diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 5fa6e71..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,5 +0,0 @@ -include requirements.txt -include VERSION -include LICENSE -recursive-include config * -recursive-include jadx * \ No newline at end of file diff --git a/apkleaks/apkleaks.py b/apkleaks/apkleaks.py index 1c453f5..738f406 100644 --- a/apkleaks/apkleaks.py +++ b/apkleaks/apkleaks.py @@ -12,7 +12,7 @@ from contextlib import closing from shutil import which from pathlib import Path -from pipes import quote +from shlex import quote from urllib.request import urlopen from zipfile import ZipFile diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..61eb3d1 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,34 @@ +[project] +name = "apkleaks" +description = "Scanning APK file for URIs, endpoints & secrets." +readme = "README.md" +authors = [{ name = "dwisiswant0", email = "me@dw1.io" }] +classifiers = [ + "Development Status :: 3 - Alpha", + "Natural Language :: English", + "Topic :: Security", + "Topic :: Utilities", +] +license = { text = "Apache License 2.0" } +requires-python = ">=3.8" +dynamic = ["dependencies", "version"] + +[project.scripts] +apkleaks = "apkleaks.cli:main" + +[project.urls] +Homepage = "https://github.com/dwisiswant0/apkleaks/" + +[tool.setuptools.dynamic] +version = { file = "VERSION" } +dependencies = { file = "requirements.txt" } + +[tool.setuptools.package-data] +"*" = ["*.json"] + +[tool.setuptools.packages.find] +include = ["apkleaks*", "config*"] + +[build-system] +requires = ["setuptools>=68"] +build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py deleted file mode 100644 index 773f969..0000000 --- a/setup.py +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env python3 -from os import path -from setuptools import setup, find_packages - -main_dir = path.abspath(path.dirname(__file__)) -install_requires = open(path.join(main_dir, "requirements.txt"), "r").readlines() -version = open(path.join(main_dir, "VERSION"), "r").read().strip() -long_description = open(path.join(main_dir, "README.md"), "r", encoding="utf-8").read() -packages = find_packages(exclude=["*.tests", "*.tests.*", "test*", "tests"]) -packages.append("config") - -setup( - name="apkleaks", - version=version, - packages=packages, - url="https://github.com/dwisiswant0/apkleaks/", - license="Apache License 2.0", - author="dwisiswant0", - author_email="me@dw1.io", - description="Scanning APK file for URIs, endpoints & secrets.", - long_description=long_description, - long_description_content_type="text/markdown", - install_requires=install_requires, - include_package_data=True, - entry_points={ - "console_scripts": [ - "apkleaks=apkleaks.cli:main", - ] - }, - classifiers=[ - "Development Status :: 3 - Alpha", - "Natural Language :: English", - "Topic :: Security", - "Topic :: Utilities", - ] -)