From 03c2b06e4636ed8a89c7a4c7e56d244fd9d00bde Mon Sep 17 00:00:00 2001 From: Christoph Zwerschke Date: Thu, 8 Apr 2021 16:30:25 +0200 Subject: [PATCH] Release v3.1.4, matching GrapqhQL.js v15.3.0 Replicates graphql/graphql-js@b7ec154cd1df7083dd0672e436a683b781de7178 --- .bumpversion.cfg | 2 +- README.md | 2 +- docs/conf.py | 2 +- pyproject.toml | 2 +- src/graphql/language/source.py | 10 +++++----- src/graphql/version.py | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 1fbccd9d..684a137e 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 3.1.3 +current_version = 3.1.4 commit = False tag = False diff --git a/README.md b/README.md index 96c1c0f8..25633d0a 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ a query language for APIs created by Facebook. [![Python 3 Status](https://pyup.io/repos/github/graphql-python/graphql-core/python-3-shield.svg)](https://pyup.io/repos/github/graphql-python/graphql-core/) [![Code Style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) -The current version 3.1.3 of GraphQL-core is up-to-date with GraphQL.js version 15.2.0. +The current version 3.1.4 of GraphQL-core is up-to-date with GraphQL.js version 15.3.0. An extensive test suite with over 2200 unit tests and 100% coverage comprises a replication of the complete test suite of GraphQL.js, making sure this port is diff --git a/docs/conf.py b/docs/conf.py index 0cc20ab7..4384ba47 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -61,7 +61,7 @@ # The short X.Y version. # version = '3.1' # The full version, including alpha/beta/rc tags. -version = release = '3.1.3' +version = release = '3.1.4' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/pyproject.toml b/pyproject.toml index 9818b444..f7b74b02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "graphql-core" -version = "3.1.3" +version = "3.1.4" description = """ GraphQL-core is a Python port of GraphQL.js, the JavaScript reference implementation for GraphQL.""" diff --git a/src/graphql/language/source.py b/src/graphql/language/source.py index 4f92f08b..9a59cc08 100644 --- a/src/graphql/language/source.py +++ b/src/graphql/language/source.py @@ -19,12 +19,12 @@ def __init__( ) -> None: """Initialize source input. - ``name`` and ``location_offset`` are optional. They are useful for clients who - store GraphQL documents in source files; for example, if the GraphQL input - starts at line 40 in a file named Foo.graphql, it might be useful for ``name`` - to be "Foo.graphql" and location to be ``(40, 0)``. + The ``name`` and ``location_offset`` parameters are optional, but they are + useful for clients who store GraphQL documents in source files. For example, + if the GraphQL input starts at line 40 in a file named ``Foo.graphql``, it might + be useful for ``name`` to be ``"Foo.graphql"`` and location to be ``(40, 0)``. - line and column in location_offset are 1-indexed + The ``line`` and ``column`` attributes in ``location_offset`` are 1-indexed. """ if not isinstance(body, str): raise TypeError("body must be a string.") diff --git a/src/graphql/version.py b/src/graphql/version.py index 748f0549..f14ae434 100644 --- a/src/graphql/version.py +++ b/src/graphql/version.py @@ -4,9 +4,9 @@ __all__ = ["version", "version_info", "version_js", "version_info_js"] -version = "3.1.3" +version = "3.1.4" -version_js = "15.2.0" +version_js = "15.3.0" _re_version = re.compile(r"(\d+)\.(\d+)\.(\d+)(\D*)(\d*)")