Repository: dunossauro/videomaker-helper

Issue:
towncrier
Se for levar o projeto mais a sério mesmo...

Discussion:

Solution patch:
diff --git a/vmh/__init__.py b/CHANGELOG.md
similarity index 100%
rename from vmh/__init__.py
rename to CHANGELOG.md
diff --git a/changelog.d/+4750791f.changed.md b/changelog.d/+4750791f.changed.md
new file mode 100644
index 0000000..322424f
--- /dev/null
+++ b/changelog.d/+4750791f.changed.md
@@ -0,0 +1 @@
+Change package name from vmh to videomaker_helper
diff --git a/pyproject.toml b/pyproject.toml
index eaf4d70..a5dd3c6 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
 [project]
 name = "videomaker-helper"
-version = "0.2.2"
+version = "0.0.1"
 description = "Simples tools to help video makers"
 authors = [{ name = "dunossauro", email = "mendesxeduardo@gmal.com" }]
 readme = "README.md"
@@ -28,10 +28,7 @@ dependencies = [
 ]
 
 [project.scripts]
-vmh = "vmh.cli:app"
-
-[tool.poetry]
-packages = [{include = "vmh"}]
+vmh = "videomaker_helper.cli:app"
 
 [tool.poetry.group.dev.dependencies]
 ruff = "^0.9.1"
@@ -40,6 +37,7 @@ pytest-cov = "^4.1.0"
 taskipy = "^1.12.0"
 mypy = "^1.14.1"
 typos = "^1.29.4"
+towncrier = "^24.8.0"
 
 [tool.poetry.group.doc.dependencies]
 mkdocs = "^1.5.2"
@@ -68,17 +66,56 @@ quote-style = "single"
 [tool.taskipy.tasks]
 format = 'ruff format'
 lint = 'ruff check'
-typos = 'typos vmh tests'
-types = 'mypy vmh'
+typos = 'typos videomaker_helper tests'
+types = 'mypy videomaker_helper'
 pre_test = 'task lint'
-test = 'pytest --cov=vmh/ -vv -x'
-stest = 'pytest --cov=vmh/ -vv'
+test = 'pytest --cov=videomaker_helper/ -vv -x'
+stest = 'pytest'
 post_test = 'coverage html'
 doc = 'mkdocs serve'
 
 [tool.mypy]
 ignore_missing_imports = true
 
+[tool.towncrier]
+directory = "changelog.d"
+filename = "CHANGELOG.md"
+package = "videomaker-helper"
+start_string = "<!-- towncrier release notes start -->\n"
+underlines = ["", "", ""]
+title_format = "## [{version}](https://github.com/dunossauro/videomaker-helper/tree/{version}) - {project_date}"
+issue_format = "[#{issue}](https://github.com/dunossauro/videomaker-helper/issues/{issue})"
+
+[[tool.towncrier.type]]
+directory = "security"
+name = "Security"
+showcontent = true
+
+[[tool.towncrier.type]]
+directory = "removed"
+name = "Removed"
+showcontent = true
+
+[[tool.towncrier.type]]
+directory = "deprecated"
+name = "Deprecated"
+showcontent = true
+
+[[tool.towncrier.type]]
+directory = "added"
+name = "Added"
+showcontent = true
+
+[[tool.towncrier.type]]
+directory = "changed"
+name = "Changed"
+showcontent = true
+
+[[tool.towncrier.type]]
+directory = "fixed"
+name = "Fixed"
+showcontent = true
+
 [build-system]
 requires = ["poetry-core>=2.0.1"]
 build-backend = "poetry.core.masonry.api"
diff --git a/videomaker_helper/__init__.py b/videomaker_helper/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/vmh/audio.py b/videomaker_helper/audio.py
similarity index 97%
rename from vmh/audio.py
rename to videomaker_helper/audio.py
index 2cf9d43..f74d016 100644
--- a/vmh/audio.py
+++ b/videomaker_helper/audio.py
@@ -7,8 +7,8 @@ from loguru import logger
 from pydub import AudioSegment, silence
 from tinydb import TinyDB, where
 
-from vmh.equalize import process_audio
-from vmh.settings import cache_db_path
+from videomaker_helper.equalize import process_audio
+from videomaker_helper.settings import cache_db_path
 
 db = TinyDB(str(cache_db_path))
 
