eb2d706
%global github_name python-overpy
eb2d706
%global pretty_name overpy
eb2d706
eb2d706
%global _description %{expand:
eb2d706
overpy is a wrapper written in Python to access the Overpass API.}
eb2d706
eb2d706
Name:           python-%{pretty_name}
eb2d706
Version:        0.6
fe7db92
Release:        9%{?dist}
eb2d706
Summary:        Python Wrapper to access the Overpass API
eb2d706
License:        MIT
eb2d706
URL:            https://github.com/DinoTools/python-overpy
eb2d706
Source0:        %{url}/archive/%{version}/%{github_name}-%{version}.tar.gz
eb2d706
eb2d706
BuildArch:      noarch
eb2d706
eb2d706
%description %_description
eb2d706
eb2d706
%package -n python3-%{pretty_name}
eb2d706
Summary:        %{summary}
eb2d706
eb2d706
BuildRequires:  python3-devel
eb2d706
BuildRequires:  python3-setuptools
eb2d706
eb2d706
#for tests
eb2d706
BuildRequires:  python3-pytest
eb2d706
BuildRequires:  python3-pytest-runner
eb2d706
BuildRequires:  python3-pytest-cov
eb2d706
BuildRequires:  python3-hypothesis
eb2d706
eb2d706
#for docs
eb2d706
BuildRequires:  python3dist(sphinx)
eb2d706
BuildRequires:  python3dist(sphinx-rtd-theme)
eb2d706
BuildRequires:  python3dist(sphinx-autodoc-typehints)
eb2d706
eb2d706
%description -n python3-%{pretty_name} %_description
eb2d706
eb2d706
%package doc
eb2d706
Summary:        %{summary}
eb2d706
eb2d706
%description doc
eb2d706
Documentation for %{name}.
eb2d706
eb2d706
%prep
eb2d706
%autosetup -n %{github_name}-%{version}
eb2d706
rm -rf %{pretty_name}.egg-info
eb2d706
eb2d706
%build
eb2d706
%py3_build
eb2d706
eb2d706
# Generate html docs
eb2d706
PYTHONPATH=${PWD} sphinx-build-3 docs/source html
eb2d706
# Remove the sphinx-build leftovers
eb2d706
rm -rf html/.{doctrees,buildinfo}
eb2d706
eb2d706
%install
eb2d706
%py3_install
eb2d706
eb2d706
%check
eb2d706
%pytest
eb2d706
eb2d706
%files -n python3-%{pretty_name}
eb2d706
%license LICENSE
eb2d706
%doc README.rst CHANGELOG.rst examples/
eb2d706
%{python3_sitelib}/%{pretty_name}-%{version}-py%{python3_version}.egg-info
eb2d706
%{python3_sitelib}/%{pretty_name}
eb2d706
eb2d706
%files -n python-%{pretty_name}-doc
eb2d706
%license LICENSE
eb2d706
%doc html/
eb2d706
eb2d706
%changelog
fe7db92
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-9
fe7db92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
fe7db92
65e9d34
* Thu Jun 29 2023 Python Maint <python-maint@redhat.com> - 0.6-8
65e9d34
- Rebuilt for Python 3.12
65e9d34
7a328ec
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-7
7a328ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
7a328ec
8e0938a
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-6
8e0938a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
8e0938a
c0d482a
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.6-5
c0d482a
- Rebuilt for Python 3.11
c0d482a
2e4a080
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-4
2e4a080
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2e4a080
22760f0
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-3
22760f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
22760f0
f0e39ab
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.6-2
f0e39ab
- Rebuilt for Python 3.10
f0e39ab
eb2d706
* Sat May 8 2021 Iztok Fister Jr. <iztokf AT fedoraproject DOT org> - 0.6-1
eb2d706
- Initial package