#2 Merge branch 'master' into epel8
Merged 4 years ago by radez. Opened 4 years ago by jcaratzas.
rpms/ jcaratzas/python-tempora epel8  into  epel8

file added
+2
@@ -0,0 +1,2 @@ 

+ /tempora-1.14.tar.gz

+ /tempora-1.14.1.tar.gz

file added
+103
@@ -0,0 +1,103 @@ 

+ # Created by pyp2rpm-3.3.2

+ %global pypi_name tempora

+ %bcond_with docs

+ 

+ Name:           python-%{pypi_name}

+ Version:        1.14.1

+ Release:        5%{?dist}

+ Summary:        Objects and routines pertaining to date and time (tempora)

+ 

+ License:        MIT

+ URL:            https://github.com/jaraco/tempora

+ Source0:        https://files.pythonhosted.org/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

+ BuildArch:      noarch

+  

+ %description

+ Objects and routines pertaining to date and time (tempora).

+ 

+ %package -n python3-%{pypi_name}

+ Summary:        %{summary}

+ 

+ BuildRequires:  python3-devel

+ BuildRequires:  python3dist(freezegun)

+ BuildRequires:  python3dist(jaraco.functools) >= 1.20

+ BuildRequires:  python3dist(pytz)

+ BuildRequires:  python3dist(setuptools)

+ BuildRequires:  python3dist(setuptools-scm) >= 1.15

+ BuildRequires:  python3dist(six)

+ # testing Reqs

+ BuildConflicts: python3dist(pytest) = 3.7.3

+ BuildRequires:  python3dist(pytest) >= 3.4

+ BuildRequires:  python3-more-itertools

+ #BuildRequires:  python3dist(pytest-sugar) >= 0.9.1

+ 

+ %description -n python3-%{pypi_name}

+ Objects and routines pertaining to date and time (tempora).

+ 

+ %if %{with docs}

+ %package -n python-%{pypi_name}-doc

+ Summary:        tempora documentation

+ 

+ BuildRequires:  python3dist(sphinx)

+ BuildRequires:  python3dist(jaraco.packaging) >= 3.2

+ BuildRequires:  python3dist(rst-linker) >= 1.9

+ 

+ %description -n python-%{pypi_name}-doc

+ Documentation for tempora

+ %endif

+ 

+ %prep

+ %autosetup -n %{pypi_name}-%{version}

+ # Remove bundled egg-info

+ rm -rf %{pypi_name}.egg-info

+ # disable flake8 in the tests, need a newer version of pytest-flake8

+ # https://src.fedoraproject.org/rpms/python-pytest-flake8/pull-request/2

+ # AttributeError: 'Application' object has no attribute 'make_notifier'

+ sed -i 's/ --flake8//' pytest.ini

+ 

+ %build

+ %py3_build

+ %if %{with docs}

+ # generate html docs 

+ PYTHONPATH=${PWD} sphinx-build-3 docs html

+ # remove the sphinx-build leftovers

+ rm -rf html/.{doctrees,buildinfo}

+ %endif

+ 

+ %install

+ %py3_install

+ 

+ %check

+ # disabled for right now, need a newer version of pytest-flake8

+ # https://src.fedoraproject.org/rpms/python-pytest-flake8/pull-request/2

+ # AttributeError: 'Application' object has no attribute 'make_notifier'

+ 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?.?.egg-info

+ 

+ %if %{with docs}

+ %files -n python-%{pypi_name}-doc

+ %doc html

+ %license LICENSE

+ %endif

+ 

+ %changelog

+ * Mon Sep 30 2019 Dan Radez <dradez@redhat.com> - 1.14.1-5

+ - Rebuilding to fix deps

+ 

+ * Mon Aug 19 2019 Miro HronĨok <mhroncok@redhat.com> - 1.14.1-4

+ - Rebuilt for Python 3.8

+ 

+ * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.1-3

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

+ 

+ * Mon Apr 22 2019 Dan Radez <dradez@redhat.com> - 1.14.1-2

+ - fix setup.py reqs so the RPM reqs get generated properly

+ 

+ * Tue Apr 02 2019 Dan Radez <dradez@redhat.com> - 1.14.1-1

+ - Initial package.

file added
+2
@@ -0,0 +1,2 @@ 

+ SHA512 (tempora-1.14.tar.gz) = dea359fcb5eebda2db6b0de2e615ef6681860e9b8ecdb6041316623b9072067f08cd19d72d9a9e1fc792da7c5760f5e2382bedcbe09467109557448bae1fd8cf

+ SHA512 (tempora-1.14.1.tar.gz) = 4ecd5430d4d90959b0985908a1e4f239a56ce0026cd315ef6b8c204b645caccb135db76bb2ca9cb95bc65bdf337b61e7c31514eb9c85036771469b6a058edfbb

The work in master builds correctly for EPEL8. I am also kindly requesting permission to this repo so that I can push directly to the EPEL8 branch in the future and help maintain this package.

The following build in Copr succeeded for EPEL8 with the merged changes: https://copr.fedorainfracloud.org/coprs/ktdreyer/ceph-el8/build/1112676/

Pull-Request has been merged by radez

4 years ago