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 <alves.rjc@gmail.com>
This commit is contained in:
Alex
2023-04-27 06:09:13 +02:00
committed by GitHub
parent a0ae059ca2
commit 1a2bb7b8d7
3 changed files with 24 additions and 1 deletions

4
.gitignore vendored
View File

@@ -1 +1,5 @@
tests/all.log
__pycache__/
build/
dist/
*.egg-info/

View File

@@ -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()

15
pyproject.toml Normal file
View File

@@ -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"