23bdd60
%global pypi_name graphql-core
23bdd60
23bdd60
Name:           python-%{pypi_name}
23bdd60
Version:        3.1.1
a9cb511
Release:        2%{?dist}
23bdd60
Summary:        GraphQL implementation for Python
23bdd60
23bdd60
License:        MIT
23bdd60
URL:            https://github.com/graphql-python/graphql-core
23bdd60
Source0:        %{pypi_source}
23bdd60
BuildArch:      noarch
23bdd60
23bdd60
%description
23bdd60
GraphQL-core-3 is a Python port of GraphQL.js, the JavaScript reference
23bdd60
implementation for GraphQL, a query language for APIs.
23bdd60
23bdd60
%package -n     python3-%{pypi_name}
23bdd60
Summary:        %{summary}
23bdd60
23bdd60
BuildRequires:  python3-devel
23bdd60
BuildRequires:  python3-setuptools
23bdd60
BuildRequires:  python3-pytest
23bdd60
BuildRequires:  python3-pytest-benchmark
23bdd60
%{?python_provide:%python_provide python3-%{pypi_name}}
23bdd60
23bdd60
%description -n python3-%{pypi_name}
23bdd60
GraphQL-core-3 is a Python port of GraphQL.js, the JavaScript reference
23bdd60
implementation for GraphQL, a query language for APIs.
23bdd60
23bdd60
%package -n python-%{pypi_name}-doc
23bdd60
Summary:       Documentation for %{name}
23bdd60
23bdd60
BuildRequires:  python3-sphinx
23bdd60
BuildRequires:  python3-sphinx_rtd_theme
23bdd60
23bdd60
%description -n python-%{pypi_name}-doc
23bdd60
Documentation for graphql-core.
23bdd60
23bdd60
%prep
23bdd60
%autosetup -n %{pypi_name}-%{version}
23bdd60
rm -rf %{pypi_name}.egg-info
23bdd60
23bdd60
%build
23bdd60
%py3_build
23bdd60
23bdd60
%install
23bdd60
%py3_install
23bdd60
PYTHONPATH=%{buildroot}%{python3_sitelib} sphinx-build-3 docs html
23bdd60
rm -rf html/.{doctrees,buildinfo}
23bdd60
23bdd60
%check
23bdd60
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests
23bdd60
23bdd60
%files -n python3-%{pypi_name}
23bdd60
%license LICENSE
23bdd60
%doc README.md
23bdd60
%{python3_sitelib}/graphql/
23bdd60
%{python3_sitelib}/graphql_core-%{version}-py%{python3_version}.egg-info
23bdd60
23bdd60
%files -n python-%{pypi_name}-doc
23bdd60
%doc html
23bdd60
%license LICENSE
23bdd60
23bdd60
%changelog
a9cb511
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-2
a9cb511
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a9cb511
23bdd60
* Sat Jun 06 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.1.1-1
23bdd60
- Generate docs in install (rhbz#1836567)
23bdd60
- Update BR name
23bdd60
- Update to latest upstream release 3.1.1
23bdd60
23bdd60
* Thu May 14 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.1.0-1
23bdd60
- Initial package for Fedora