From 05e42478b4bb7b96615c701dbb69bff476d3644a Mon Sep 17 00:00:00 2001 From: Samuel Sloniker Date: Mon, 8 May 2023 10:38:19 -0700 Subject: [PATCH] Try poetry directive --- debian/adsms.service | 18 +++++++++++++++++- pyproject.toml | 5 ++++- 2 files changed, 21 insertions(+), 2 deletions(-) mode change 120000 => 100644 debian/adsms.service diff --git a/debian/adsms.service b/debian/adsms.service deleted file mode 120000 index 4ba643b..0000000 --- a/debian/adsms.service +++ /dev/null @@ -1 +0,0 @@ -adsms.service \ No newline at end of file diff --git a/debian/adsms.service b/debian/adsms.service new file mode 100644 index 0000000..006f07f --- /dev/null +++ b/debian/adsms.service @@ -0,0 +1,17 @@ +# Systemd unit file for the adsms service +# Generated by ChatGPT + +[Unit] +Description=Send SMS notifications based on ADS-B data +After=network.target +Requires=tar1090.service +After=tar1090.service + +[Service] +User=adsms +Group=adsms +ExecStart=/usr/local/bin/adsms /etc/adsms.json +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/pyproject.toml b/pyproject.toml index 268e79d..3d973ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "adsms" -version = "0.3" +version = "0.5" description = "Send SMS aircraft alerts based on ADS-B data" readme = "README.md" authors = [{ name = "Samuel Sloniker", email = "sam@kj7rrv.com"}] @@ -25,3 +25,6 @@ adsms = "adsms:main" [tool.setuptools] packages = ["adsms"] + +[tool.poetry] +include = ["debian/"]