File tree Expand file tree Collapse file tree 6 files changed +34
-15
lines changed Expand file tree Collapse file tree 6 files changed +34
-15
lines changed Original file line number Diff line number Diff line change @@ -57,3 +57,4 @@ deploy:
5757 tags : true
5858 password :
5959 secure : q0ey31cWljGB30l43aEd1KIPuAHRutzmsd2lBb/2zvD79ReBrzvCdFAkH2xcyo4Volk3aazQQTNUIurnTuvBxmtqja0e+gUaO5LdOcokVdOGyLABXh7qhd2kdvbTDWgSwA4EWneLGXn/SjXSe0f3pCcrwc6WDcLAHxtffMvO9gulpYQtUoOqXfMipMOkRD9iDWTJBsSo3trL70X1FHOVr6Yqi0mfkX2Y/imxn6wlTWRz28Ru94xrj27OmUnCv7qcG0taO8LNlUCquNFAr2sZ+l+U/GkQrrM1y+ehPz3pmI0cCCd7SX/7+EG9ViZ07BZ31nk4pgnqjmj3nFwqnCE/4IApGnduqtrMDF63C9TnB1TU8oJmbbUCu4ODwRpBPZMnwzaHsLnrpdrB89/98NtTfujdrh3U5bVB+t33yxrXVh+FjgLYj9PVeDixpFDn6V/Xcnv4BbRMNOhXIQT7a7/5b99RiXBjCk6KRu+Jdu5DZ+3G4Nbr4oim3kZFPUHa555qbzTlwAfkrQxKv3C3OdVJR7eGc9ADsbHyEJbdPNAh/T+xblXTXLS3hPYDvgM+WEGy3CytBDG3JVcXm25ZP96EDWjweJ7MyfylubhuKj/iR1Y1wiHeIsYq9CqRrFQUWL8gFJBfmgjs96xRXXXnvyLtKUKpKw3wFg5cR/6FnLeYZ8k=
60+ distributions : " sdist bdist_wheel"
Original file line number Diff line number Diff line change 1- Please read [ UPGRADE-v1 .0.md] ( https://github.com/graphql-python/graphene/blob/master/UPGRADE-v1 .0.md )
2- to learn how to upgrade to Graphene ` 1 .0` .
1+ Please read [ UPGRADE-v2 .0.md] ( https://github.com/graphql-python/graphene/blob/master/UPGRADE-v2 .0.md )
2+ to learn how to upgrade to Graphene ` 2 .0` .
33
44---
55
@@ -13,7 +13,7 @@ A [SQLAlchemy](http://www.sqlalchemy.org/) integration for [Graphene](http://gra
1313For instaling graphene, just run this command in your shell
1414
1515``` bash
16- pip install " graphene-sqlalchemy>=1 .0"
16+ pip install " graphene-sqlalchemy>=2 .0"
1717```
1818
1919## Examples
@@ -47,8 +47,8 @@ class User(SQLAlchemyObjectType):
4747class Query (graphene .ObjectType ):
4848 users = graphene.List(User)
4949
50- def resolve_users (self , args , context , info ):
51- query = User.get_query(context) # SQLAlchemy query
50+ def resolve_users (self , info ):
51+ query = User.get_query(info. context) # SQLAlchemy query
5252 return query.all()
5353
5454schema = graphene.Schema(query = Query)
Original file line number Diff line number Diff line change 11Please read
2- `UPGRADE-v1 .0.md <https://github.com/graphql-python/graphene/blob/master/UPGRADE-v1 .0.md >`__
3- to learn how to upgrade to Graphene ``1 .0 ``.
2+ `UPGRADE-v2 .0.md <https://github.com/graphql-python/graphene/blob/master/UPGRADE-v2 .0.md >`__
3+ to learn how to upgrade to Graphene ``2 .0 ``.
44
55--------------
66
@@ -17,7 +17,7 @@ For instaling graphene, just run this command in your shell
1717
1818.. code :: bash
1919
20- pip install " graphene-sqlalchemy>=1 .0"
20+ pip install " graphene-sqlalchemy>=2 .0"
2121
2222 Examples
2323--------
@@ -53,8 +53,8 @@ following:
5353 class Query (graphene .ObjectType ):
5454 users = graphene.List(User)
5555
56- def resolve_users (self , args , context , info ):
57- query = User.get_query(context) # SQLAlchemy query
56+ def resolve_users (self , info ):
57+ query = User.get_query(info. context) # SQLAlchemy query
5858 return query.all()
5959
6060 schema = graphene.Schema(query = Query)
Original file line number Diff line number Diff line change 99 get_session
1010)
1111
12- __all__ = ['SQLAlchemyObjectType' ,
13- 'SQLAlchemyConnectionField' ,
14- 'get_query' ,
15- 'get_session' ]
12+ __version__ = '2.0.dev2017072601'
13+
14+ __all__ = [
15+ '__version__' ,
16+ 'SQLAlchemyObjectType' ,
17+ 'SQLAlchemyConnectionField' ,
18+ 'get_query' ,
19+ 'get_session'
20+ ]
Original file line number Diff line number Diff line change @@ -24,3 +24,6 @@ norecursedirs =
2424filterwarnings =
2525 error
2626 ignore::DeprecationWarning
27+
28+ [bdist_wheel]
29+ universal =1
Original file line number Diff line number Diff line change 11from setuptools import find_packages , setup
2+ import sys
3+ import ast
4+ import re
5+
6+ _version_re = re .compile (r'__version__\s+=\s+(.*)' )
7+
8+ with open ('graphene_django/__init__.py' , 'rb' ) as f :
9+ version = str (ast .literal_eval (_version_re .search (
10+ f .read ().decode ('utf-8' )).group (1 )))
11+
212
313setup (
414 name = 'graphene-sqlalchemy' ,
5- version = '2.0.dev2017072601' ,
15+ version = version ,
616
717 description = 'Graphene SQLAlchemy integration' ,
818 long_description = open ('README.rst' ).read (),
You can’t perform that action at this time.
0 commit comments