diff --git a/.gitignore b/.gitignore index de16257..06c5ea7 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /semver-2.8.0.tar.gz /semver-2.8.1.tar.gz /semver-2.13.0.tar.gz +/semver-3.0.0.tar.gz diff --git a/python-semver.spec b/python-semver.spec index aeab6e1..721af74 100644 --- a/python-semver.spec +++ b/python-semver.spec @@ -1,58 +1,57 @@ %global modname semver Name: python-%{modname} -Version: 2.13.0 -Release: 9%{?dist} -Summary: Python helper for Semantic Versioning +Version: 3.0.0 +Release: 1%{?dist} +Summary: Python package to work with Semantic Versioning -License: BSD -URL: https://github.com/k-bx/python-semver -Source0: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz +License: BSD-3-Clause +URL: https://github.com/python-semver/python-semver +Source0: %{pypi_source semver} BuildArch: noarch -%global _description \ -Python module for semantic versioning. Simplifies comparing versions. +BuildRequires: python3-devel +# test requirements +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(pytest-cov) + +%global _description %{expand: +A Python module for semantic versioning. Simplifies comparing versions.} %description %{_description} -%package -n python3-%{modname} +%package -n python3-%{modname} Summary: %{summary} -%{?python_provide:%python_provide python3-%{modname}} -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-pytest -%description -n python3-%{modname} %{_description} - -Python 3 version. +%description -n python3-%{modname} +%{_description} %prep -%autosetup -# Remove settings for coverage from setup.cfg -sed -i '/-cov[=-]/d' setup.cfg -# Fix tests for Python 3.10 -# Proposed upstream: https://github.com/python-semver/python-semver/pull/336 -sed -i 's/TypeError: __init__() got an unexpected/TypeError: ...__init__() got an unexpected/' docs/usage.rst +%autosetup -n %{modname}-%{version} + +%generate_buildrequires +%pyproject_buildrequires %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files 'semver' %check -py.test-%{python3_version} -v +%pytest -%files -n python3-%{modname} +%files -n python3-%{modname} -f %{pyproject_files} %license LICENSE.txt %doc README.rst CHANGELOG.rst -%{_bindir}/py%{modname} -%{python3_sitelib}/%{modname}-*.egg-info/ -%{python3_sitelib}/%{modname}.py -%{python3_sitelib}/__pycache__/%{modname}.* +%{_bindir}/pysemver %changelog +* Thu Apr 06 2023 Felix Wang - 3.0.0-1 +- Update to 3.0.0 + * Fri Jan 20 2023 Fedora Release Engineering - 2.13.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild diff --git a/sources b/sources index 845bb2e..593a6c2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (semver-2.13.0.tar.gz) = ca0d408d8bb7305e90802ea04d935cd7b76b8f166a9ec97ed3427dbc2cf60eeca0b2d27ad0cb2f15f32f5b2589d6717a63717c463183374c5335bf79e1eec222 +SHA512 (semver-3.0.0.tar.gz) = b8b4299172f5a4325a309c686e5fee7339083fe2cba3852b69ff5ca355646d092d30ec1a3fe107ecb2f86c8845d4189d3d2c6f668c9df86ede69e995dcec93bb