Skip to content

Commit 1a528dc

Browse files
committed
Prepare minor release
1 parent d0943ad commit 1a528dc

File tree

12 files changed

+76
-84
lines changed

12 files changed

+76
-84
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ python:
55
- 3.5
66
- 3.6
77
- 3.7
8+
- 3.8
89
cache: pip
910
install:
1011
- pip install -r ./dev_requirements.txt
1112
- pip install -e .
1213
script:
13-
- flake8 gql
14+
- flake8 gql tests
1415
- pytest --cov=gql tests
1516
after_success:
1617
- coveralls
@@ -21,3 +22,4 @@ deploy:
2122
secure: ipBUDzdL/hW4+brQbjkqdP/VTV1Fv5t8e/7Xjt+AtXR2Qoe49MYVFB/Ea7fKfYYN1nL/xLlSuOj8aPQP4tKDshSELV2WT/SsMkz9EUHUUBu4HlZpVnLLoHlOgR//JfdSrcWNEGTANxwNZT4bdXkcITfDL2GefwiAVfdQ+nop/zEtFFwQmdHU0kylajV9f4PXjulKl3N9uIInsepjSFZR3iU4nn33aQ3meXyf+gs8OX4/AsvmnGAIX6l8W8MUrkVdQwzRV2phFF48xw6SKJeXhboNyoGOtr7CHg6oKd69t5sLtlNGxZpTG1XmxWX8SX+eLFJd3y+jE70Z9qtA+iRmgc8mQ5ghMijbZvyhruupJP8SsvwZBos3vUtTklMX1zYT0xL9mdvRuFWHu3q0z67unGkKE/BycIEpibwH6HLJ0HZcAVlWoaJZfs08+vENXSmHTSS+3xpuxHm7L8RF5lg91OuF7gm5DGyHzF/Kjrcu/3HVwzFO76vK4sEDO5FovHq+kuI+QvvxNIEvMCPt8i0FBnObfr2M1g0iyvT73qkJWI9JCpPW1g3ubb3EWKk3ZP28mlbcvw76JxDaEFDO554W9hDr4HO0Bq4LHalnTaTlqe/uP1TA+Tp9OARlftkuh1q14ukMwk9JtlCZhUkWldtGMMH7FJCSoOJ6RJl+l1ucCRo=
2223
on:
2324
tags: true
25+
python: 3.7

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/ @syrusakbary @ekampf @cito

MANIFEST.in

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
include MANIFEST.in
2+
3+
include CODEOWNERS
4+
include LICENSE
5+
include README.md
6+
7+
include dev_requirements.txt
8+
9+
include tox.ini
10+
11+
recursive-include tests *.py *.yaml
12+
13+
prune gql-checker
14+
15+
global-exclude *.py[co] __pycache__

README.rst

Lines changed: 0 additions & 49 deletions
This file was deleted.

bin/autolinter

Lines changed: 0 additions & 7 deletions
This file was deleted.

bin/convert_documentation

Lines changed: 0 additions & 3 deletions
This file was deleted.

dev_requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pytest>=3,<4
2-
pytest-cov
3-
coveralls
4-
flake8
5-
mock
6-
vcrpy==2.1.1
2+
pytest-cov>=2.8,<3
3+
coveralls>=1.8,<2
4+
flake8>=3.7,<4
5+
mock>=3,<4
6+
vcrpy>=2.1,<3

setup.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
setup(
44
name='gql',
5-
version='0.1.0',
5+
version='0.2.0',
66
description='GraphQL client for Python',
7-
long_description=open('README.rst').read(),
7+
long_description=open('README.md').read(),
8+
long_description_content_type="text/markdown",
89
url='https://github.com/graphql-python/gql',
910
author='Syrus Akbary',
1011
author_email='[email protected]',
@@ -19,15 +20,21 @@
1920
'Programming Language :: Python :: 3.5',
2021
'Programming Language :: Python :: 3.6',
2122
'Programming Language :: Python :: 3.7',
23+
'Programming Language :: Python :: 3.8',
2224
'Programming Language :: Python :: Implementation :: PyPy',
2325
],
2426
keywords='api graphql protocol rest relay gql client',
2527
packages=find_packages(include=["gql*"]),
2628
install_requires=[
2729
'six>=1.10.0',
2830
'graphql-core>=0.5.0,<2',
29-
'promise>=0.4.0',
30-
'requests>=2.12.0'
31+
'promise>=2.0,<3',
32+
'requests>=2.12,<3'
33+
],
34+
tests_require=[
35+
'pytest>=3,<4',
36+
'pytest-cov>=2.8,<3',
37+
'mock>=3,<4',
38+
'vcrpy>=2.1,<3'
3139
],
32-
tests_require=['pytest>=3,<4', 'mock'],
3340
)

tests/starwars/test_dsl.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,7 @@ def test_fetch_luke_aliased(ds):
279279
# assert result.data == expected
280280

281281

282-
283-
def test_hero_name_query(ds):
282+
def test_hero_name_query_result(ds):
284283
result = ds.query(
285284
ds.Query.hero.select(
286285
ds.Character.name

tests/test_client.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
@mock.patch('gql.transport.requests.RequestsHTTPTransport.execute')
99
def test_retries(execute_mock):
1010
expected_retries = 3
11-
execute_mock.side_effect =Exception("fail")
11+
execute_mock.side_effect = Exception("fail")
1212

1313
client = Client(
1414
retries=expected_retries,
@@ -29,6 +29,3 @@ def test_retries(execute_mock):
2929
client.execute(query)
3030

3131
assert execute_mock.call_count == expected_retries
32-
33-
34-

0 commit comments

Comments
 (0)