From 391b4e1781ddbc49541fe04ce4c4e4ea86946d4cab96c2fd7272e5d1224481a6 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Sat, 18 Jan 2025 14:41:14 +0000 Subject: [PATCH 1/3] - update to version 3.0.3: - Bug Fixes: - :pr:`453`: The check in ``_comparator`` does not match the check in :meth:`Version.compare`. This breaks comparision with subclasses. - Improved Documentation: - :pr:`435`: Several small improvements for documentation: * Add meta description to improve SEO * Use canonicals on ReadTheDocs (commit 87f639f) * Pin versions for reproducable doc builds (commit 03fb990) * Add missing :file:`.readthedocs.yaml` file (commit ec9348a) * Correct some smaller issues when building (commit f65feab) - :pr:`436`: Move search box more at the top. This makes it easier for users as if the TOC is long, the search box isn't visible anymore. - Features: - :pr:`439`: Improve type hints to fix TODOs - Internal Changes: - :pr:`447`: Modernize project configs with :file:`pyproject.toml` and use Astral's uv command. * In :file:`pyproject.toml`: * Move all project related data from :file:`setup.cfg` to :file:`pyproject.toml` * Use new dependency group from :pep:`735` * Consolidate flake8, isort, pycodestyle with ruff * Split towncrier config type "trivial" into "trivial" and "internal" * Create config file for ruff (:file:`.ruff.toml`) * Create config file for pytest (:file:`.pytest.ini`) * Document installation with new :command:`uv` command - Trivial Changes: - :pr:`445`: Improve private :func:`_nat_cmp` method: * Remove obsolete else. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-semver?expand=0&rev=42 --- python-semver-3.0.2.tar.gz | 3 --- python-semver-3.0.3.tar.gz | 3 +++ python-semver.changes | 36 ++++++++++++++++++++++++++++++++++++ python-semver.spec | 10 ++++++---- 4 files changed, 45 insertions(+), 7 deletions(-) delete mode 100644 python-semver-3.0.2.tar.gz create mode 100644 python-semver-3.0.3.tar.gz diff --git a/python-semver-3.0.2.tar.gz b/python-semver-3.0.2.tar.gz deleted file mode 100644 index 48fd28b..0000000 --- a/python-semver-3.0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ec994dbcd4ac3af87e54631205ec5df3655f7fb4c256085aac781091b591fe69 -size 210387 diff --git a/python-semver-3.0.3.tar.gz b/python-semver-3.0.3.tar.gz new file mode 100644 index 0000000..eb2acdd --- /dev/null +++ b/python-semver-3.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9bcf622c80e2acabb8cf47c367adbea5ea782c882766ae56be0f5e6982176704 +size 266497 diff --git a/python-semver.changes b/python-semver.changes index 305168c..76f9fa8 100644 --- a/python-semver.changes +++ b/python-semver.changes @@ -1,3 +1,39 @@ +------------------------------------------------------------------- +Sat Jan 18 14:37:13 UTC 2025 - Sebastian Wagner + +- update to version 3.0.3: + - Bug Fixes: + - :pr:`453`: The check in ``_comparator`` does not match the check in :meth:`Version.compare`. + This breaks comparision with subclasses. + - Improved Documentation: + - :pr:`435`: Several small improvements for documentation: + * Add meta description to improve SEO + * Use canonicals on ReadTheDocs (commit 87f639f) + * Pin versions for reproducable doc builds (commit 03fb990) + * Add missing :file:`.readthedocs.yaml` file (commit ec9348a) + * Correct some smaller issues when building (commit f65feab) + - :pr:`436`: Move search box more at the top. This makes it easier for + users as if the TOC is long, the search box isn't visible + anymore. + - Features: + - :pr:`439`: Improve type hints to fix TODOs + - Internal Changes: + - :pr:`447`: Modernize project configs with :file:`pyproject.toml` and + use Astral's uv command. + * In :file:`pyproject.toml`: + * Move all project related data from :file:`setup.cfg` to :file:`pyproject.toml` + * Use new dependency group from :pep:`735` + * Consolidate flake8, isort, pycodestyle with ruff + * Split towncrier config type "trivial" into "trivial" and "internal" + * Create config file for ruff (:file:`.ruff.toml`) + * Create config file for pytest (:file:`.pytest.ini`) + * Document installation with new :command:`uv` command + - Trivial Changes: + - :pr:`445`: Improve private :func:`_nat_cmp` method: + * Remove obsolete else. + * Find a better way to identify digits without the :mod:`re` module. + * Fix docstring in :meth:`Version.compare` + ------------------------------------------------------------------- Fri Dec 8 16:18:10 UTC 2023 - Dirk Müller diff --git a/python-semver.spec b/python-semver.spec index eabd30e..6717b9d 100644 --- a/python-semver.spec +++ b/python-semver.spec @@ -1,7 +1,7 @@ # # spec file for package python-semver # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %bcond_without test %{?sle15_python_module_pythons} Name: python-semver -Version: 3.0.2 +Version: 3.0.3 Release: 0 Summary: Python helper for Semantic Versioning License: BSD-3-Clause @@ -28,13 +28,15 @@ URL: https://github.com/python-semver/python-semver Source: https://github.com/python-semver/python-semver/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module pip} -BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros +# SECTION tests +BuildRequires: %{python_module pytest-cov} +# /SECTIOn Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives # See https://github.com/k-bx/python-semver/issues/67 for why conflicts is needed Conflicts: python-node-semver BuildArch: noarch From de046b8e8eaeaef99068c5d51542f4a06fd05f9caa1c16b27e5379ebff366c64 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Sat, 18 Jan 2025 14:44:14 +0000 Subject: [PATCH 2/3] don't run coverage OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-semver?expand=0&rev=43 --- python-semver.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-semver.spec b/python-semver.spec index 6717b9d..4b12aca 100644 --- a/python-semver.spec +++ b/python-semver.spec @@ -33,7 +33,7 @@ BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros # SECTION tests -BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest} # /SECTIOn Requires(post): update-alternatives Requires(postun): update-alternatives @@ -48,7 +48,7 @@ See also http://semver.org/ %prep %setup -q -n python-semver-%{version} -sed -i '/-cov/d' setup.cfg +sed -i 's/--[^ ]*cov[^ ]*//g' .pytest.ini %build %pyproject_wheel From d2fd1f4d76af79063bd1f3ffb5b2be86af588394b0cd0c19268bd6044cb430fa Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Sat, 25 Jan 2025 08:45:24 +0000 Subject: [PATCH 3/3] - update to version 3.0.4: - Bug Fixes: - Fix 3.0.3: * Re-enable Trove license identifier * Fix source dist file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-semver?expand=0&rev=44 --- python-semver-3.0.3.tar.gz | 3 --- python-semver-3.0.4.tar.gz | 3 +++ python-semver.changes | 9 +++++++++ python-semver.spec | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) delete mode 100644 python-semver-3.0.3.tar.gz create mode 100644 python-semver-3.0.4.tar.gz diff --git a/python-semver-3.0.3.tar.gz b/python-semver-3.0.3.tar.gz deleted file mode 100644 index eb2acdd..0000000 --- a/python-semver-3.0.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9bcf622c80e2acabb8cf47c367adbea5ea782c882766ae56be0f5e6982176704 -size 266497 diff --git a/python-semver-3.0.4.tar.gz b/python-semver-3.0.4.tar.gz new file mode 100644 index 0000000..10ea3f3 --- /dev/null +++ b/python-semver-3.0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b17c40ad99eb8073f015aade7637a03c64804fcacf42cbcaf977d792ed0f8cce +size 266579 diff --git a/python-semver.changes b/python-semver.changes index 76f9fa8..91e96eb 100644 --- a/python-semver.changes +++ b/python-semver.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sat Jan 25 08:44:46 UTC 2025 - Sebastian Wagner + +- update to version 3.0.4: + - Bug Fixes: + - Fix 3.0.3: + * Re-enable Trove license identifier + * Fix source dist file + ------------------------------------------------------------------- Sat Jan 18 14:37:13 UTC 2025 - Sebastian Wagner diff --git a/python-semver.spec b/python-semver.spec index 4b12aca..b9a14db 100644 --- a/python-semver.spec +++ b/python-semver.spec @@ -19,7 +19,7 @@ %bcond_without test %{?sle15_python_module_pythons} Name: python-semver -Version: 3.0.3 +Version: 3.0.4 Release: 0 Summary: Python helper for Semantic Versioning License: BSD-3-Clause