## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-geopy Version: 2.4.1 Release: %autorelease Summary: Geocoding library for Python # SPDX License: MIT URL: https://geopy.readthedocs.io %global forgeurl https://github.com/geopy/geopy Source: %{forgeurl}/archive/%{version}/geopy-%{version}.tar.gz # Downstream-only: drop coverage from test extra # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters Patch: 0001-Downstream-only-drop-coverage-from-test-extra.patch # Downstream-only: allow newer Sphinx for testing # (We have no choice; we must use what we have!) # # Applies on top of the coverage patch. Patch: 0002-Downstream-only-allow-newer-Sphinx-for-testing.patch BuildArch: noarch BuildRequires: python3-devel %global common_description %{expand: geopy is a Python client for several popular geocoding web services. geopy makes it easy for Python developers to locate the coordinates of addresses, cities, countries, and landmarks across the globe using third-party geocoders and other data sources. geopy includes geocoder classes for the OpenStreetMap Nominatim, Google Geocoding API (V3), and many other geocoding services.} %description %{common_description} %package -n python3-geopy Summary: %{summary} %description -n python3-geopy %{common_description} %pyproject_extras_subpkg -n python3-geopy aiohttp,requests,timezone %prep %autosetup -n geopy-%{version} -p1 %generate_buildrequires %pyproject_buildrequires -x dev-test,aiohttp,requests,timezone %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l geopy %check # Exclude tests which make API calls (require network access) k="${k-}${k+ and }not test_geocoder_constructor_uses_https_proxy" k="${k-}${k+ and }not test_geocoder_https_proxy_auth_is_respected" k="${k-}${k+ and }not test_ssl_context_with_proxy_is_respected" k="${k-}${k+ and }not test_ssl_context_without_proxy_is_respected" %pytest -v test --ignore test/geocoders/ -k "${k-}" %files -n python3-geopy -f %{pyproject_files} %doc CONTRIBUTING.md README.rst %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 2.4.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 2.4.1-5 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 2.4.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.4.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jan 03 2024 Benjamin A. Beasley - 2.4.1-2 - Assert that the .dist-info directory contains a license file - Since AUTHORS is packaged as a license file in .dist-info too, don’t package a separate, duplicate copy of it * Thu Nov 23 2023 Packit - 2.4.1-1 - [packit] 2.4.1 upstream release - Resolves rhbz#2251288 * Sat Sep 09 2023 Ankur Sinha (Ankur Sinha Gmail) - 2.4.0-1 - feat: update to 2.4.0 (fixes rhbz#2235200) * Sat Sep 09 2023 Ankur Sinha (Ankur Sinha Gmail) - 2.3.0-4 - chore(packit): init * Fri Jul 21 2023 Fedora Release Engineering - 2.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jul 03 2023 Python Maint - 2.3.0-2 - Rebuilt for Python 3.12 * Sat Jul 01 2023 Benjamin A. Beasley - 2.3.0-1 - Update to 2.3.0 - Fixes Python 3.12 support, drops async_generator dependency * Sat Jul 01 2023 Benjamin A. Beasley - 2.1.0-13 - Confirm License is SPDX MIT * Sat Jul 01 2023 Benjamin A. Beasley - 2.1.0-12 - Port to pyproject-rpm-macros - Add metapackages for Python extras - Drop bogus BuildRequires on Cython and mock * Fri Jan 20 2023 Fedora Release Engineering - 2.1.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Jul 25 2022 Ankur Sinha - 2.1.0-8 - fix FTI * Fri Jul 22 2022 Fedora Release Engineering - 2.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 2.1.0-6 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 2.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 2.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2.1.0-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 2.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Jan 07 2021 Fabian Affolter - 2.1.0-1 - Update to latest upstream release 2.1.0 * Wed Jul 29 2020 Fedora Release Engineering - 1.21.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.21.0-2 - Rebuilt for Python 3.9 * Mon Mar 23 2020 Fabian Affolter - 1.21.0-1 - Update to latest upstream release 1.21.0 * Thu Jan 30 2020 Fedora Release Engineering - 1.20.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Oct 22 2019 Fabian Affolter - 1.20.0-2 - Address issues (rhbz#1723052) * Thu Jun 20 2019 Fabian Affolter - 1.20.0-1 - Initial package for Fedora ## END: Generated by rpmautospec