Commit Graph

133 Commits

Author SHA1 Message Date
Eran Kampf
b6c8931b22
Fix GraphQL-core dependency
GraphQL-core released `3.2.0rc1` with some breaking changes and
1. We should be getting RC releases in our dependencies
2. It has breaking changes, so we shouldn't get 3.2.0 unless someone fixes it explicitly
2021-09-29 17:11:16 -07:00
Fabian Affolter
fce45ef552
Update pytz to 2021.1 (#1330) 2021-07-16 10:12:09 -07:00
Fabian Affolter
5290c9364c
Allow later aniso8601 releases (#1331) 2021-07-16 10:11:49 -07:00
Jonathan Kim
81fff0f1b5
Improve enum compatibility (#1153)
* Improve enum compatibility by supporting return enum as well as values and names

* Handle invalid enum values

* Rough implementation of compat middleware

* Move enum middleware into compat module

* Fix tests

* Tweak enum examples

* Add some tests for the middleware

* Clean up tests

* Add missing imports

* Remove enum compat middleware

* Use custom dedent function and pin graphql-core to >3.1.2
2020-07-13 15:40:57 -07:00
Jonathan Kim
324df19d3d
Set min version of graphql-core to v3.1.1 (#1215) 2020-06-28 21:54:36 -07:00
Jonathan Kim
a1fc3688aa
Remove to_const function (#1212) 2020-06-24 19:21:40 -07:00
Jonathan Kim
12ec8dc007
Don't exclude tests from distribution 2020-04-26 11:44:16 +01:00
Radosław Kowalski
133a831ab9
Update excluded packages list to properly exclude examples pack… (#1187)
* examples package will not be installed with graphene
2020-04-17 13:27:22 +01:00
Christoph Zwerschke
5e6f68957e Use latest graphql-core 3.1.0b1 instead of 3.0.3
Adapt Schema, because there is no type reducer in core 3.1 any more.
2020-03-04 12:23:40 +01:00
Christoph Zwerschke
796880fc5c Update dependencies 2020-03-04 11:24:42 +01:00
Jean-Louis Fuchs
ad0b3a529c
The default_value of InputField should be INVALID (#1111)
* The default_value of InputField should be INVALID

Since GraphQL 3.0 there is a distinction between None and INVALID (no value).
The tests captured the bug and are updated.

* Update minimum graphql-core version

* Use Undefined instead of INVALID

Co-authored-by: Jonathan Kim <jkimbo@gmail.com>
2020-02-08 20:24:58 +00:00
Henry Baldursson
9a19447213 Use unidecode to handle unicode characters in constant names (#1080) 2020-02-08 09:21:25 -08:00
Jonathan Kim
bd6d8d086d
Fix tests (#1119)
* Fix tests

* Add extra folders to make test command

* Update snapshots

* Add python 3.8 to test matrix

* Add black command to makefile and black dependency to setup.py

* Add lint command

* Run format

* Remove 3.8 from test matrix

* Add Python 3.8 to test matrix

* Update setup.py
2019-12-31 14:08:30 +00:00
Yu Mochizuki
e31b93d1fd Increase the allowed version of aniso8601 (#1072) 2019-12-26 11:27:55 +00:00
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
Vincent Prouillet
6e4058960d Increased allowed version of aniso8601 (#1009)
Closes #1008 

The only change should not affect graphene https://bitbucket.org/nielsenb/aniso8601/issues/24/float-induced-rounding-errors-when-parsing
2019-07-24 18:43:28 +01:00
Jonathan Kim
6fc1a8f79d
Upgrade graphql-relay (#1032)
* Upgrade graphql-relay

* Remove pypy3 test
2019-07-15 21:02:56 +01:00
Adrián López Calvo
431e93cd68 Fix malformed version on aniso8601 requirement (#995)
* Fix malformed version on aniso8601 requirement

* 6 -> 6.0

Co-Authored-By: Jonathan Kim <jkimbo@gmail.com>
2019-06-10 21:16:28 -07:00
cclauss
f73055f72b Drop support for Python 3.4 because it is EOL (#963) 2019-05-07 12:16:22 -07:00
Scott Crunkleton
a5162e9ae3 Update aniso8601 dependency to allow versions 4+. (#935)
* Update aniso8601 dependency to allow versions 4+.

* Upper bound to aniso8601 dependency version.
2019-05-07 09:31:30 -07:00
as
2bc7699a98 black formatting and removed trailing whitespace 2018-12-11 15:03:10 +01:00
as
2c43a2ae0a Now setup.py works on Windows other tools have trouble with PKG-INFO. Forcing long_description to ASCII. 2018-12-06 10:38:17 +01:00
as
3aafe58d4d Special characters in README.rst break setup.py on Windows 2018-11-29 09:29:00 +01:00
Syrus Akbary
3e5319cf70 Abstract thenables (promise, coroutine) out of relay Connections and Mutations 2018-08-31 19:53:21 +02:00
Syrus Akbary
d28dc68abc Updated requirements to use graphql-core >= 2.1 2018-07-19 14:44:20 -07:00
Daniel Gallagher
086f9dda99 Run black formatter via pre-commit on all files 2018-07-06 12:09:23 -07:00
Dan
33f2b303de Add python3.6 classifier to setup.py (#763) 2018-06-12 21:38:16 +01: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
85e354c139 Merge branch 'master' into feature/date-improvements
# Conflicts:
#	graphene/types/datetime.py
2018-03-29 22:10:18 -07:00
Syrus Akbary
b4255e55fd Use aniso8601 instead of iso8601 2018-03-29 22:05:12 -07:00
Jonathan Kim
79f7cc08e3 Exclude examples module in setup.py
Fixes #608
2018-02-18 17:21:19 +00:00
Lucas Costa
71177fe977 Prevent requirement breaking changes
I have a project still in 1.2.0 thats has been broken in my last release since it used `'graphql-core>=1.0.1'` in the `install_requires`. Since `graphql-core` has released version 2.0 with breaking changes and there was no instruction to maintain version 1, it was included as a dependency. This prevents this situation for the future.
2017-10-26 16:21:19 -02:00
Syrus Akbary
e405cea361 Use stable versions of graphql-core 2017-10-25 10:31:28 -07:00
Syrus Akbary
c38ffa5ffd Update setup.py 2017-10-14 12:16:09 +02:00
Syrus Akbary
88111610fb Fixed pytest requirements 2017-10-14 12:11:18 +02:00
Syrus Akbary
81018268aa Added support for wheel distributions. Fixed #505 2017-07-31 22:30:13 -07:00
Syrus Akbary
602d8866bb Updated graphql-core version 2017-07-31 22:08:05 -07:00
Syrus Akbary
800fbdf820 Use dev version of graphql-core and promise 2017-07-23 21:47:23 -07:00
Syrus Akbary
287a7a814d Added package test requirements into travis excluding setup 2017-07-23 19:15:51 -07:00
Syrus Akbary
8bac3dc9e5 Use latest graphql-core and promise lib 2017-07-23 19:02:41 -07:00
Syrus Akbary
6ae9717415 Improved automatic resolver args from annotations 2017-07-23 18:57:17 -07:00
Syrus Akbary
bd754c1989 Updated dependencies: use promise 2.0 and graphql-core 1.1 2017-04-18 22:55:29 -07:00
Syrus Akbary
dfcd7f2563 First version of the Graphene test client and snapshots 💪 2017-04-09 21:08:35 -07:00
Syrus Akbary
256c84a9a5 Added test extra requirements 2017-02-07 21:54:50 -08:00
Syrus Akbary
da3683028e Updated external dependencies 2016-12-01 21:18:37 -08:00
Syrus Akbary
5dd92b7d6b Added datetime tests 2016-10-03 20:51:37 -07:00
Syrus Akbary
c920537380 Updated graphene to 1.0 🎉 2016-09-26 09:20:41 -07:00
Syrus Akbary
0f76e8f817 Added simple benchmarks 2016-08-17 21:26:05 -07:00
Syrus Akbary
030fde2cff Improved system for getting graphene package version 2016-08-14 17:47:52 -07:00
Syrus Akbary
35169480d0 Moved iso8601 dependency into graphene-django package 2016-08-14 16:25:59 -07:00