From 671fe8d86f64cc16b509e3724c473a42dc67d936 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Thu, 4 Jun 2026 14:44:19 -0400 Subject: [PATCH] [tooling] Fix releases once and for all --- PROJECT.org | 25 +++++++++++++++++++++++++ pyproject.toml | 2 ++ vrobbler/__init__.py | 3 ++- 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/PROJECT.org b/PROJECT.org index adf0a3f..36477df 100644 --- a/PROJECT.org +++ b/PROJECT.org @@ -515,6 +515,31 @@ payload, because that's how we parse tasks starting from the Todoist webhooks. But we don't really need anything tagged as `inprogress` Can we ignore this tag when applying tags to Task scrobbles coming from Todoist?` + + +** DONE [#A] Deploys are now throwing an unknown version error :bug:tooling:releases: +:PROPERTIES: +:ID: 3870f9d3-b5ed-4b87-9e8c-9bf905bfb766 +:END: + +*** Description + +Almost everything is working, but for some reason `__version__` does not seem to +exist. + +#+begin_src sh +out: Installing collected packages: vrobbler +out: Successfully installed vrobbler-42.0 +err: WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv +err: Traceback (most recent call last): +err: File "", line 1, in +err: AttributeError: module 'vrobbler' has no attribute '__version__' +2026/06/04 17:18:15 Process exited with status 1 +failed to remove container: Error response from daemon: removal of container c8ac64bee9b6bf5978d2c16f299e5ac271d8bbf7192b7a4023c3712bc2444f8b is already in progress + ❌ Failure - Main Install wheel and restart services +exit with `FAILURE`: 1 +#+end_src + * Version 42.0 [1/1] ** DONE [#B] Add ability to add track to current Mopidy queue :feature:mopidy:tracks: :PROPERTIES: diff --git a/pyproject.toml b/pyproject.toml index 32db26a..075a15a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -107,6 +107,8 @@ exclude_dirs = ["*/tests/*", "*/migrations/*"] [tool.poetry.scripts] vrobbler = "vrobbler.cli:main" +[tool.poetry_bumpversion.file."vrobbler/__init__.py"] + [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" diff --git a/vrobbler/__init__.py b/vrobbler/__init__.py index 5568b6d..75e4d84 100644 --- a/vrobbler/__init__.py +++ b/vrobbler/__init__.py @@ -2,4 +2,5 @@ # Django starts so that shared_task will use this app. from .celery import app as celery_app -__all__ = ("celery_app",) +__version__ = "42.0" +__all__ = ("celery_app", "__version__")