|
 |
f974922 |
%global pypi_name py-gql
|
|
 |
f974922 |
|
|
 |
f974922 |
Name: python-%{pypi_name}
|
|
 |
f974922 |
Version: 0.6.1
|
|
 |
f974922 |
Release: 2%{?dist}
|
|
 |
f974922 |
Summary: Comprehensive GraphQL implementation for Python
|
|
 |
f974922 |
|
|
 |
f974922 |
License: MIT
|
|
 |
f974922 |
URL: https://github.com/lirsacc/py-gql
|
|
 |
f974922 |
Source0: %{url}/releases/download/v%{version}/py_gql-%{version}.tar.gz
|
|
 |
f974922 |
BuildArch: noarch
|
|
 |
f974922 |
|
|
 |
f974922 |
%description
|
|
 |
f974922 |
py-gql is a pure Python GraphQL implementation aimed at creating GraphQL
|
|
 |
f974922 |
servers and providing common tooling.
|
|
 |
f974922 |
|
|
 |
f974922 |
It supports:
|
|
 |
f974922 |
|
|
 |
f974922 |
- Parsing the GraphQL query language and schema definition language.
|
|
 |
f974922 |
- Building a GraphQL type schema programmatically and from Schema Definition
|
|
 |
f974922 |
files (including support for schema directives).
|
|
 |
f974922 |
- Validating and Executing a GraphQL request against a type schema.
|
|
 |
f974922 |
|
|
 |
f974922 |
%package -n python3-%{pypi_name}
|
|
 |
f974922 |
Summary: %{summary}
|
|
 |
f974922 |
|
|
 |
f974922 |
BuildRequires: python3-devel
|
|
 |
f974922 |
BuildRequires: python3-coverage
|
|
 |
f974922 |
BuildRequires: python3-pytest
|
|
 |
f974922 |
BuildRequires: python3-pytest-asyncio
|
|
 |
f974922 |
BuildRequires: python3-pytest-benchmark
|
|
 |
f974922 |
BuildRequires: python3-pytest-cov
|
|
 |
f974922 |
BuildRequires: python3-pytest-mock
|
|
 |
f974922 |
BuildRequires: python3-pytest-xdist
|
|
 |
f974922 |
BuildRequires: python3-setuptools
|
|
 |
f974922 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
 |
f974922 |
|
|
 |
f974922 |
%description -n python3-%{pypi_name}
|
|
 |
f974922 |
py-gql is a pure Python GraphQL implementation aimed at creating GraphQL
|
|
 |
f974922 |
servers and providing common tooling.
|
|
 |
f974922 |
|
|
 |
f974922 |
It supports:
|
|
 |
f974922 |
|
|
 |
f974922 |
- Parsing the GraphQL query language and schema definition language.
|
|
 |
f974922 |
- Building a GraphQL type schema programmatically and from Schema Definition
|
|
 |
f974922 |
files (including support for schema directives).
|
|
 |
f974922 |
- Validating and Executing a GraphQL request against a type schema.
|
|
 |
f974922 |
|
|
 |
f974922 |
%prep
|
|
 |
f974922 |
%autosetup -n py_gql-%{version}
|
|
 |
f974922 |
rm -rf %{pypi_name}.egg-info
|
|
 |
f974922 |
|
|
 |
f974922 |
%build
|
|
 |
f974922 |
%py3_build
|
|
 |
f974922 |
|
|
 |
f974922 |
%install
|
|
 |
f974922 |
%py3_install
|
|
 |
f974922 |
|
|
 |
f974922 |
%check
|
|
 |
f974922 |
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests
|
|
 |
f974922 |
|
|
 |
f974922 |
%files -n python3-%{pypi_name}
|
|
 |
f974922 |
%license LICENSE
|
|
 |
f974922 |
%doc README.md
|
|
 |
f974922 |
%{python3_sitelib}/py_gql/
|
|
 |
f974922 |
%{python3_sitelib}/py_gql-%{version}-py%{python3_version}.egg-info
|
|
 |
f974922 |
|
|
 |
f974922 |
%changelog
|
|
 |
f974922 |
* Fri Jun 26 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.6.1-2
|
|
 |
f974922 |
- Run tests as pytest is now available (rhbz#1837139)
|
|
 |
f974922 |
|
|
 |
f974922 |
* Mon May 18 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.6.1-1
|
|
 |
f974922 |
- Initial package for Fedora
|