From 0fdf1d586e0af5fc1af3f9e8d5abaf12388ab4d8d27cb85a8689f6049b2fa693 Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Mon, 20 Mar 2023 09:49:27 +0000 Subject: [PATCH] Accepting request 1073081 from home:pgajdos:python - version update to 0.4 Added Type hints. Removed Support for Python 2.7, 3.5, and 3.6. __version__, __author__, and __email__ attributes from parver module. Use :mod:`importlib.metadata` instead. OBS-URL: https://build.opensuse.org/request/show/1073081 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parver?expand=0&rev=9 --- parver-0.3.1.tar.gz | 3 --- parver-0.4.tar.gz | 3 +++ python-parver.changes | 11 +++++++++++ python-parver.spec | 23 +++++++++++------------ 4 files changed, 25 insertions(+), 15 deletions(-) delete mode 100644 parver-0.3.1.tar.gz create mode 100644 parver-0.4.tar.gz diff --git a/parver-0.3.1.tar.gz b/parver-0.3.1.tar.gz deleted file mode 100644 index 4ba9a43..0000000 --- a/parver-0.3.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c902e0653bcce927cc156a7fd9b3a51924cbce3bf3d0bfd49fc282bfd0c5dfd3 -size 30287 diff --git a/parver-0.4.tar.gz b/parver-0.4.tar.gz new file mode 100644 index 0000000..679fba4 --- /dev/null +++ b/parver-0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d4a3dbb93c53373ee9a0ba055e4858c44169b204b912e49d003ead95db9a9bca +size 25526 diff --git a/python-parver.changes b/python-parver.changes index 3a400db..d253f9d 100644 --- a/python-parver.changes +++ b/python-parver.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Mon Mar 20 09:30:41 UTC 2023 - pgajdos@suse.com + +- version update to 0.4 + Added + Type hints. + Removed + Support for Python 2.7, 3.5, and 3.6. + __version__, __author__, and __email__ attributes from parver + module. Use :mod:`importlib.metadata` instead. + ------------------------------------------------------------------- Wed Dec 8 22:33:56 UTC 2021 - Ferdinand Thiessen diff --git a/python-parver.spec b/python-parver.spec index 80fd900..c12e361 100644 --- a/python-parver.spec +++ b/python-parver.spec @@ -1,7 +1,7 @@ # # spec file for package python-parver # -# 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,23 +16,22 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -# hypothesis, as a dependency of this, is not python2 compatible anymore -%define skip_python2 1 Name: python-parver -Version: 0.3.1 +Version: 0.4 Release: 0 Summary: Module to parse and manipulate version numbers License: MIT Group: Development/Languages/Python URL: https://github.com/RazerM/parver Source: https://files.pythonhosted.org/packages/source/p/parver/parver-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Arpeggio >= 1.7 Requires: python-attrs >= 19.2 -Requires: python-six >= 1.13 +Requires: python-typing_extensions BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module Arpeggio >= 1.7} @@ -40,7 +39,7 @@ BuildRequires: %{python_module attrs >= 19.2} BuildRequires: %{python_module hypothesis >= 3.56} BuildRequires: %{python_module pretend >= 1.0} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module six >= 1.13} +BuildRequires: %{python_module typing_extensions} # /SECTION %python_subpackages @@ -48,13 +47,13 @@ BuildRequires: %{python_module six >= 1.13} parver allows parsing and manipulation of `PEP 440`_ version numbers. %prep -%setup -q -n parver-%{version} +%autosetup -p1 -n parver-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -62,7 +61,7 @@ parver allows parsing and manipulation of `PEP 440`_ version numbers. %files %{python_files} %license LICENSE -%doc CHANGELOG.md README.rst -%{python_sitelib}/* +%doc README* +%{python_sitelib}/parver* %changelog