From a3202f3a8363c2d1ab98db7e7ce70c4abeff52462f00c51226025bdf4dd4921a Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 27 Dec 2023 16:40:12 +0000 Subject: [PATCH] - update to 1.6.0: * catch up with new python ecosystem * switch to poetry and ruff OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-single-version?expand=0&rev=3 --- python-single-version.changes | 7 +++++++ python-single-version.spec | 23 ++++++++++++----------- single-version-1.5.1.tar.gz | 3 --- single_version-1.6.0.tar.gz | 3 +++ 4 files changed, 22 insertions(+), 14 deletions(-) delete mode 100644 single-version-1.5.1.tar.gz create mode 100644 single_version-1.6.0.tar.gz diff --git a/python-single-version.changes b/python-single-version.changes index 83f5548..e95f62e 100644 --- a/python-single-version.changes +++ b/python-single-version.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Dec 27 16:39:28 UTC 2023 - Dirk Müller + +- update to 1.6.0: + * catch up with new python ecosystem + * switch to poetry and ruff + ------------------------------------------------------------------- Tue Feb 16 17:07:48 UTC 2021 - Luigi Baldoni diff --git a/python-single-version.spec b/python-single-version.spec index 7979689..42c0d4a 100644 --- a/python-single-version.spec +++ b/python-single-version.spec @@ -1,7 +1,7 @@ # # spec file for package python-single-version # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,19 +16,20 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 +%{?sle15_python_module_pythons} Name: python-single-version -Version: 1.5.1 +Version: 1.6.0 Release: 0 Summary: Have a single source of version in your code base License: MIT URL: https://github.com/hongquan/single-version -Source0: https://pypi.io/packages/source/s/single-version/single-version-%{version}.tar.gz -BuildRequires: %{python_module setuptools} +Source0: https://pypi.io/packages/source/s/single-version/single_version-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros -Requires: python-importlib-metadata Requires: python-first >= 2.0 +Requires: python-importlib-metadata BuildArch: noarch %python_subpackages @@ -36,18 +37,18 @@ BuildArch: noarch Utility to let you have a single source of version in your code base. %prep -%autosetup -n single-version-%{version} +%autosetup -n single_version-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %files %{python_files} %doc README.rst %license LICENSE %{python_sitelib}/single_version -%{python_sitelib}/single_version-%{version}-py%{python_version}.egg-info +%{python_sitelib}/single_version-%{version}.dist-info %changelog diff --git a/single-version-1.5.1.tar.gz b/single-version-1.5.1.tar.gz deleted file mode 100644 index db38770..0000000 --- a/single-version-1.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d0dee097581a4a9cdf1576075219369abedb67583449c6a0ae2c3f8100b9e903 -size 4067 diff --git a/single_version-1.6.0.tar.gz b/single_version-1.6.0.tar.gz new file mode 100644 index 0000000..bbbc5fb --- /dev/null +++ b/single_version-1.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3b1fb6e9bd2c88268948d9191c78b63ddd3c07554c1f07cd8a85aedf2486e4fc +size 3595