Skip to content

Commit 865ee9d

Browse files
KingDarBojajkimbo
andauthored
Migration to graphql-core-v3 (#36)
* feat: server-core compatible with graphql-core-v3 - Bump dependencies - Refactor code to use f-strings format (3.6+) - Rename public data structures BREAKING CHANGE: - Requires graphql-core-v3 - Drop support for Python 2 and below 3.6 - Remove executor check as graphql-core-v3 does not have SyncExecutor * chore: drop unsupported py versions on tox and travis * tests: apply minor fixes to older tests * chore: apply black formatting * chore: fix flake8 issues * chore: remove promise package * tests: achieve 100% coverage * chore: apply compatible isort-black options * chore: solve dev tools issues * chore: remove pypy3 from tox envlist * chore: remove pypy3 from travis * tests: re-add helper tests * chore: pin graphql-core to 3.1.0 * refactor: use graphql and graphql-sync functions * tests: remove Promise and use async await iterator * refactor: remove pytest-asyncio * chore: set graphql-core dependency semver Co-Authored-By: Jonathan Kim <[email protected]> Co-authored-by: Jonathan Kim <[email protected]>
1 parent 340236f commit 865ee9d

13 files changed

+368
-601
lines changed

.travis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
language: python
22
sudo: false
33
python:
4-
- 2.7
5-
- 3.5
64
- 3.6
75
- 3.7
86
- 3.8
97
- 3.9-dev
10-
- pypy
11-
- pypy3
128
matrix:
139
include:
14-
- python: 3.6
10+
- python: 3.7
1511
env: TOXENV=flake8,black,import-order,mypy,manifest
1612
cache: pip
1713
install: pip install tox-travis codecov

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ The `graphql_server` package provides these public helper functions:
3535
* `json_encode`
3636
* `json_encode_pretty`
3737

38+
**NOTE:** the `json_encode_pretty` is kept as backward compatibility change as it uses `json_encode` with `pretty` parameter set to `True`.
39+
3840
All functions in the package are annotated with type hints and docstrings,
3941
and you can build HTML documentation from these using `bin/build_docs`.
4042

0 commit comments

Comments
 (0)