Blame python-graphql-core.spec

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