Commit Graph

33 Commits

Author SHA1 Message Date
Mel van Londen
8e7d76bbce
Graphene v3 following v3 graphql-core (#1048)
* v3.0 - remove Python 2.x from build (#983)

* Change travis to only compile for p3.6+

* Changed tox to only run Python 3.6+

* Changed library classifiers to reflect support in Python 3.6+

* Changed version to 3.0.0 development

In [15]: get_version((3, 0, 0, "alpha", 0))
Out[15]: '3.0.dev20190601212304'

* Reorganize Tests (#985)

We no longer need a dedicated folder for Python3.6+ tests
We no longer need to check six.PY3 in tests

* Upgrade black to 19.3b0 (#987)

* Remove six dependency (#986)

* No one is using func_name

* Remove six simple usages

* Remove six requirement

* Remove `six.with_metaclass` calls

* pytest-asyncio should be a regular dependency now with Py3 move

* Change dependency to graphql-core-next (#988)

* Changed dependencies to core-next

* Converted Scalars

* ResolveInfo name change

* Ignore .venv

* Make Schema compatible with GraphQL-core-next

* Ignore more venv names and mypy and pytest caches

* Remove print statements for debugging in schema test

* core-next now provides out_type and out_name

* Adapt date and time scalar types to core-next

* Ignore the non-standard result.invalid flag

* Results are named tuples in core-next (immutable)

* Enum values are returned as dict in core-next

* Fix mutation tests with promises

* Make all 345 tests pass with graphql-core-next

* Remove the compat module which was only needed for older Py version

* Remove object as base class (not needed in Py 3)

* We can assume that dicts are ordered in Py 3.6+

* Make use of the fact that dicts are iterable

* Use consistent style of importing from pytest

* Restore compatibility with graphql-relay-py v3

Add adpaters for the PageInfo and Connection args.

* Avoid various deprecation warnings

* Use graphql-core 3 instead of graphql-core-next

* Update dependencies, reformat changes with black

* Update graphene/relay/connection.py

Co-Authored-By: Jonathan Kim <jkimbo@gmail.com>

* Run black on setup.py

* Remove trailing whitespace
2019-08-17 17:07:53 -04:00
Daniel Gallagher
142f4a58d8 Run black formatter via pre-commit on all files 2018-07-06 14:03:15 -07:00
Daniel Gallagher
086f9dda99 Run black formatter via pre-commit on all files 2018-07-06 12:09:23 -07:00
Dan
034b5385a5 Add isort precommit hook & run on all files (#743)
* Add isort and seed-isort-config pre-commit hook

* Fix erroneous isort moving comment to the top of file
2018-05-28 19:18:54 +01:00
Syrus Akbary
eff882e5a5 Fixed snapshot 2017-08-01 23:12:21 -07:00
Syrus Akbary
6a85507325 Improved get_node API 2017-07-27 20:06:48 -07:00
Syrus Akbary
394a1beb07 Updated resolver api 2017-07-27 02:55:25 -07:00
Syrus Akbary
9769612a44 Make resolvers simple again 2017-07-23 23:10:15 -07:00
Syrus Akbary
6ae9717415 Improved automatic resolver args from annotations 2017-07-23 18:57:17 -07:00
Syrus Akbary
f1624af08a Fixed Flake issues 2017-07-12 21:45:06 -07:00
Syrus Akbary
6321c52bd2 Fixed Connection tests 2017-07-12 21:21:16 -07:00
Syrus Akbary
b369ccfa08 Updated snapshot files 2017-04-10 04:26:54 -07:00
Syrus Akbary
dfcd7f2563 First version of the Graphene test client and snapshots 💪 2017-04-09 21:08:35 -07:00
Eran Kampf
344d85c19e fix tests 2016-10-27 10:37:52 -07:00
Syrus Akbary
6bd03d59d7 Added clientMutationId field to relay.ClientIDMutation. Fixed #300 2016-09-21 19:06:47 -07:00
Syrus Akbary
630556004a Revert "Fixed starwars relay tests schema representation"
This reverts commit c54b495b16.
2016-09-08 21:03:18 -07:00
Syrus Akbary
c54b495b16 Fixed starwars relay tests schema representation 2016-09-08 20:32:24 -07:00
Syrus Akbary
bcd523082b Fixed starwars relay mutation 2016-08-22 23:11:02 -07:00
Syrus Akbary
7804f10732 Added ClientIDMutation. All examples working 💪 2016-08-13 23:00:25 -07:00
Syrus Akbary
04492600e5 First stage separate interfaces 2016-08-08 09:37:06 -07:00
Syrus Akbary
35f42f4e0c Improved relay types 2016-06-15 22:45:28 -07:00
Syrus Akbary
5ccd815fbd Added ConnectionField 2016-06-14 23:48:25 -07:00
Syrus Akbary
c74a75133e Autolint all the files 2016-06-14 22:29:02 -07:00
Syrus Akbary
397df4ea1a Moved django and sqlalchemy to own projects 2016-06-10 10:18:22 -07:00
Syrus Akbary
51e97510c0 Improved relay nodes and field copies 2016-06-10 00:23:31 -07:00
Syrus Akbary
522f769cad Improved Node/Mutation fields 2016-06-09 22:56:41 -07:00
Syrus Akbary
d8d884c9be Improved extend interfaces syntax 2016-06-09 21:47:06 -07:00
Syrus Akbary
d67b7bc6a1 Improved relay compatibility 2016-06-09 21:24:28 -07:00
Jon Rosebaugh
a79a76d3b9 Add the info parameter (ResolveInfo) to get_node() calls.
This allows request_context (or any other ResolveInfo data) to be used while getting nodes.
For example, some data might need to be hidden based on the user's authorization; you would use info.request_context for this.

Fixes #34.
2015-11-17 23:44:01 -05:00
Syrus Akbary
bf168e7b12 Use new syntax for fields and arguments 2015-11-11 22:16:37 -08:00
Syrus Akbary
d46e957863 Improved syntax. Added autolinter. Added automatic flake8 checker in tests. Fixed #17 2015-10-31 14:02:22 -07:00
Syrus Akbary
97a81120b7 Added mutations in examples 2015-10-30 00:44:21 -07:00
Syrus Akbary
3bc0f5f8eb Moved all the examples from tests to examples 2015-10-27 23:56:24 -07:00