From 50db3b7deba0437fc63a9893f6bbc2166b371f7e Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Mon, 24 Oct 2022 15:16:19 +0200 Subject: [PATCH] Add setup tools --- knotctl => scripts/knotctl | 0 setup.py | 26 ++++++++++++++++++++++++++ stdeb.cfg | 4 ++++ 3 files changed, 30 insertions(+) rename knotctl => scripts/knotctl (100%) mode change 100644 => 100755 create mode 100644 setup.py create mode 100644 stdeb.cfg diff --git a/knotctl b/scripts/knotctl old mode 100644 new mode 100755 similarity index 100% rename from knotctl rename to scripts/knotctl diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..47eb8fa --- /dev/null +++ b/setup.py @@ -0,0 +1,26 @@ +import setuptools + +with open("README.md", "r", encoding="utf-8") as fh: + long_description = fh.read() + +setuptools.setup( + name="knotctl", + version="0.0.1", + packages = setuptools.find_packages(), + author="Micke Nordin", + author_email="hej@mic.ke", + description="A cli for knotapi.", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://code.smolnet.org/micke/knotctl", + project_urls={ + "Bug Tracker": "https://code.smolnet.org/micke/knotctl/issues", + }, + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: GPL-3.0", + "Operating System :: OS Independent", + ], + python_requires=">=3.9", + scripts=["scripts/knotctl"], +) diff --git a/stdeb.cfg b/stdeb.cfg new file mode 100644 index 0000000..cb52e6a --- /dev/null +++ b/stdeb.cfg @@ -0,0 +1,4 @@ +[DEFAULT] +Depends3: python3-argcomplete, python3-requests, python3-yaml +Debian-Version: 1 +Package3: knotctl