Create a skeleton python project and modify it to fit this project

Create a skeleton python project using "hatch new -i --cli
infra-rebuild" with Hatch version 1.7.0 and modify it to fit this
project. This is the first step of porting infra-rebuild to Python.

Also provide a first .gitignore ignoring relevant build directories.
This commit is contained in:
June 2024-06-05 15:24:47 +02:00
commit 500438636a
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0
7 changed files with 181 additions and 0 deletions

View file

@ -0,0 +1 @@
__version__ = "0.0.1"

View file

View file

@ -0,0 +1,6 @@
import sys
if __name__ == "__main__":
from infra_rebuild.cli import infra_rebuild
sys.exit(infra_rebuild())

View file

@ -0,0 +1,9 @@
import click
from infra_rebuild.__about__ import __version__
@click.group(context_settings={"help_option_names": ["-h", "--help"]}, invoke_without_command=True)
@click.version_option(version=__version__, prog_name="infra-rebuild")
def infra_rebuild():
click.echo("Hello world!")