From 796b822b6cfc89d7a1a19236019473f8dce878e0 Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Sun, 14 Aug 2022 14:41:54 +0200 Subject: [PATCH] Bugfix version --- manifest.json | 2 +- pyproject.toml | 2 +- tests/test_project_setup.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 2671982..5d1b7cd 100644 --- a/manifest.json +++ b/manifest.json @@ -5,7 +5,7 @@ "description": { "en": "Demo YunoHost Application to demonstrate the integration of a Django project under YunoHost via https://github.com/YunoHost-Apps/django_yunohost_integration" }, - "version": "v0.3.0~ynh1", + "version": "0.3.0~ynh1", "url": "https://github.com/YunoHost-Apps/django_example_ynh", "upstream": { "license": "GPL-3.0", diff --git a/pyproject.toml b/pyproject.toml index 0d4284b..c826f28 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "django_example_ynh" -version = "v0.3.0" +version = "0.3.0" description = "Demo YunoHost Application to demonstrate the integration of a Django project under YunoHost." authors = ["JensDiemer "] license = "GPL" diff --git a/tests/test_project_setup.py b/tests/test_project_setup.py index 5c10bcd..9d4e7a2 100644 --- a/tests/test_project_setup.py +++ b/tests/test_project_setup.py @@ -21,6 +21,8 @@ def test_version(): pyproject_toml_path = Path(PACKAGE_ROOT, 'pyproject.toml') pyproject_toml = tomli.loads(pyproject_toml_path.read_text(encoding='UTF-8')) version = pyproject_toml['tool']['poetry']['version'] + assert '~ynh' not in version + assert version[0].isdigit() assert_file_contains_string( file_path=Path(PACKAGE_ROOT, 'manifest.json'),