Skip to content
This repository was archived by the owner on Aug 11, 2025. It is now read-only.

Commit b53f826

Browse files
Jamimyurishkuro
authored andcommitted
Add support for Python 3.5+ (#39)
As a software engineer, I'd like to have support for modern versions of Python declared in setup.py and to have corresponding tests on CI. Also, I'd like to be able to conveniently run tests in my local environment, so I want to add a tox config file. These changes: - Add Python 3.5+ to setup.py and .travis.yml - Add tox.ini - Add a mention of tox into Development section of README - Simplify the tests requirements
1 parent 066cc17 commit b53f826

4 files changed

Lines changed: 27 additions & 2 deletions

File tree

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1+
dist: xenial
2+
13
language: python
24
python:
35
- "2.7"
6+
- "3.5"
7+
- "3.6"
8+
- "3.7"
9+
- "3.8-dev"
10+
11+
matrix:
12+
allow_failures:
13+
- python: "3.8-dev"
414

515
install:
616
- make bootstrap

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ make bootstrap
1515
make test
1616
```
1717

18+
You can use [tox](https://tox.readthedocs.io) to run tests as well.
19+
```bash
20+
tox
21+
```
22+
1823
### Releases
1924

2025
Before new release, add a summary of changes since last version to CHANGELOG.rst

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
'Intended Audience :: Developers',
1414
'License :: OSI Approved :: MIT License',
1515
'Programming Language :: Python :: 2.7',
16+
'Programming Language :: Python :: 3.5',
17+
'Programming Language :: Python :: 3.6',
18+
'Programming Language :: Python :: 3.7',
1619
'Programming Language :: Python :: Implementation :: PyPy',
1720
'Topic :: Software Development :: Libraries :: Python Modules',
1821
],
@@ -28,10 +31,10 @@
2831
extras_require={
2932
'tests': [
3033
'doubles',
31-
'flake8<3', # see https://github.com/zheller/flake8-quotes/issues/29
34+
'flake8',
3235
'flake8-quotes',
3336
'mock<1.1.0',
34-
'pytest>=2.7,<3',
37+
'pytest',
3538
'pytest-cov',
3639
'pytest-mock',
3740
'Sphinx',

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[tox]
2+
envlist = py27,py35,py36,py37
3+
4+
[testenv]
5+
install_command = pip install {opts} {packages} {env:PWD}[tests]
6+
whitelist_externals = make
7+
commands = make test lint

0 commit comments

Comments
 (0)