%global pypi_name pyowm # needs api key for tests %global with_tests 0 Name: pyowm Version: 2.6.1 Release: 24%{?dist} Summary: A Python wrapper around the OpenWeatherMap web API License: MIT URL: https://github.com/csparpa/pyowm Source0: https://github.com/csparpa/pyowm/archive/%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools %if 0%{?with_tests} BuildRequires: python3-pytest %endif %description PyOWM is a client Python wrapper library for the OpenWeatherMap web API. It allows quick and easy consumption of OWM weather data from Python applications via a simple object model and in a human-friendly fashion. %package -n python3-%{pypi_name} Summary: A Python wrapper around the OpenWeatherMap web API %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3-requests Requires: python3-coverage %description -n python3-%{pypi_name} PyOWM is a client Python wrapper library for the OpenWeatherMap web API. It allows quick and easy consumption of OWM weather data from Python applications via a simple object model and in a human-friendly fashion. %prep %setup -q -n %{pypi_name}-%{version} %build %py3_build %install %py3_install # Strip out #!/usr/bin/env python sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/%{pypi_name}/*.py %check %if %{with_tests} %{__python3} setup.py test %endif %files -n python3-%{pypi_name} %doc README.md CONTRIBUTORS.md %license LICENSE %{python3_sitelib}/* %changelog * Fri Jan 26 2024 Fedora Release Engineering - 2.6.1-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 2.6.1-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 2.6.1-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 2.6.1-21 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 2.6.1-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 2.6.1-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 2.6.1-18 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 2.6.1-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 2.6.1-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2.6.1-15 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 2.6.1-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 2.6.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 2.6.1-12 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 2.6.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 2.6.1-10 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 2.6.1-9 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 2.6.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 2.6.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Jan 09 2019 Miro Hrončok - 2.6.1-6 - Remove Python 2 subpackage * Fri Jul 13 2018 Fedora Release Engineering - 2.6.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 2.6.1-4 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 2.6.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu May 11 2017 Paul Whalen pwhalen@redhat.com - 2.6.1-2 - Fix provides, requirements * Wed May 10 2017 Paul Whalen 2.6.1-1 - Initial packaging