build: Add build system

With the hopes of this doing more intelligent stuff like making pull
requests, interfacing with git and setting up builds, it's worth getting
this set up first.
This commit is contained in:
Archie Hilton 2024-09-29 22:14:10 +01:00
parent aa6291949d
commit 1278009ff7
5 changed files with 26 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,3 +1,6 @@
Releases
build
changelogs
*.egg-info
.venv
__pycache__

0
mkr/__init__.py Normal file
View File

5
mkr/__main__.py Normal file
View File

@ -0,0 +1,5 @@
from mkr.mkr import run_cli
run_cli()
print("Hello, world!")

View File

@ -76,7 +76,7 @@ def do_checklists(config):
completed_checklists.append((i, checklist["checklist_name"]))
if __name__ == "__main__":
def run_cli():
args = parser.parse_args()
if not args.verbose:

17
pyproject.toml Normal file
View File

@ -0,0 +1,17 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "mkr"
version = "0.1.0"
authors = [
{name = "Archie Hilton", email = "archie@sabretechnology.co.uk"},
]
description = "Quickly package releases"
readme = "README.md"
requires-python = ">=3.11"
license = {text = "All Rights Reserved."}
[project.scripts]
mkr = "mkr.mkr:run_cli"