From b9f6501859e00be0cece616573f0ebd2d70669ee Mon Sep 17 00:00:00 2001 From: Dan Radez Date: Feb 12 2022 03:24:22 +0000 Subject: Upstream update to 5.0.1 This release removed the setup.py from the src tree. This commit swaps building to use python -m build and installation to use %py3_install_wheel. dist_info is now included in this pachage. The tempora/tests directory is also now excluded from packaging. --- diff --git a/python-tempora.spec b/python-tempora.spec index 2b0d74c..c6e219d 100644 --- a/python-tempora.spec +++ b/python-tempora.spec @@ -3,8 +3,8 @@ %bcond_with docs Name: python-%{pypi_name} -Version: 5.0.0 -Release: 3%{?dist} +Version: 5.0.1 +Release: 1%{?dist} Summary: Objects and routines pertaining to date and time (tempora) License: MIT @@ -19,17 +19,21 @@ Objects and routines pertaining to date and time (tempora). Summary: %{summary} BuildRequires: python3-devel +BuildRequires: python3dist(build) BuildRequires: python3dist(freezegun) BuildRequires: python3dist(jaraco-functools) >= 1.20 +BuildRequires: python3dist(pip) BuildRequires: python3dist(pytz) BuildRequires: python3dist(setuptools) BuildRequires: python3dist(setuptools-scm) >= 1.15 BuildRequires: python3dist(six) +BuildRequires: python3dist(tox) +BuildRequires: python3dist(tox-current-env) +BuildRequires: python3dist(wheel) # testing Reqs BuildConflicts: python3dist(pytest) = 3.7.3 BuildRequires: python3dist(pytest) >= 3.4 BuildRequires: python3-more-itertools -#BuildRequires: python3dist(pytest-sugar) >= 0.9.1 %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} @@ -50,14 +54,12 @@ Documentation for tempora %prep %autosetup -n %{pypi_name}-%{version} -# Remove bundled egg-info -rm -rf %{pypi_name}.egg-info # Remove test that requires pytest-freezer. # there's only one and the dep is not packaged in Fedora sed -i 206,214d tempora/__init__.py %build -%py3_build +LANG=C.utf-8 %{__python3} -m build --no-isolation %if %{with docs} # generate html docs PYTHONPATH=${PWD} sphinx-build-3 docs html @@ -66,17 +68,18 @@ rm -rf html/.{doctrees,buildinfo} %endif %install -%py3_install +%py3_install_wheel %{pypi_name}-%{version}-py3-none-any.whl %check LANG=C.utf-8 %{__python3} -m pytest --ignore=build + %files -n python3-%{pypi_name} %license LICENSE %doc README.rst %{_bindir}/calc-prorate -%{python3_sitelib}/%{pypi_name} -%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info +%{python3_sitelib}/%{pypi_name}* +%exclude %{python3_sitelib}/tempora/tests %if %{with docs} %files -n python-%{pypi_name}-doc @@ -85,7 +88,10 @@ LANG=C.utf-8 %{__python3} -m pytest --ignore=build %endif %changelog -* Tue Feb 10 2022 Dan Radez - 5.0.0-3 +* Mon Feb 14 2022 Dan Radez - 5.0.1-1 +- Upstream update to 5.0.1 + +* Thu Feb 10 2022 Dan Radez - 5.0.0-3 - adding provides * Fri Jan 21 2022 Fedora Release Engineering - 5.0.0-2