Blob Blame History Raw
%global github_name python-overpy
%global pretty_name overpy

%global _description %{expand:
overpy is a wrapper written in Python to access the Overpass API.}

Name:           python-%{pretty_name}
Version:        0.6
Release:        3%{?dist}
Summary:        Python Wrapper to access the Overpass API
License:        MIT
Source0:        %{url}/archive/%{version}/%{github_name}-%{version}.tar.gz

BuildArch:      noarch

%description %_description

%package -n python3-%{pretty_name}
Summary:        %{summary}

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

#for tests
BuildRequires:  python3-pytest
BuildRequires:  python3-pytest-runner
BuildRequires:  python3-pytest-cov
BuildRequires:  python3-hypothesis

#for docs
BuildRequires:  python3dist(sphinx)
BuildRequires:  python3dist(sphinx-rtd-theme)
BuildRequires:  python3dist(sphinx-autodoc-typehints)

%description -n python3-%{pretty_name} %_description

%package doc
Summary:        %{summary}

%description doc
Documentation for %{name}.

%autosetup -n %{github_name}-%{version}
rm -rf %{pretty_name}.egg-info


# Generate html docs
PYTHONPATH=${PWD} sphinx-build-3 docs/source html
# Remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}



%files -n python3-%{pretty_name}
%license LICENSE
%doc README.rst CHANGELOG.rst examples/

%files -n python-%{pretty_name}-doc
%license LICENSE
%doc html/

* Fri Jul 23 2021 Fedora Release Engineering <> - 0.6-3
- Rebuilt for

* Fri Jun 04 2021 Python Maint <> - 0.6-2
- Rebuilt for Python 3.10

* Sat May 8 2021 Iztok Fister Jr. <iztokf AT fedoraproject DOT org> - 0.6-1
- Initial package