Skip to content

Commit

Permalink
Updated version to 2.1.0 (final)
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Jul 19, 2018
1 parent 934deca commit 02605b1
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ global-exclude tests/*
recursive-exclude tests *
recursive-exclude tests_py35 *
include LICENSE
include README.md
25 changes: 14 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

GraphQL for Python.

*This library is a port of [graphql-js](https://github.com/graphql/graphql-js) to Python and currently is up-to-date with release [0.6.0](https://github.com/graphql/graphql-js/releases/tag/v0.6.0).*

_This library is a port of [graphql-js](https://github.com/graphql/graphql-js) to Python and currently is up-to-date with release [0.6.0](https://github.com/graphql/graphql-js/releases/tag/v0.6.0)._

[![PyPI version](https://badge.fury.io/py/graphql-core.svg)](https://badge.fury.io/py/graphql-core)
[![Build Status](https://travis-ci.org/graphql-python/graphql-core.svg?branch=master)](https://travis-ci.org/graphql-python/graphql-core)
Expand Down Expand Up @@ -98,11 +97,11 @@ print result.errors
The graphql query is executed, by default, synchronously (using `SyncExecutor`).
However the following executors are available if we want to resolve our fields in parallel:

* `graphql.execution.executors.asyncio.AsyncioExecutor`: This executor executes the resolvers in the Python asyncio event loop.
* `graphql.execution.executors.gevent.GeventExecutor`: This executor executes the resolvers in the Gevent event loop.
* `graphql.execution.executors.process.ProcessExecutor`: This executor executes each resolver as a process.
* `graphql.execution.executors.thread.ThreadExecutor`: This executor executes each resolver in a Thread.
* `graphql.execution.executors.sync.SyncExecutor`: This executor executes each resolver synchronusly (default).
- `graphql.execution.executors.asyncio.AsyncioExecutor`: This executor executes the resolvers in the Python asyncio event loop.
- `graphql.execution.executors.gevent.GeventExecutor`: This executor executes the resolvers in the Gevent event loop.
- `graphql.execution.executors.process.ProcessExecutor`: This executor executes each resolver as a process.
- `graphql.execution.executors.thread.ThreadExecutor`: This executor executes each resolver in a Thread.
- `graphql.execution.executors.sync.SyncExecutor`: This executor executes each resolver synchronusly (default).

#### Usage

Expand Down Expand Up @@ -133,23 +132,27 @@ py.test PATH/TO/MY/DIR/ # All tests in directory

Add the `-s` flag if you have introduced breakpoints into the code for debugging.
Add the `-v` ("verbose") flag to get more detailed test output. For even more detailed output, use `-vv`.
Check out the [pytest documentation](https://docs.pytest.org/en/latest/) for more options and test running controls.
Check out the [pytest documentation](https://docs.pytest.org/en/latest/) for more options and test running controls.

GraphQL-core supports several versions of Python. To make sure that changes do not break compatibility with any of those versions, we use `tox` to create virtualenvs for each python version and run tests with that version. To run against all python versions defined in the `tox.ini` config file, just run:

```sh
tox
```

If you wish to run against a specific version defined in the `tox.ini` file:

```sh
tox -e py36
```

Tox can only use whatever versions of python are installed on your system. When you create a pull request, Travis will also be running the same tests and report the results, so there is no need for potential contributors to try to install every single version of python on their own system ahead of time. We appreciate opening issues and pull requests to make GraphQL-core even more stable & useful!

## Main Contributors

* [@syrusakbary](https://github.com/syrusakbary/)
* [@jhgg](https://github.com/jhgg/)
* [@dittos](https://github.com/dittos/)
- [@syrusakbary](https://github.com/syrusakbary/)
- [@jhgg](https://github.com/jhgg/)
- [@dittos](https://github.com/dittos/)

## License

Expand Down
2 changes: 1 addition & 1 deletion graphql/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
set_default_backend,
)

VERSION = (2, 1, 0, "rc", 3)
VERSION = (2, 1, 0, "final", 0)
__version__ = get_version(VERSION)


Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ def run_tests(self):
name="graphql-core",
version=version,
description="GraphQL implementation for Python",
long_description=open("README.md").read(),
# long_description_content_type="text/markdown",
url="https://github.com/graphql-python/graphql-core",
download_url="https://github.com/graphql-python/graphql-core/releases",
author="Syrus Akbary, Jake Heinz, Taeho Kim",
Expand Down

0 comments on commit 02605b1

Please sign in to comment.