Blame SPECS/python-tempora.spec

1b912f
# Created by pyp2rpm-3.3.2
1b912f
%global pypi_name tempora
1b912f
%bcond_with docs
1b912f
1b912f
Name:           python-%{pypi_name}
1b912f
Version:        4.1.0
1b912f
Release:        3%{?dist}
1b912f
Summary:        Objects and routines pertaining to date and time (tempora)
1b912f
1b912f
License:        MIT
1b912f
URL:            https://github.com/jaraco/tempora
1b912f
Source0:        https://files.pythonhosted.org/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
1b912f
BuildArch:      noarch
1b912f
 
1b912f
%description
1b912f
Objects and routines pertaining to date and time (tempora).
1b912f
1b912f
%package -n python3-%{pypi_name}
1b912f
Summary:        %{summary}
1b912f
1b912f
BuildRequires:  python3-devel
1b912f
BuildRequires:  python3dist(freezegun)
1b912f
BuildRequires:  python3dist(jaraco.functools) >= 1.20
1b912f
BuildRequires:  python3dist(pytz)
1b912f
BuildRequires:  python3dist(setuptools)
1b912f
BuildRequires:  python3dist(setuptools-scm) >= 1.15
1b912f
BuildRequires:  python3dist(six)
1b912f
# testing Reqs
1b912f
BuildConflicts: python3dist(pytest) = 3.7.3
1b912f
BuildRequires:  python3dist(pytest) >= 3.4
1b912f
BuildRequires:  python3-more-itertools
1b912f
#BuildRequires:  python3dist(pytest-sugar) >= 0.9.1
1b912f
1b912f
%description -n python3-%{pypi_name}
1b912f
Objects and routines pertaining to date and time (tempora).
1b912f
1b912f
%if %{with docs}
1b912f
%package -n python-%{pypi_name}-doc
1b912f
Summary:        tempora documentation
1b912f
1b912f
BuildRequires:  python3dist(sphinx)
1b912f
BuildRequires:  python3dist(jaraco.packaging) >= 3.2
1b912f
BuildRequires:  python3dist(rst-linker) >= 1.9
1b912f
1b912f
%description -n python-%{pypi_name}-doc
1b912f
Documentation for tempora
1b912f
%endif
1b912f
1b912f
%prep
1b912f
%autosetup -n %{pypi_name}-%{version}
1b912f
# Remove bundled egg-info
1b912f
rm -rf %{pypi_name}.egg-info
1b912f
# disable flake8 in the tests, need a newer version of pytest-flake8
1b912f
# https://src.fedoraproject.org/rpms/python-pytest-flake8/pull-request/2
1b912f
# AttributeError: 'Application' object has no attribute 'make_notifier'
1b912f
sed -i 's/ --flake8//' pytest.ini
1b912f
# Remove test that requires pytest-freezer.
1b912f
# there's only one and the dep is not packaged in Fedora
1b912f
sed -i 272,280d tempora/__init__.py
1b912f
1b912f
%build
1b912f
%py3_build
1b912f
%if %{with docs}
1b912f
# generate html docs 
1b912f
PYTHONPATH=${PWD} sphinx-build-3 docs html
1b912f
# remove the sphinx-build leftovers
1b912f
rm -rf html/.{doctrees,buildinfo}
1b912f
%endif
1b912f
1b912f
%install
1b912f
%py3_install
1b912f
1b912f
%check
1b912f
# disabled for right now, need a newer version of pytest-flake8
1b912f
# https://src.fedoraproject.org/rpms/python-pytest-flake8/pull-request/2
1b912f
# AttributeError: 'Application' object has no attribute 'make_notifier'
1b912f
LANG=C.utf-8 %{__python3} -m pytest --ignore=build
1b912f
1b912f
%files -n python3-%{pypi_name}
1b912f
%license LICENSE
1b912f
%doc README.rst
1b912f
%{_bindir}/calc-prorate
1b912f
%{python3_sitelib}/%{pypi_name}
1b912f
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
1b912f
1b912f
%if %{with docs}
1b912f
%files -n python-%{pypi_name}-doc
1b912f
%doc html
1b912f
%license LICENSE
1b912f
%endif
1b912f
1b912f
%changelog
1b912f
* Mon Oct 25 2021 Kaleb S. KEITHLEY <kkeithle [at] redhat.com> - 4.1.0-3
1b912f
- rebuild from lookaside
1b912f
1b912f
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-2
1b912f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
1b912f
1b912f
* Mon Jun 21 2021 Dan Radez <dradez@redhat.com> - 4.1.0-1
1b912f
- Upstream update to 4.1.0
1b912f
1b912f
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.14.1-10
1b912f
- Rebuilt for Python 3.10
1b912f
1b912f
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.1-9
1b912f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1b912f
1b912f
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.1-8
1b912f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1b912f
1b912f
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.1-7
1b912f
- Rebuilt for Python 3.9
1b912f
1b912f
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.1-6
1b912f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1b912f
1b912f
* Mon Sep 30 2019 Dan Radez <dradez@redhat.com> - 1.14.1-5
1b912f
- Rebuilding to fix deps
1b912f
1b912f
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.14.1-4
1b912f
- Rebuilt for Python 3.8
1b912f
1b912f
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.1-3
1b912f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
1b912f
1b912f
* Mon Apr 22 2019 Dan Radez <dradez@redhat.com> - 1.14.1-2
1b912f
- fix setup.py reqs so the RPM reqs get generated properly
1b912f
1b912f
* Tue Apr 02 2019 Dan Radez <dradez@redhat.com> - 1.14.1-1
1b912f
- Initial package.