From b5600595be2bef1b08592793cfedd681ba6bf4edc87adaf0c54ec68d16ddea62 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 12 Nov 2024 03:32:11 +0000 Subject: [PATCH] - Update to 3.4.3: * Do not raise AttributeError when parsing non-string UUIDs * Overridable Union meta * remove pytz * remove polyfill for dataclasses * remove aniso8601, mock, iso8601 * support python 3.13 * remove README.rst, leave only README.md * CI: format check using Ruff * CI: fix tests on Python 3.13 * Actually run the tests in python 3.12 and 3.13 and remove snapshottest dependency - Remove patch support-pytest-8.patch, included upstream. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-graphene?expand=0&rev=25 --- .gitattributes | 23 ++++++++ .gitignore | 1 + graphene-3.3.0.tar.gz | 3 + graphene-3.4.3.tar.gz | 3 + python-graphene.changes | 126 ++++++++++++++++++++++++++++++++++++++++ python-graphene.spec | 71 ++++++++++++++++++++++ support-pytest-8.patch | 57 ++++++++++++++++++ 7 files changed, 284 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 graphene-3.3.0.tar.gz create mode 100644 graphene-3.4.3.tar.gz create mode 100644 python-graphene.changes create mode 100644 python-graphene.spec create mode 100644 support-pytest-8.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/graphene-3.3.0.tar.gz b/graphene-3.3.0.tar.gz new file mode 100644 index 0000000..b59c7eb --- /dev/null +++ b/graphene-3.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d7aa2cf1a5db9861ed77a49a3c886de29b93294f3e9d7f4000e53c8ac8b55d44 +size 128582 diff --git a/graphene-3.4.3.tar.gz b/graphene-3.4.3.tar.gz new file mode 100644 index 0000000..37af1b3 --- /dev/null +++ b/graphene-3.4.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc2c153f18ecd497afca23625d00e5486c08d581985f1c60798bebe5d8be46a4 +size 112601 diff --git a/python-graphene.changes b/python-graphene.changes new file mode 100644 index 0000000..3408105 --- /dev/null +++ b/python-graphene.changes @@ -0,0 +1,126 @@ +------------------------------------------------------------------- +Tue Nov 12 03:29:39 UTC 2024 - Steve Kowalik + +- Update to 3.4.3: + * Do not raise AttributeError when parsing non-string UUIDs + * Overridable Union meta + * remove pytz + * remove polyfill for dataclasses + * remove aniso8601, mock, iso8601 + * support python 3.13 + * remove README.rst, leave only README.md + * CI: format check using Ruff + * CI: fix tests on Python 3.13 + * Actually run the tests in python 3.12 and 3.13 and remove snapshottest + dependency +- Remove patch support-pytest-8.patch, included upstream. + +------------------------------------------------------------------- +Tue Aug 27 04:18:34 UTC 2024 - Steve Kowalik + +- Switch to autosetup and pyproject macros. +- Add patch support-pytest-8.patch: + * Use correct setup/teardown method names. + +------------------------------------------------------------------- +Sun Dec 17 01:58:11 UTC 2023 - Dirk Müller + +- update to 3.3.0: + * Default value for InputObjectTypes + * Default enum description to "An enumeration." + * Allow the user to change InputObjectType's default value on + non-specified inputs to a sentinel value + * 881: Corrected enum metaclass to fix pickle.dumps() + * chore: Use `typing.TYPE_CHECKING` instead of MYPY + * test: print schema with InputObjectType with DateTime field + with default_value (#1293) + * docs: add get_human function + * CI: drop python 3.6 + * types: add option for strict connection types +- update to 3.2.2: + * This release provides some internal refactoring to the relay + types to improve support for adding custom fields to them. + +------------------------------------------------------------------- +Thu Jul 6 11:18:52 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Thu Mar 16 10:40:55 UTC 2023 - pgajdos@suse.com + +- python-six is not required + +------------------------------------------------------------------- +Thu Jan 5 19:48:47 UTC 2023 - Yogalakshmi Arunachalam + +- Update to version 3.2.1 + * What's Changed + Non-required InputFields and Arguments can now be marked as deprecated by passing the deprecation_reason keyword argument to the constructor. + Complete deprecated fields and arguments support by @vhutov in #1472 + +------------------------------------------------------------------- +Wed Oct 12 03:31:51 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 3.1.1 + * Refer changelog https://github.com/graphql-python/graphene/releases + +------------------------------------------------------------------- +Wed Aug 10 07:54:15 UTC 2022 - Markéta Machová + +- Update to version 3.1.0 + * Refactor Multi Expression Code + * Add Python 3.9 and 3.10 to the test matrix + * fix: default value for argument should be Undefined (Issue #1394) + * fix: add default param _variables to parse_literal #1419 + * Make Graphene compatible with GraphQL-Core 3.2 + +------------------------------------------------------------------- +Mon Mar 21 13:16:21 UTC 2022 - pgajdos@suse.com + +- actually does not require python-mock for build + +------------------------------------------------------------------- +Tue Jan 11 03:34:27 UTC 2022 - John Vandenberg + +- Skip two tests with different output on Python 3.10 +- Update to v3.0.0 + * See https://github.com/graphql-python/graphene/wiki/v3-release-notes + +------------------------------------------------------------------- +Mon Jan 25 01:50:46 UTC 2021 - John Vandenberg + +- Adjust test invocation to fix builds +- Remove dependency on Unidecode and add minimum dependency versions +- Update to v3.0.0b7 + * fix(Decimal): parse integers as decimal +- from v3.0.0b6 + * Fix subscribe with arguments + * Add BigInt type + * Add UnforgivingExecutionContext +- from v3.0.0b5 + * Subscription revamp +- from v3.0.0b4 + * Improve enum compatibility + * Rename variables called type to type_ + * Fix ObjectType meta arguments + * Add Base64 scalar + * Pin graphql-core to >v3.1.2 +- from v3.0.0b3 + * Fix DateTime Scalar parse_literal methods + * Remove to_const function + +------------------------------------------------------------------- +Mon Jun 8 09:24:20 UTC 2020 - Jan Engelhardt + +- Trim conjecture from descriptions. + +------------------------------------------------------------------- +Sat Jun 6 07:08:31 UTC 2020 - John Vandenberg + +- Update to 3.0.0b2 + +------------------------------------------------------------------- +Wed Dec 4 13:23:59 UTC 2019 - Andreas Hasenkopf + +- New package for v2.1.8 diff --git a/python-graphene.spec b/python-graphene.spec new file mode 100644 index 0000000..ea387a6 --- /dev/null +++ b/python-graphene.spec @@ -0,0 +1,71 @@ +# +# spec file for package python-graphene +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-graphene +Version: 3.4.3 +Release: 0 +Summary: GraphQL Framework for Python +License: MIT +URL: https://github.com/graphql-python/graphene +Source: https://github.com/graphql-python/graphene/archive/v%{version}.tar.gz#/graphene-%{version}.tar.gz +BuildRequires: %{python_module graphql-core >= 3.1} +BuildRequires: %{python_module graphql-relay >= 3.1} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module promise} +BuildRequires: %{python_module pytest-asyncio} +BuildRequires: %{python_module pytest-benchmark} +BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module python-dateutil >= 2.7} +BuildRequires: %{python_module pytz} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module typing-extensions >= 4.7.1} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-graphql-core >= 3.1 +Requires: python-graphql-relay >= 3.1 +Requires: python-python-dateutil >= 2.7 +Requires: python-typing-extensions >= 4.7.1 +BuildArch: noarch +%python_subpackages + +%description +Graphene is a Python library for building GraphQL schemas/types. + +%prep +%autosetup -p1 -n graphene-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/graphene +%{python_sitelib}/graphene-%{version}.dist-info + +%changelog diff --git a/support-pytest-8.patch b/support-pytest-8.patch new file mode 100644 index 0000000..934c9a5 --- /dev/null +++ b/support-pytest-8.patch @@ -0,0 +1,57 @@ +From 15a0bf21ba5fe62de48a3a5be8058848e68ebe74 Mon Sep 17 00:00:00 2001 +From: Carsten Schoenert +Date: Sun, 17 Mar 2024 10:03:48 +0100 +Subject: [PATCH] pytest: Don't use nose like syntax + +The tests in test_custom_global_id.py use the old nose specific method +'setup(self)' which isn't supported anymore in Pytest 8+. The tests fail +with this error message without modification. + +E pytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. +E graphene/relay/tests/test_custom_global_id.py::TestIncompleteCustomGlobalID::test_must_define_resolve_global_id is using nose-specific method: `setup(self)` +E To remove this warning, rename it to `setup_method(self)` +E See docs: https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose +--- + graphene/relay/tests/test_custom_global_id.py | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/graphene/relay/tests/test_custom_global_id.py b/graphene/relay/tests/test_custom_global_id.py +index c1bf0fb4b..8f7991409 100644 +--- a/graphene/relay/tests/test_custom_global_id.py ++++ b/graphene/relay/tests/test_custom_global_id.py +@@ -9,7 +9,7 @@ + + + class TestUUIDGlobalID: +- def setup(self): ++ def setup_method(self): + self.user_list = [ + {"id": uuid4(), "name": "First"}, + {"id": uuid4(), "name": "Second"}, +@@ -77,7 +77,7 @@ def test_get_by_id(self): + + + class TestSimpleGlobalID: +- def setup(self): ++ def setup_method(self): + self.user_list = [ + {"id": "my global primary key in clear 1", "name": "First"}, + {"id": "my global primary key in clear 2", "name": "Second"}, +@@ -140,7 +140,7 @@ def test_get_by_id(self): + + + class TestCustomGlobalID: +- def setup(self): ++ def setup_method(self): + self.user_list = [ + {"id": 1, "name": "First"}, + {"id": 2, "name": "Second"}, +@@ -219,7 +219,7 @@ def test_get_by_id(self): + + + class TestIncompleteCustomGlobalID: +- def setup(self): ++ def setup_method(self): + self.user_list = [ + {"id": 1, "name": "First"}, + {"id": 2, "name": "Second"},