Skip to content

Commit b9bef43

Browse files
authored
Support Python 3.5+ and drop 3.3/3.4 (EOL) (#194)
1 parent 19aeada commit b9bef43

File tree

4 files changed

+14
-21
lines changed

4 files changed

+14
-21
lines changed

.travis.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
dist: xenial
12
language: python
23

34
branches:
@@ -10,13 +11,13 @@ matrix:
1011
include:
1112
- python: 2.7
1213
script: python setup.py flake8 && python setup.py test
13-
- python: 3.3
14-
script: python setup.py test
15-
- python: 3.4
16-
script: python setup.py test
1714
- python: 3.5
18-
script: python setup.py test
15+
script: python setup.py flake8 && python setup.py test
16+
- python: 3.6
17+
script: python setup.py flake8 && python setup.py test
18+
- python: 3.7
19+
script: python setup.py flake8 && python setup.py test
1920
- python: pypy
2021
script: python setup.py flake8 && python setup.py test
2122
- python: pypy3
22-
script: pip install setuptools_scm && python setup.py test
23+
script: python setup.py flake8 && python setup.py test

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ versions we officially support and regularly test against.
6666
+------------+-------------------------+
6767
| Platform | Versions |
6868
+============+=========================+
69-
| CPython | 2.7, 3.3, 3.4, 3.5 |
69+
| CPython | 2.7, 3.5, 3.6, 3.7 |
7070
+------------+-------------------------+
71-
| PyPy | 2.x, 4.x |
71+
| PyPy | 7.x |
7272
+------------+-------------------------+
7373

7474
All releases adhere to strict `semantic versioning`_. For Example,

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ universal = 1
77
[flake8]
88
filename = *.py, twitter-ads
99
exclude = docs/*
10-
ignore = F403,E402
10+
ignore = F403,E402,W504
1111
max-line-length = 100

setup.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Copyright (C) 2015 Twitter, Inc.
22

33
import os
4-
import sys
54
from setuptools import setup, find_packages
65

76
DESCRIPTION = 'A Twitter supported and maintained Ads API SDK for Python.'
@@ -29,8 +28,9 @@ def get_version(version_tuple):
2928
'Programming Language :: Python',
3029
'Programming Language :: Python :: 2.7',
3130
'Programming Language :: Python :: 3',
32-
'Programming Language :: Python :: 3.3',
33-
'Programming Language :: Python :: 3.4',
31+
'Programming Language :: Python :: 3.5',
32+
'Programming Language :: Python :: 3.6',
33+
'Programming Language :: Python :: 3.7',
3434
'Programming Language :: Python :: Implementation :: CPython',
3535
'Programming Language :: Python :: Implementation :: PyPy',
3636
'Topic :: Internet',
@@ -39,18 +39,10 @@ def get_version(version_tuple):
3939
]
4040

4141
extra_opts = {
42-
'setup_requires': [],
42+
'setup_requires': ['flake8==3.7.7', 'pytest-runner'],
4343
'tests_require': ['pytest', 'responses', 'mock']
4444
}
4545

46-
if sys.version_info[:2] == (3, 3):
47-
extra_opts['setup_requires'].append('pytest-runner<=3.0.1')
48-
else:
49-
extra_opts['setup_requires'].append('pytest-runner')
50-
51-
if sys.version_info[0] != 3:
52-
extra_opts['setup_requires'].append('flake8<=2.6.2')
53-
5446
setup(
5547
name='twitter-ads',
5648
version=VERSION,

0 commit comments

Comments
 (0)