diff --git a/README.md b/README.md index 6328c4f..3090aac 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,14 @@ # graphene-federation -Federation support for ![Graphene Logo](http://graphene-python.org/favicon.png) [Graphene](http://graphene-python.org) following the [Federation specifications](https://www.apollographql.com/docs/apollo-server/federation/federation-spec/). +Federation support for ![Graphene Logo](http://graphene-python.org/favicon.png) [Graphene](http://graphene-python.org) following the [Apollo Federation specifications](https://www.apollographql.com/docs/federation/subgraph-spec). +[![PyPI version][pypi-image]][pypi-url] [![Unit Tests Status][unit-tests-image]][unit-tests-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Integration Tests Status][integration-tests-image]][integration-tests-url] +[pypi-image]: https://badge.fury.io/py/graphene-federation.svg +[pypi-url]: https://pypi.org/project/graphene-federation/ [unit-tests-image]: https://github.com/graphql-python/graphene-federation/workflows/Unit%20Tests/badge.svg?branch=main [unit-tests-url]: https://github.com/graphql-python/graphene-federation/actions?query=workflow%3A"Unit+Tests" [coveralls-image]: https://coveralls.io/repos/github/graphql-python/graphene-federation/badge.svg?branch=main @@ -168,7 +171,7 @@ There is also a cool [example](https://github.com/preply/graphene-federation/iss ## Known issues 1. decorators will not work properly on fields with custom names for example `some_field = String(name='another_name')` -1. `@key` decorator will not work on [compound primary key](https://www.apollographql.com/docs/federation/entities/#defining-a-compound-primary-key) +1. `@key` decorator will not work on [compound primary key](https://www.apollographql.com/docs/federation/entities-advanced/#compound-keys) ------------------------ diff --git a/graphene_federation/service.py b/graphene_federation/service.py index 3c40da6..acfd29d 100644 --- a/graphene_federation/service.py +++ b/graphene_federation/service.py @@ -36,7 +36,7 @@ def convert_fields(schema: Schema, fields: list[str]) -> str: def field_to_string(field) -> str: str_field = print_fields(field) # Remove blocks added by `print_block` - block_match = re.match(" \{\n(?P.*)\n\}", str_field, flags=re.DOTALL) + block_match = re.match(r" \{\n(?P.*)\n\}", str_field, flags=re.DOTALL) if block_match: str_field = block_match.groups()[0] return str_field diff --git a/setup.py b/setup.py index 86b2f74..845595a 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() -version = '3.0.1' +version = '3.0.2' tests_require = [ "pytest==7.1.2",