From 1a2bb7b8d7896ec7443d9bc599af08fbfc9a326f Mon Sep 17 00:00:00 2001 From: Alex <61382599+NeffIsBack@users.noreply.github.com> Date: Thu, 27 Apr 2023 06:09:13 +0200 Subject: [PATCH] Add pyproject.toml file for pipx installation (#92) * Create pyproject.toml file with setuptools as build system * Update .gitignore to prevent uploading packaging directories Closes #91 --------- Co-authored-by: Renato Alves --- .gitignore | 4 ++++ firefox_decrypt.py | 6 +++++- pyproject.toml | 15 +++++++++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 pyproject.toml diff --git a/.gitignore b/.gitignore index 3c5c42d..1495f7a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,5 @@ tests/all.log +__pycache__/ +build/ +dist/ +*.egg-info/ diff --git a/firefox_decrypt.py b/firefox_decrypt.py index 5f2446a..25057b9 100755 --- a/firefox_decrypt.py +++ b/firefox_decrypt.py @@ -1111,7 +1111,7 @@ def main() -> None: moz.unload_profile() -if __name__ == "__main__": +def run(): try: main() except KeyboardInterrupt: @@ -1119,3 +1119,7 @@ if __name__ == "__main__": sys.exit(Exit.KEYBOARD_INTERRUPT) except Exit as e: sys.exit(e.exitcode) + + +if __name__ == "__main__": + run() diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..48a89d8 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,15 @@ +[project] +name = "firefox-decrypt" +version = "1.0.0" +description = "Firefox Decrypt is a tool to extract passwords from Mozilla (Firefox™, Waterfox™, Thunderbird®, SeaMonkey®) profiles" +authors = [{name = "Renato Alves"}] +requires-python = ">=3.9" +license = {text = "GPL-3.0-only"} +readme = "README.md" + +[project.scripts] +firefox_decrypt = "firefox_decrypt:run" + +[build-system] +requires = ["setuptools", "setuptools-scm"] +build-backend = "setuptools.build_meta"