From e81783d8cc389d602a93cab32e0c97afe38b5468 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Sun, 16 Dec 2018 01:04:31 +0100 Subject: [PATCH] Subpackage python2-APScheduler has been removed --- python-APScheduler.spec | 63 +++++------------------------------------ 1 file changed, 7 insertions(+), 56 deletions(-) diff --git a/python-APScheduler.spec b/python-APScheduler.spec index 83d6cf3..ae4038e 100644 --- a/python-APScheduler.spec +++ b/python-APScheduler.spec @@ -1,11 +1,8 @@ %global pypi_name APScheduler -%if 0%{?fedora} -%global with_python3 1 -%endif Name: python-%{pypi_name} Version: 3.5.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: In-process task scheduler with Cron-like capabilities License: MIT @@ -13,20 +10,6 @@ URL: https://pypi.python.org/pypi/%{pypi_name} Source0: https://pypi.python.org/packages/source/A/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch -BuildRequires: python2-devel -BuildRequires: python2-funcsigs -BuildRequires: python2-futures -BuildRequires: python2-setuptools -BuildRequires: python2-setuptools_scm -BuildRequires: python2-six >= 1.4.0 -BuildRequires: python2-tzlocal -# Unit testing -BuildRequires: python2-mock -BuildRequires: python2-pytest -BuildRequires: python2-pytest-cov -BuildRequires: python2-tornado - -%if 0%{?with_python3} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-setuptools_scm @@ -39,28 +22,12 @@ BuildRequires: python3-pytest-cov BuildRequires: python3-pytest-asyncio BuildRequires: python3-pytest-tornado BuildRequires: python3-tornado -%endif %description Advanced Python Scheduler (APScheduler) is a Python library that lets you schedule your Python code to be executed later, either just once or periodically. -%package -n python2-%{pypi_name} -Summary: %{summary} -%{?python_provide:%python_provide python2-%{pypi_name}} - -Requires: python2-funcsigs -Requires: python2-futures -Requires: python2-six >= 1.4.0 -Requires: python2-tzlocal - -%description -n python2-%{pypi_name} -Advanced Python Scheduler (APScheduler) is a Python library that lets you -schedule your Python code to be executed later, either just once or -periodically. - -%if 0%{?with_python3} %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} @@ -72,11 +39,10 @@ Requires: python3-tzlocal Advanced Python Scheduler (APScheduler) is a Python library that lets you schedule your Python code to be executed later, either just once or periodically. -%endif %package doc Summary: Documentation of the Advanced Python Scheduler library -BuildRequires: python2-sphinx +BuildRequires: python3-sphinx %description doc Documentation of the Advanced Python Scheduler library. @@ -86,51 +52,36 @@ Documentation of the Advanced Python Scheduler library. rm -rf %{pypi_name}.egg-info %build -%py2_build -%if 0%{?with_python3} %py3_build -%endif ## generate html docs -%{__python2} setup.py build_sphinx +%{__python3} setup.py build_sphinx rm -rf docs/_build/html/.{doctrees,buildinfo} docs/_build/html/objects.inv %install -%py2_install -# Remove python3 only files as they mess up with byte-compilation -rm %{buildroot}%{python2_sitelib}/apscheduler/executors/base_py3.py -%if 0%{?with_python3} %py3_install -%endif %check # Default timezone to UTC otherwise unit tests fail. export TZ=UTC -%{__python2} -m pytest -%if 0%{?with_python3} # FIXME(hguemar): two test cases fail, one of them being a false positive # Needs more investigation for the other %{__python3} -m pytest ||: -%endif -%files -n python2-%{pypi_name} -%license LICENSE.txt -%doc README.rst -%{python2_sitelib}/%{pypi_name}-%{version}-py%{python2_version}.egg-info/ -%{python2_sitelib}/apscheduler/ - -%if 0%{?with_python3} %files -n python3-%{pypi_name} %license LICENSE.txt %doc README.rst %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ %{python3_sitelib}/apscheduler/ -%endif %files doc %doc docs/_build/html %changelog +* Sun Dec 16 2018 Miro Hrončok - 3.5.3-2 +- Subpackage python2-APScheduler has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Mon Aug 20 2018 Haïkel Guémar - 3.5.3-1 - Upstream 3.5.3 (RHBZ#1605579)