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:
parent
aa6291949d
commit
1278009ff7
|
@ -1,3 +1,6 @@
|
|||
Releases
|
||||
build
|
||||
changelogs
|
||||
*.egg-info
|
||||
.venv
|
||||
__pycache__
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
from mkr.mkr import run_cli
|
||||
|
||||
run_cli()
|
||||
|
||||
print("Hello, world!")
|
|
@ -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:
|
|
@ -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"
|
Loading…
Reference in New Issue