[packages/python3-graphql-core] - updated to 3.2.3 for python 3.6+

qboosh qboosh at pld-linux.org
Sat Dec 9 19:25:52 CET 2023


commit 9dd2026629c8fdedb91bac5d5e988b7eb35046c1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Dec 9 19:03:45 2023 +0100

    - updated to 3.2.3 for python 3.6+

 python-graphql-core.spec  | 128 ----------------------------------------------
 python3-graphql-core.spec | 104 +++++++++++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+), 128 deletions(-)
---
diff --git a/python-graphql-core.spec b/python-graphql-core.spec
deleted file mode 100644
index fdaa60c..0000000
--- a/python-graphql-core.spec
+++ /dev/null
@@ -1,128 +0,0 @@
-#
-# Conditional build:
-%bcond_with	tests	# unit tests (not included in sdist)
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-Summary:	GraphQL implementation for Python
-Summary(pl.UTF-8):	Implementacja GraphQL dla Pythona
-Name:		python-graphql-core
-# keep 2.x here for python2 support
-Version:	2.3.2
-Release:	1
-License:	MIT
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/graphql-core/
-Source0:	https://files.pythonhosted.org/packages/source/g/graphql-core/graphql-core-%{version}.tar.gz
-# Source0-md5:	72888f80c6c941c89ca5ed35aaf7d4cf
-URL:		https://pypi.org/project/graphql-core/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-promise >= 2.3
-BuildRequires:	python-promise < 3
-BuildRequires:	python-rx >= 1.6
-BuildRequires:	python-rx < 2
-BuildRequires:	python-six >= 1.10.0
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.5
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-promise >= 2.3
-BuildRequires:	python3-promise < 3
-BuildRequires:	python3-rx >= 1.6
-BuildRequires:	python3-rx < 2
-BuildRequires:	python3-six >= 1.10.0
-%endif
-%endif
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python-modules >= 1:2.7
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-This library is a port of GraphQL.js to Python and up-to-date with
-release 0.6.0.
-
-GraphQL.js is the JavaScript reference implementation for GraphQL, a
-query language for APIs created by Facebook.
-
-%description -l pl.UTF-8
-
-%package -n python3-graphql-core
-Summary:	GraphQL implementation for Python
-Summary(pl.UTF-8):	Implementacja GraphQL dla Pythona
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-graphql-core
-This library is a port of GraphQL.js to Python and up-to-date with
-release 0.6.0.
-
-GraphQL.js is the JavaScript reference implementation for GraphQL, a
-query language for APIs created by Facebook.
-
-%description -n python3-graphql-core -l pl.UTF-8
-Ta biblioteka to port GraphQL.js do Pythona, aktualna dla wydania
-0.6.0.
-
-GraphQL.js to napisana w JavaScripcie, referencyjna implementacja
-GraphQL - języka zapytań dla API Facebooka.
-
-%prep
-%setup -q -n graphql-core-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python3} -m pytest tests
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc LICENSE README.md
-%{py_sitescriptdir}/graphql
-%{py_sitescriptdir}/graphql_core-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-graphql-core
-%defattr(644,root,root,755)
-%doc LICENSE README.md
-%{py3_sitescriptdir}/graphql
-%{py3_sitescriptdir}/graphql_core-%{version}-py*.egg-info
-%endif
diff --git a/python3-graphql-core.spec b/python3-graphql-core.spec
new file mode 100644
index 0000000..e49d00a
--- /dev/null
+++ b/python3-graphql-core.spec
@@ -0,0 +1,104 @@
+#
+# Conditional build:
+%bcond_without	doc	# Sphinx documentation
+%bcond_without	tests	# unit tests
+
+Summary:	GraphQL implementation for Python
+Summary(pl.UTF-8):	Implementacja GraphQL dla Pythona
+Name:		python3-graphql-core
+Version:	3.2.3
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/graphql-core/
+Source0:	https://files.pythonhosted.org/packages/source/g/graphql-core/graphql-core-%{version}.tar.gz
+# Source0-md5:	49790781ef70f3dd1714b44d99e06e0e
+URL:		https://pypi.org/project/graphql-core/
+BuildRequires:	python3-modules >= 1:3.6
+BuildRequires:	python3-setuptools >= 1:59
+%if %{with tests}
+BuildRequires:	python3-pytest >= 7.1
+BuildRequires:	python3-pytest-asyncio >= 0.16
+#BuildRequires:	python3-pytest-describe >= 2
+BuildRequires:	python3-pytest-timeout
+# >= 2
+%if "%{py3_ver}" == "3.6"
+BuildRequires:	python3-typing-extensions >= 4.2
+%endif
+%if "%{py3_ver}" == "3.7"
+BuildRequires:	python3-typing-extensions >= 4.3
+%endif
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires:	python3-sphinx_rtd_theme >= 1
+BuildRequires:	sphinx-pdg-3 >= 4.3
+%endif
+Requires:	python3-modules >= 1:3.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This library is a port of GraphQL.js to Python and up-to-date with
+release 0.6.0.
+
+GraphQL.js is the JavaScript reference implementation for GraphQL, a
+query language for APIs created by Facebook.
+
+%description -l pl.UTF-8
+Ta biblioteka to port GraphQL.js do Pythona, aktualna dla wydania
+0.6.0.
+
+GraphQL.js to napisana w JavaScripcie, referencyjna implementacja
+GraphQL - języka zapytań dla API Facebooka.
+
+%package apidocs
+Summary:	API documentation for Python graphql-core module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona graphql-core
+Group:		Documentation
+
+%description apidocs
+API documentation for Python graphql-core module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona graphql-core.
+
+%prep
+%setup -q -n graphql-core-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_asyncio.plugin,pytest_benchmark.plugin,pytest_timeout \
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest tests
+%endif
+
+%if %{with doc}
+PYTHONPATH=$(pwd)/src \
+%{__make} -C docs html \
+	SPHINXBUILD=sphinx-build-3
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md SECURITY.md
+%{py3_sitescriptdir}/graphql
+%{py3_sitescriptdir}/graphql_core-%{version}-py*.egg-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_static,modules,usage,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-graphql-core.git/commitdiff/9dd2026629c8fdedb91bac5d5e988b7eb35046c1



More information about the pld-cvs-commit mailing list