Commit Graph

39 Commits

Author SHA1 Message Date
Jason Kraus
e5eeb9d831
fix(Decimal): parse integers as decimal. (#1295) 2021-01-06 09:54:45 +00:00
Syrus Akbary
d085c8852b
Subscription revamp (#1235)
* Integrate async tests into main code

* Added full support for subscriptions

* Fixed syntax using black

* Fixed typo
2020-07-28 13:33:21 -07:00
Christoph Zwerschke
796880fc5c Update dependencies 2020-03-04 11:24:42 +01: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
Jonathan Kim
0e8a3c5063
Update travis.yml (#1010)
* Use xenial dist

* Only install coveralls after success

* Latest version of pypi

* Refactor travis.yml into stages and add travis-tox

* Drop 2.6

* Bump to python 3.7
2019-06-19 18:25:21 +01:00
Eran Kampf
eb7966eca7
Fix for metaclasses that use type annotation (Issue #979) (#981)
* Replicate error with test

* Fix - ignore parameters we do not recognize

* Seperate Python3.6+ tests to their own folder

* lint

* Unused import

* Black formatting
2019-05-31 14:31:17 -07:00
cclauss
f73055f72b Drop support for Python 3.4 because it is EOL (#963) 2019-05-07 12:16:22 -07:00
Syrus Akbary
3d41a500c9 Fixed lint & imports 2018-08-31 20:01:03 +02:00
Syrus Akbary
3e5319cf70 Abstract thenables (promise, coroutine) out of relay Connections and Mutations 2018-08-31 19:53:21 +02:00
Syrus Akbary
ae7395f9da
Merge pull request #737 from dan98765/pre_commit_runs_as_part_of_continuous_integration
Update .travis.yml file to use tox as script for running tests
2018-07-06 12:50:31 -05:00
Daniel Gallagher
400a98de92 Add tox env for running mypy and add that to .travis.yml 2018-06-11 09:12:27 -07:00
Dan
f13e54b4a4 Update contributing docs about using tox and sync tox pytest cmd with travis (#744)
* Update pytest command run by tox to match the command used by travis. Updated README contributing section with info about using tox to run tests.

* Uppercase 'Graphene'
2018-05-30 12:53:44 +01:00
Dan
a7168ffc6e Fix: Make tox stop failing (#741)
* Tox stopped working due to recent changes; add in necessary dependencies to tox.ini so it passes again

* Run pre-commit on all files

* Switch testenv deps to .[test] instead of an explicit list so the list of test deps in setup.py becomes the single source of truth for test deps.
2018-05-28 21:25:15 +01:00
Daniel Gallagher
9777184721 Add pre-commit tool to repository, and run on all files 2018-05-22 10:56:58 -07:00
Pi Delport
265719d11f
Tox: Add py36 to default envlist 2018-02-08 01:32:10 +02: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
da3683028e Updated external dependencies 2016-12-01 21:18:37 -08:00
Beau Barker
d1a9bdb5c3 Add tox dependencies
Tox fails without pytz, iso8601 and pytest-benchmark
2016-11-07 09:26:28 +11:00
Syrus Akbary
7caf96c746 Improved relay requirement, removed Django/SQLAlchemy dependency in main package 2016-06-14 23:59:37 -07:00
Syrus Akbary
33d4f44f04 Refactored all graphene code moving to 1.0 2016-06-03 21:06:54 -07:00
Syrus Akbary
3093d2b300 Updated requirements 2016-05-21 00:35:12 -07:00
Syrus Akbary
5b63084802 Updated graphene version to 0.9 2016-05-12 00:32:05 -07:00
Syrus Akbary
379768930d Updated graphql-django-view 2016-05-11 22:54:29 -07:00
Syrus Akbary
9da1d1ec00 Update package requirements 2016-05-11 22:44:25 -07:00
Syrus Akbary
b91ae4b0fb Added subscription support. Fixed #35 2015-11-19 08:37:15 -08:00
Jake
57ba5e71f9 Remove redundant tests & fix tox. 2015-11-13 17:15:42 -05:00
Jake
5a1e014b9a Use graphql-django-view to handle GraphQLView 2015-11-13 16:53:35 -05: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
b377eb6230 Fixed Python3 errors 2015-10-26 01:59:38 -07:00
Syrus Akbary
464002c2db Improved relay resolvers 2015-10-20 21:35:56 -07:00
Syrus Akbary
3dd6d002b2 Updated graphql-core version 2015-10-18 19:46:45 -07:00
Syrus Akbary
14298f1c56 Fixed some tests. Updated graphql-core to 0.1a4 version 2015-10-14 21:50:33 -07:00
Syrus Akbary
11300ab5f5 Fixed #9. Improved tox testing 2015-10-10 17:50:41 -07:00
Syrus Akbary
4e8fd488ff Updated to work with last version of graphql-relay 2015-10-10 00:09:14 -07:00
Syrus Akbary
660b766448 Updated graphql-relay version 2015-10-06 22:31:00 -07:00
Syrus Akbary
fe510dc686 Completed Python3 Compatibility! 2015-10-05 23:06:49 -07:00
Syrus Akbary
35ec787501 Improved testing 2015-09-29 23:40:40 -07:00
Syrus Akbary
9a84d595a1 First relay version 2015-09-25 16:35:17 -07:00
Syrus Akbary
931d0ddb1c First working version of Graphene 😃 2015-09-24 02:11:50 -07:00