Validate current version via "packaging" as set it to v0.17.0rc0

pull/120/head
JensDiemer 2022-09-30 19:31:10 +02:00
rodzic a66b526fae
commit eff09fee6b
6 zmienionych plików z 11 dodań i 7 usunięć

Wyświetl plik

@ -1,3 +1,3 @@
export PROJECT_NAME=pyinventory
export PROJECT_PACKAGE_NAME=pyinventory
export PROJECT_VERSION=0.16.0
export PROJECT_VERSION=0.17.0rc0

2
poetry.lock wygenerowano
Wyświetl plik

@ -1669,7 +1669,7 @@ psycopg2-source = ["psycopg2"]
[metadata]
lock-version = "1.1"
python-versions = ">=3.7,<4.0.0"
content-hash = "28d76dfa0e52c7c964d97e434d478f24e647789f9e8ba44a2467a6f2244cf405"
content-hash = "6d8921c023a698c5daf4e99e986c8c6e0023953a80be0f4c68416bc3aba3e7d7"
[metadata.files]
asgiref = [

Wyświetl plik

@ -1,6 +1,6 @@
[tool.poetry]
name = "PyInventory"
version = "0.16.0"
version = "0.17.0rc0"
description = "Web based management to catalog things including state and location etc. using Python/Django."
authors = ["JensDiemer <git@jensdiemer.de>"]
homepage = "https://github.com/jedie/PyInventory"
@ -98,6 +98,7 @@ lxml = "*"
requests-mock = "*"
EditorConfig = "*" # https://github.com/editorconfig/editorconfig-core-py
tomli = "*" # https://github.com/hukkin/tomli
packaging = "*" # https://github.com/pypa/packaging
[tool.poetry.scripts]

Wyświetl plik

@ -4,4 +4,4 @@
:license: GNU GPL v3 or above, see LICENSE for more details.
"""
__version__ = "0.16.0"
__version__ = "0.17.0rc0"

Wyświetl plik

@ -2,7 +2,7 @@
<html dir="ltr" lang="en">
<head>
<title>
Change Item | PyInventory v0.16.0
Change Item | PyInventory v0.17.0rc0
</title>
<link href="/static/admin/css/base.css" rel="stylesheet" type="text/css"/>
<link href="/static/admin/css/nav_sidebar.css" rel="stylesheet" type="text/css"/>
@ -84,7 +84,7 @@
<div id="branding">
<h1 id="site-name">
<a href="/admin/">
PyInventory v0.16.0
PyInventory v0.17.0rc0
</a>
</h1>
</div>

Wyświetl plik

@ -8,6 +8,7 @@ from django.core import checks
from django.core.cache import cache
from django.test import TestCase
from django_tools.unittest_utils.project_setup import check_editor_config
from packaging.version import Version
import inventory
@ -30,7 +31,9 @@ def test_version(package_root=None, version=None):
if version is None:
version = inventory.__version__
if 'dev' not in version and 'rc' not in version:
ver_obj = Version(inventory.__version__)
if not ver_obj.is_prerelease:
version_string = f'v{version}'
assert_file_contains_string(