f974922
%global pypi_name py-gql
f974922
f974922
Name:           python-%{pypi_name}
f974922
Version:        0.6.1
0b98d3d
Release:        14%{?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
0b98d3d
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-14
0b98d3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
0b98d3d
5d7db5f
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-13
5d7db5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
5d7db5f
49750e8
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-12
49750e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
49750e8
10057e4
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 0.6.1-11
10057e4
- Rebuilt for Python 3.12
10057e4
e83cdde
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-10
e83cdde
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
e83cdde
13dc219
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-9
13dc219
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
13dc219
b760fb1
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 0.6.1-8
b760fb1
- Rebuilt for Python 3.11
b760fb1
d86a45c
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-7
d86a45c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
d86a45c
b4ad1e8
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-6
b4ad1e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
b4ad1e8
f6f6863
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.6.1-5
f6f6863
- Rebuilt for Python 3.10
f6f6863
d4df1ec
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-4
d4df1ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d4df1ec
0c968bc
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-3
0c968bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0c968bc
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