diff --git a/.gitignore b/.gitignore index 39165c2..4c6c903 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/Deprecated-1.2.14.tar.gz +SOURCES/deprecated-1.2.15.tar.gz diff --git a/.python-deprecated.metadata b/.python-deprecated.metadata index 6f31357..8e17d9e 100644 --- a/.python-deprecated.metadata +++ b/.python-deprecated.metadata @@ -1 +1 @@ -6ec76bfd797dfd27365e61dbeefc6b6c0fa5a21b SOURCES/Deprecated-1.2.14.tar.gz +d749cdd556a42cb7d16ed4401aeb4d10972e2925 SOURCES/deprecated-1.2.15.tar.gz diff --git a/SPECS/python-deprecated.spec b/SPECS/python-deprecated.spec index bb3a42b..763c630 100644 --- a/SPECS/python-deprecated.spec +++ b/SPECS/python-deprecated.spec @@ -1,47 +1,51 @@ -%global srcname Deprecated -%global pkgname deprecated - -Name: python-%{pkgname} -Version: 1.2.14 -Release: 7%{?dist} +Name: python-deprecated +Version: 1.2.15 +Release: 1%{?dist} Summary: Python decorator to deprecate old python classes, functions or methods License: MIT -URL: https://github.com/tantale/%{pkgname} -Source0: %{pypi_source} +URL: https://github.com/laurent-laporte-pro/deprecated +Source: %{pypi_source deprecated} BuildArch: noarch -%description +%global _description %{expand: Python @deprecated decorator to deprecate old python classes, -functions or methods. +functions or methods.} + +%description %{_description} -%package -n python3-%{pkgname} +%package -n python3-deprecated Summary: %{summary} BuildRequires: python3-devel -BuildRequires: python3-setuptools -%{?python_provide:%python_provide python3-%{pkgname}} +BuildRequires: python3-pytest -%description -n python3-%{pkgname} -Python @deprecated decorator to deprecate old python classes, -functions or methods. +%description -n python3-deprecated %{_description} %prep -%autosetup -n %{srcname}-%{version} -rm -rf %{pkgname}.egg-info +%autosetup -n deprecated-%{version} + +%generate_buildrequires +%pyproject_buildrequires %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files -l deprecated + +%check +%pytest -%files -n python3-%{pkgname} -%license LICENSE.rst +%files -n python3-deprecated -f %{pyproject_files} %doc README.md -%{python3_sitelib}/%{pkgname}/ -%{python3_sitelib}/%{srcname}-*.egg-info/ %changelog +* Sat Nov 23 2024 Carl George - 1.2.15-1 +- Update to version 1.2.15 +- Convert to pyproject macros +- Run test suite in %%check + * Fri Jul 19 2024 Fedora Release Engineering - 1.2.14-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild