From f1ea8871ab31e1116b857b49231781b78a2be6ac Mon Sep 17 00:00:00 2001 From: Samuel Sloniker Date: Sun, 7 May 2023 18:50:21 -0700 Subject: [PATCH] Packaging --- adsms.py => adsms/__init__.py | 2 +- pyproject.toml | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) rename adsms.py => adsms/__init__.py (98%) create mode 100644 pyproject.toml diff --git a/adsms.py b/adsms/__init__.py similarity index 98% rename from adsms.py rename to adsms/__init__.py index 5e2c384..f10efc9 100755 --- a/adsms.py +++ b/adsms/__init__.py @@ -77,7 +77,7 @@ def run(config): con.close() -if __name__ == "__main__": +def main(): parser = argparse.ArgumentParser() parser.add_argument("config_file") args = parser.parse_args() diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..fc0302d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,27 @@ +[build-system] +requires = ["setuptools>=61.0.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "adsms" +version = "0.0" +description = "Send SMS aircraft alerts based on ADS-B data" +readme = "README.md" +authors = [{ name = "Samuel Sloniker", email = "sam@kj7rrv.com"}] +classifiers = [ + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Development Status :: 2 - Pre-Alpha", + "License :: OSI Approved :: GNU Affero General Public License v3", +] +dependencies = ["requests"] +requires-python = ">=3.7" + +[project.urls] +Homepage = "https://git.kj7rrv.com/kj7rrv/adsms" + +[project.scripts] +adsms = "adsms:main" + +[tool.setuptools] +packages = ["adsms"]