Converted to pyproject macros

Updated spec file to use pyproject macros
This commit is contained in:
Matthew Davis 2022-04-07 22:08:49 -04:00
commit 8a2315b0cf

View file

@ -17,10 +17,9 @@ Source1: https://raw.githubusercontent.com/kurtraschke/pyRFC3339/e30cc155
BuildArch: noarch
BuildRequires: %{py3_prefix}-devel
BuildRequires: %{py3_prefix}-setuptools
# --- unit tests ---
# Specified manually because upstream release tarballs do not contain unit tests
BuildRequires: %{py3_prefix}-pytest
BuildRequires: %{py3_prefix}-pytz
%description
This package contains a python library to parse and generate
@ -34,31 +33,32 @@ Summary: Generate and parse RFC 3339 timestamps
This package contains a Python 3 library to parse and generate
RFC 3339-compliant timestamps using Python datetime.datetime objects.
%generate_buildrequires
%pyproject_buildrequires
%prep
%autosetup -n %{srcname}-%{version}
%build
%py3_build
%pyproject_wheel
%install
%py3_install
%pyproject_install
%pyproject_save_files pyrfc3339
%check
cp -a %{SOURCE1} .
%pytest -v tests.py
%files -n %{py3_prefix}-pyrfc3339
%files -n %{py3_prefix}-pyrfc3339 -f %{pyproject_files}
%doc README.rst
%license LICENSE.txt
%{python3_sitelib}/pyrfc3339
%{python3_sitelib}/%{srcname}-%{version}-*.egg-info
%changelog
* Thu Apr 07 2022 Matthew Davis <fedoraproject@virtual.drop.net> - 1.1-11
- Converted tests from python-nose to pytest
- Removed Python 2 support
- Converted to pyproject macros
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild