Accepting request 1223493 from devel:languages:python

- 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/request/show/1223493
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-graphene?expand=0&rev=13
This commit is contained in:
Ana Guerrero 2024-11-12 18:22:05 +00:00 committed by Git OBS Bridge
commit ae249a8b2f
5 changed files with 28 additions and 71 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d7aa2cf1a5db9861ed77a49a3c886de29b93294f3e9d7f4000e53c8ac8b55d44
size 128582

3
graphene-3.4.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cc2c153f18ecd497afca23625d00e5486c08d581985f1c60798bebe5d8be46a4
size 112601

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Tue Nov 12 03:29:39 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <steven.kowalik@suse.com>

View File

@ -18,16 +18,12 @@
%{?sle15_python_module_pythons}
Name: python-graphene
Version: 3.3.0
%define onedotversion 3.3
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
# PATCH-FIX-UPSTREAM gh#graphql-python/graphene#1540
Patch0: support-pytest-8.patch
BuildRequires: %{python_module aniso8601 >= 8}
BuildRequires: %{python_module graphql-core >= 3.1}
BuildRequires: %{python_module graphql-relay >= 3.1}
BuildRequires: %{python_module pip}
@ -36,14 +32,17 @@ 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-aniso8601 >= 8
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
@ -61,14 +60,12 @@ Graphene is a Python library for building GraphQL schemas/types.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# The example depend on snapshottest, which is a bit messy to package as of v0.5.1
# https://github.com/syrusakbary/snapshottest/issues/92
%pytest --ignore examples
%pytest
%files %{python_files}
%doc README.rst
%doc README.md
%license LICENSE
%{python_sitelib}/graphene
%{python_sitelib}/graphene-%{onedotversion}.dist-info
%{python_sitelib}/graphene-%{version}.dist-info
%changelog

View File

@ -1,57 +0,0 @@
From 15a0bf21ba5fe62de48a3a5be8058848e68ebe74 Mon Sep 17 00:00:00 2001
From: Carsten Schoenert <c.schoenert@t-online.de>
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"},