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