From 96ebf989db0ebe454d49ed2d33be66ddfba1c2ff602790fe6983bd23d566dbaa Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 14 Mar 2024 11:09:18 +0000 Subject: [PATCH] - update to 3.0.0: * Migrated from setuptools to hatch * Support using the `onbuild` step with Hatch * **Breaking**: The `build_dir` argument passed to `Versioningit.do_onbuild()` * and `onbuild` method callables has been changed to an `OnbuildFileProvider` * ABC OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-versioningit?expand=0&rev=15 --- python-versioningit.changes | 12 ++++++++++++ python-versioningit.spec | 8 ++++---- versioningit-2.2.0.tar.gz | 3 --- versioningit-3.0.0.tar.gz | 3 +++ 4 files changed, 19 insertions(+), 7 deletions(-) delete mode 100644 versioningit-2.2.0.tar.gz create mode 100644 versioningit-3.0.0.tar.gz diff --git a/python-versioningit.changes b/python-versioningit.changes index ec46f89..f9bccfc 100644 --- a/python-versioningit.changes +++ b/python-versioningit.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Thu Mar 14 11:08:49 UTC 2024 - Dirk Müller + +- update to 3.0.0: + * Migrated from setuptools to hatch + * Support using the `onbuild` step with Hatch + * **Breaking**: The `build_dir` argument passed to + `Versioningit.do_onbuild()` + * and `onbuild` method callables has been changed to an + `OnbuildFileProvider` + * ABC + ------------------------------------------------------------------- Wed Mar 13 10:11:20 UTC 2024 - Dirk Müller diff --git a/python-versioningit.spec b/python-versioningit.spec index da3dc6f..54cdd7e 100644 --- a/python-versioningit.spec +++ b/python-versioningit.spec @@ -25,20 +25,20 @@ %endif Name: python-versioningit -Version: 2.2.0 +Version: 3.0.0 Release: 0 Summary: Versioning It with your Version In Git License: MIT URL: https://github.com/jwodder/versioningit Source: https://files.pythonhosted.org/packages/source/v/versioningit/versioningit-%{version}.tar.gz +BuildRequires: %{python_module hatchling} BuildRequires: %{python_module pip} -BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros BuildRequires: python3 >= 3.7 # SECTION test requirements BuildRequires: %{python_module packaging} BuildRequires: %{python_module build} -BuildRequires: %{python_module pydantic < 2} +BuildRequires: %{python_module pydantic} BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest-mock} BuildRequires: %{python_module pytest} @@ -82,7 +82,7 @@ separate functions used for version extraction & calculation. %python_clone -a %{buildroot}%{_bindir}/versioningit %check -%pytest test -k 'not test_editable_mode' +%pytest test -k 'not test_editable_mode or not test_end2end' %pre %python_libalternatives_reset_alternative versioningit diff --git a/versioningit-2.2.0.tar.gz b/versioningit-2.2.0.tar.gz deleted file mode 100644 index 072b643..0000000 --- a/versioningit-2.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:eb18e7ba7268a880bf1ccfe92e534e96ab34e0397f28dcbcb3fc0da4f6a5b6bd -size 742936 diff --git a/versioningit-3.0.0.tar.gz b/versioningit-3.0.0.tar.gz new file mode 100644 index 0000000..8b85033 --- /dev/null +++ b/versioningit-3.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4e3ce47a6424d850ae9e55e1b134a020e9fcbcb895338f107f2b5c51d34c9c1b +size 203693