Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to test on Python 3.5 and 3.6 #182

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
*.py[co]
.tox
_test_run/
bin/
include/
lib/
.Python
bumpversion.egg-info/
.pytest_cache/
__pycache__/
19 changes: 10 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
language: python
python:
- "3.6"
- "3.5"
- "3.4"
- "3.3"
- "3.2"
- "2.7"
- "pypy2.7"

env:
- TOX_ENV=py27
- TOX_ENV=py27-configparser
- TOX_ENV=py32
- TOX_ENV=py33
- TOX_ENV=py34
- TOX_ENV=pypy
install:
- git config --global user.email "bumpversion-test-git@travis.ci"
- git config --global user.name "Testing Git on Travis CI"
- git --version
- git config --list
- echo -e '[ui]\nusername = Testing Mercurial on Travis CI <bumpversion-test-hg@travis.ci>' > ~/.hgrc
- hg --version
- pip install --upgrade pytest tox
- pip install --upgrade pytest tox-travis

script:
- tox -e $TOX_ENV
- tox

2 changes: 2 additions & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pytest==3.6.0
tox==3.0.0
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: PyPy',
),
)
14 changes: 11 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
[tox]
envlist = py34, py33, py32, py27, py27-configparser, pypy
envlist = py36, py35, py34, py33, py32, py27, py27-configparser, pypy

[testenv]
passenv = HOME
deps=
distribute
pytest
mock
basepython=
py36: python3.6
py35: python3.5
py34: python3.4
py33: python3.3
py32: python3.2
py27: python2.7
pypy: pypy
commands=
py.test [] tests

[testenv:py27-configparser]
basepython= python2.7
basepython = python2.7
deps=
distribute
pytest
mock
configparser