diff --git a/vmh/cache.py b/videomaker_helper/cache.py
similarity index 91%
rename from vmh/cache.py
rename to videomaker_helper/cache.py
index 619bcea..2a686d4 100644
--- a/vmh/cache.py
+++ b/videomaker_helper/cache.py
@@ -2,7 +2,7 @@ from rich.console import Console
 from tinydb import TinyDB
 from typer import Abort, Typer, confirm
 
-from vmh import settings
+from videomaker_helper import settings
 
 cache = Typer()
 console = Console()
diff --git a/vmh/cli.py b/videomaker_helper/cli.py
similarity index 96%
rename from vmh/cli.py
rename to videomaker_helper/cli.py
index 96e794c..2e0d7b2 100644
--- a/vmh/cli.py
+++ b/videomaker_helper/cli.py
@@ -6,10 +6,10 @@ from loguru import logger
 from rich.console import Console
 from typer import Argument, Context, Exit, Option, Typer
 
-from vmh import audio, cache, plot, video
-from vmh.equalize import process_audio
-from vmh.kdenlive import cut
-from vmh.settings import __version__
+from videomaker_helper import audio, cache, plot, video
+from videomaker_helper.equalize import process_audio
+from videomaker_helper.kdenlive import cut
+from videomaker_helper.settings import __version__
 
 warnings.filterwarnings('ignore')
 
diff --git a/vmh/equalize.py b/videomaker_helper/equalize.py
similarity index 100%
rename from vmh/equalize.py
rename to videomaker_helper/equalize.py
diff --git a/vmh/kdenlive.py b/videomaker_helper/kdenlive.py
similarity index 98%
rename from vmh/kdenlive.py
rename to videomaker_helper/kdenlive.py
index 85a41fc..aac4cf8 100644
--- a/vmh/kdenlive.py
+++ b/videomaker_helper/kdenlive.py
@@ -7,7 +7,7 @@ from xml.etree import ElementTree
 from loguru import logger
 from parsel.selector import Selector
 
-from vmh.audio import detect_silences
+from videomaker_helper.audio import detect_silences
 
 xml_template = """ <entry producer="{}" in="00:00:{:.3f}" out="00:00:{:.3f}">
    <property name=:id">{}</property>
diff --git a/vmh/plot.py b/videomaker_helper/plot.py
similarity index 100%
rename from vmh/plot.py
rename to videomaker_helper/plot.py
diff --git a/vmh/settings.py b/videomaker_helper/settings.py
similarity index 100%
rename from vmh/settings.py
rename to videomaker_helper/settings.py
diff --git a/vmh/video.py b/videomaker_helper/video.py
similarity index 97%
rename from vmh/video.py
rename to videomaker_helper/video.py
index 4827cb9..d66dceb 100644
--- a/vmh/video.py
+++ b/videomaker_helper/video.py
@@ -5,7 +5,7 @@ from typing import Literal
 from loguru import logger
 from moviepy import AudioFileClip, VideoFileClip, concatenate_videoclips
 
-from vmh.audio import detect_silences
+from videomaker_helper.audio import detect_silences
 
 
 class Preset(str, Enum):


Test patch:
diff --git a/tests/test_audio.py b/tests/test_audio.py
index 1be4cdc..b9a60ef 100644
--- a/tests/test_audio.py
+++ b/tests/test_audio.py
@@ -4,7 +4,7 @@ from typing import cast
 
 from pydub import AudioSegment
 
-from vmh.audio import (
+from videomaker_helper.audio import (
     _audio_chain,
     cut_silences,
     detect_silences,
diff --git a/tests/test_cli.py b/tests/test_cli.py
index af0839c..fefb752 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -1,7 +1,7 @@
 from typer.testing import CliRunner
 
-from vmh.cli import app
-from vmh.settings import __version__
+from videomaker_helper.cli import app
+from videomaker_helper.settings import __version__
 
 cli = CliRunner()
 
diff --git a/tests/test_equalize.py b/tests/test_equalize.py
index de1c08b..1819c6f 100644
--- a/tests/test_equalize.py
+++ b/tests/test_equalize.py
@@ -1,7 +1,7 @@
 from pedalboard import Gain, Pedalboard
 from pydub import AudioSegment
 
-from vmh.equalize import process_audio
+from videomaker_helper.equalize import process_audio
 
 
 def test_process_audio_dummy_pedalboard(tmpdir):