Skip to content

Commit f42b278

Browse files
authored
Drop Python 3.5 Support (#14)
* Remove Python 3.5 Support Add Python 3.8 Support * Fix test * Fix test
1 parent 2a77863 commit f42b278

File tree

8 files changed

+23
-15
lines changed

8 files changed

+23
-15
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ sudo: false
22
matrix:
33
fast_finish: true
44
include:
5-
- python: 3.5.3
6-
env: TOXENV=py35
75
- python: '3.6'
86
env: TOXENV=py36
97
- python: '3.7'
108
env: TOXENV=py37
11-
dist: xenial
12-
sudo: true
9+
- python: '3.8'
10+
env: TOXENV=py38
1311
cache:
1412
directories:
1513
- "$HOME/.cache/pip"

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Before you submit a pull request, check that it meets these guidelines:
102102
2. If the pull request adds functionality, the docs should be updated. Put
103103
your new functionality into a function with a docstring, and add the
104104
feature to the list in README.rst.
105-
3. The pull request should work for Python 3.5, 3.6 and 3.7. Check
105+
3. The pull request should work for Python 3.6, 3.7 and 3.8. Check
106106
https://travis-ci.org/rtfol/aiohttp-sse-client/pull_requests
107107
and make sure that the tests pass for all supported Python versions.
108108

HISTORY.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22
History
33
=======
44

5+
0.2.0 (2020-10-20)
6+
------------------
7+
8+
**Breaking Changes**
9+
10+
* Drop Python 3.5 support
11+
* Add Python 3.8 support
12+
13+
**Non functional changes**
14+
15+
* Clarify the license (Apache Software License 2.0), thanks @fabaff
16+
* Update dependency packages
17+
18+
519
0.1.7 (2020-03-30)
620
------------------
721

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ Features
3030
* Full asyncio support
3131
* Easy to integrate with other aiohttp based project
3232
* Auto-reconnect for network issue
33-
* Support python 3.5.3 and above
33+
* Support python 3.6 and above
3434

3535
Usage
3636
--------
3737
.. code-block:: python
3838
3939
from aiohttp_sse_client import client as sse_client
40-
40+
4141
async with sse_client.EventSource(
4242
'https://stream.wikimedia.org/v2/stream/recentchange'
4343
) as event_source:

setup.cfg

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,3 @@ exclude = docs
1919

2020
[aliases]
2121
test = pytest
22-
23-
[tool:pytest]
24-
collect_ignore = ['setup.py']
25-

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
'License :: OSI Approved :: Apache Software License',
2727
'Natural Language :: English',
2828
'Programming Language :: Python :: 3',
29-
'Programming Language :: Python :: 3.5',
3029
'Programming Language :: Python :: 3.6',
3130
'Programming Language :: Python :: 3.7',
31+
'Programming Language :: Python :: 3.8',
3232
],
3333
description="A Server-Sent Event python client base on aiohttp",
3434
install_requires=requirements,

tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ async def test_basic_usage():
2424
assert messages[1].origin == 'https://stream.wikimedia.org'
2525
data_0 = json.loads(messages[0].data)
2626
data_1 = json.loads(messages[1].data)
27-
assert data_0['id'] != data_1['id']
27+
assert data_0['meta']['id'] != data_1['meta']['id']

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[tox]
2-
envlist = py35, py36, py37, flake8
2+
envlist = py36, py37, py38, flake8
33

44
[travis]
55
python =
6+
3.8: py38
67
3.7: py37
78
3.6: py36
8-
3.5: py35
99

1010
[testenv:flake8]
1111
basepython = python

0 commit comments

Comments
 (0)