Skip to content

Commit a577209

Browse files
committed
bump: v0.4.4
Added support for new graphene-federation Drop support for python 3.8
1 parent 8fd26f2 commit a577209

File tree

6 files changed

+210
-201
lines changed

6 files changed

+210
-201
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
os: [ubuntu-latest, macos-latest, windows-latest]
20-
python: ["3.8", "3.9", "3.10", "3.11","3.12"]
20+
python: ["3.9", "3.10", "3.11","3.12"]
2121
runs-on: ${{ matrix.os }}
2222
steps:
2323
- uses: actions/checkout@v3

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [ubuntu-latest, macos-latest, windows-latest]
15-
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
15+
python: ["3.9", "3.10", "3.11", "3.12"]
1616
runs-on: ${{ matrix.os }}
1717
steps:
1818
- uses: actions/checkout@v3

examples/django_mongoengine/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Django==3.2.24
1+
Django==3.2.25
22
pytest==4.6.3
33
pytest-django==3.5.1
44
mongoengine==0.27.0

graphene_mongo/advanced_types.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
import base64
22

33
import graphene
4+
from graphene_federation import shareable
45

56

7+
@shareable # Support Graphene Federation v2
68
class FileFieldType(graphene.ObjectType):
79
content_type = graphene.String()
810
md5 = graphene.String()
911
chunk_size = graphene.Int()
1012
length = graphene.Int()
1113
data = graphene.String()
1214

13-
# Support Graphene Federation v2
14-
_shareable = True
15-
1615
@classmethod
1716
def _resolve_fs_field(cls, field, name, default_value=None):
1817
v = getattr(field.instance, field.key)
@@ -38,12 +37,10 @@ def resolve_data(self, info):
3837
return None
3938

4039

40+
@shareable # Support Graphene Federation v2
4141
class _CoordinatesTypeField(graphene.ObjectType):
4242
type = graphene.String()
4343

44-
# Support Graphene Federation v2
45-
_shareable = True
46-
4744
def resolve_type(self, info):
4845
return self["type"]
4946

0 commit comments

Comments
 (0)