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:
57
57
tags : true
58
58
password :
59
59
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` .
3
3
4
4
---
5
5
@@ -13,7 +13,7 @@ A [SQLAlchemy](http://www.sqlalchemy.org/) integration for [Graphene](http://gra
13
13
For instaling graphene, just run this command in your shell
14
14
15
15
``` bash
16
- pip install " graphene-sqlalchemy>=1 .0"
16
+ pip install " graphene-sqlalchemy>=2 .0"
17
17
```
18
18
19
19
## Examples
@@ -47,8 +47,8 @@ class User(SQLAlchemyObjectType):
47
47
class Query (graphene .ObjectType ):
48
48
users = graphene.List(User)
49
49
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
52
52
return query.all()
53
53
54
54
schema = graphene.Schema(query = Query)
Original file line number Diff line number Diff line change 1
1
Please 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 ``.
4
4
5
5
--------------
6
6
@@ -17,7 +17,7 @@ For instaling graphene, just run this command in your shell
17
17
18
18
.. code :: bash
19
19
20
- pip install " graphene-sqlalchemy>=1 .0"
20
+ pip install " graphene-sqlalchemy>=2 .0"
21
21
22
22
Examples
23
23
--------
@@ -53,8 +53,8 @@ following:
53
53
class Query (graphene .ObjectType ):
54
54
users = graphene.List(User)
55
55
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
58
58
return query.all()
59
59
60
60
schema = graphene.Schema(query = Query)
Original file line number Diff line number Diff line change 9
9
get_session
10
10
)
11
11
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 =
24
24
filterwarnings =
25
25
error
26
26
ignore::DeprecationWarning
27
+
28
+ [bdist_wheel]
29
+ universal =1
Original file line number Diff line number Diff line change 1
1
from 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
+
2
12
3
13
setup (
4
14
name = 'graphene-sqlalchemy' ,
5
- version = '2.0.dev2017072601' ,
15
+ version = version ,
6
16
7
17
description = 'Graphene SQLAlchemy integration' ,
8
18
long_description = open ('README.rst' ).read (),
You can’t perform that action at this time.
0 commit comments