From bdc69d237899bf23a36e4b9bd03d3473817c89da Mon Sep 17 00:00:00 2001 From: rdobuilder Date: Mar 07 2023 18:20:55 +0000 Subject: Uncap tzlocal requirement APScheduler is retired in fedora [1], so we can't update it to version which works on newer tzlocal. Following, we can uncap tzlocal. [1] https://src.fedoraproject.org/rpms/python-APScheduler [2] https://github.com/agronholm/apscheduler/issues/554 https: //src.fedoraproject.org/rpms/python-APScheduler Related-to: https://review.rdoproject.org/r/q/I1d0188253d2eab53fa8615ac6b04cde795984b0c --- diff --git a/.python-APScheduler.metadata b/.python-APScheduler.metadata new file mode 100644 index 0000000..78c3c4d --- /dev/null +++ b/.python-APScheduler.metadata @@ -0,0 +1 @@ +502f49806f799cd527e6457b04be09de43a79c42 SOURCES/APScheduler-3.8.0.tar.gz diff --git a/SOURCES/.gitignore b/SOURCES/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/SOURCES/.gitignore diff --git a/SPECS/python-APScheduler.spec b/SPECS/python-APScheduler.spec new file mode 100644 index 0000000..c63736b --- /dev/null +++ b/SPECS/python-APScheduler.spec @@ -0,0 +1,144 @@ +%global srcname APScheduler +%global _description %{expand: +Advanced Python Scheduler (APScheduler) is a Python library that lets you +schedule your Python code to be executed later, either just once or +periodically. You can add new jobs or remove old ones on the fly as you +please. If you store your jobs in a database, they will also survive +scheduler restarts and maintain their state. When the scheduler is +restarted, it will then run all the jobs it should have run while it was +offline.} + +Name: python-APScheduler +Version: 3.8.0 +Release: 2%{?dist} +Summary: In-process task scheduler with Cron-like capabilities + +License: MIT +URL: https://github.com/agronholm/apscheduler +Source0: %pypi_source + +BuildArch: noarch + +%description %_description + +%package -n python3-%{srcname} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-pytest +BuildRequires: python3-pytest-asyncio +BuildRequires: python3-pytest-tornado +BuildRequires: python3-pytest-cov +BuildRequires: python3-tornado +BuildRequires: python3-twisted +BuildRequires: python3-redis +BuildRequires: python3-kazoo +BuildRequires: python3-gevent +BuildRequires: python3-sqlalchemy +BuildRequires: python3-pymongo +BuildRequires: python3-pytz +BuildRequires: python3-tzlocal +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} %_description + +%prep +%autosetup -n %{srcname}-%{version} -p1 +# Remove that test as it require services (redis, zookeeper, ...) +# up and running. Upstream provides a docker compose to spawn +# services before running these tests. +rm tests/test_jobstores.py +sed -i 's/tzlocal \~\= 2\.0/tzlocal/g' setup.py + +%build +%py3_build + +%install +%py3_install + +%check +# Default timezone to UTC otherwise unit tests fail. +export TZ=UTC +%{python3} -m pytest -s tests + +%files -n python3-%{srcname} +%license LICENSE.txt +%doc README.rst +%{python3_sitelib}/%{srcname}-*.egg-info/ +%{python3_sitelib}/apscheduler/ + +%changelog +* Tue Mar 07 2023 Karolina Kula - 3.8.0-2 +- Uncap tzlocal version + +* Thu Sep 23 2021 Fedora Release Monitoring - 3.8.0-1 +- Update to 3.8.0 (#1917870) + +* Fri Jul 23 2021 Fedora Release Engineering - 3.7.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 3.7.0-3 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 3.7.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jan 20 2021 Fabien Boucher - 3.7.0-1 +- Upstream 3.7.0 (RHBZ#1917870) + +* Tue Jul 28 2020 Fedora Release Engineering - 3.6.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jul 20 2020 Fabien Boucher - 3.6.3-3 +- Update project url + +* Tue May 26 2020 Miro Hrončok - 3.6.3-2 +- Rebuilt for Python 3.9 + +* Wed Mar 11 2020 Fabien Boucher - 3.6.3-1 +- Inport from SF packaging and bump to 3.6.3 (#1813957) + +* Mon Aug 19 2019 Miro Hrončok - 3.5.3-4 +- Rebuilt for Python 3.8 + +* Sat Feb 02 2019 Fedora Release Engineering - 3.5.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* 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) + +* Fri Jul 13 2018 Fedora Release Engineering - 3.0.5-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 3.0.5-9 +- Rebuilt for Python 3.7 + +* Wed Feb 21 2018 Iryna Shcherbina - 3.0.5-8 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Fri Feb 09 2018 Fedora Release Engineering - 3.0.5-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 3.0.5-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 3.0.5-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 3.0.5-4 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 3.0.5-3 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 3.0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Sat Dec 19 2015 Paul Belanger - 3.0.5-1 +- Initial packaging (#1218410)