Skip to content

Commit

Permalink
Version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudius Röhl committed Jan 17, 2025
1 parent 716e6f1 commit a7a060b
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
Binary file removed 2024-09-30_Bug.png
Binary file not shown.
20 changes: 18 additions & 2 deletions modules/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,25 @@
from modules.general.medialocalizer import BaseLocalizerInput, GpsData
from modules.mow.mow import Mow
from argparse import ArgumentParser, Namespace
import importlib.metadata
import toml


def get_version():
with open("pyproject.toml", "r") as file:
pyproject_content = toml.load(file)
return pyproject_content["project"]["version"]


parser = ArgumentParser(
"M(edia) flo(OW) - helper to automate media workflow. Needs a working dir to be specified into .mowsettings.yml."
description=f"M(edia) flo(OW) {get_version()} - helper to automate media workflow. Needs a working dir to be specified into .mowsettings.yml."
)

parser.add_argument(
"-v",
"--version",
action="version",
version=f"{get_version()}",
)

subparsers = parser.add_subparsers(dest="command")
Expand Down Expand Up @@ -309,7 +325,7 @@ def get_canonical_command(command: str):

def main():
args = parser.parse_args()

mow = Mow(
".mowsettings.yml",
dry=not args.execute if hasattr(args, "execute") else True,
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "mow"
version = "0.1.0"
version = "1.0.0"
description = "Mow - a media organization workflow tool"
requires-python = ">=3.12"
dependencies = [
Expand All @@ -16,6 +16,7 @@ dependencies = [
"rich>=13.9.2",
"ruff>=0.7.0",
"tzdata>=2024.2",
"toml>=0.10.2",
]

[project.scripts]
Expand All @@ -36,4 +37,4 @@ build-backend = "hatchling.build"
packages = ["modules"]

[tool.hatch.build.targets.sdist]
include=["modules"]
include=["modules"]
13 changes: 12 additions & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a7a060b

Please sign in to comment.