- 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
This commit is contained in:
commit
b5600595be
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
graphene-3.3.0.tar.gz
Normal file
3
graphene-3.3.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d7aa2cf1a5db9861ed77a49a3c886de29b93294f3e9d7f4000e53c8ac8b55d44
|
||||
size 128582
|
3
graphene-3.4.3.tar.gz
Normal file
3
graphene-3.4.3.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cc2c153f18ecd497afca23625d00e5486c08d581985f1c60798bebe5d8be46a4
|
||||
size 112601
|
126
python-graphene.changes
Normal file
126
python-graphene.changes
Normal file
@ -0,0 +1,126 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- 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 <dmueller@suse.com>
|
||||
|
||||
- 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 <ecsos@opensuse.org>
|
||||
|
||||
- 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 <yarunachalam@suse.com>
|
||||
|
||||
- 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 <yarunachalam@suse.com>
|
||||
|
||||
- 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á <mmachova@suse.com>
|
||||
|
||||
- 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 <jayvdb@gmail.com>
|
||||
|
||||
- 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 <jayvdb@gmail.com>
|
||||
|
||||
- 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 <jengelh@inai.de>
|
||||
|
||||
- Trim conjecture from descriptions.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 6 07:08:31 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Update to 3.0.0b2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 4 13:23:59 UTC 2019 - Andreas Hasenkopf <ahasenkopf@suse.com>
|
||||
|
||||
- New package for v2.1.8
|
71
python-graphene.spec
Normal file
71
python-graphene.spec
Normal file
@ -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
|
57
support-pytest-8.patch
Normal file
57
support-pytest-8.patch
Normal file
@ -0,0 +1,57 @@
|
||||
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"},
|
Loading…
x
Reference in New Issue
Block a user