Skip to content

Commit

Permalink
Merge pull request #106 from tmontes/support-py37
Browse files Browse the repository at this point in the history
Ensure Python 3.7 support.
  • Loading branch information
tmontes authored Jan 11, 2019
2 parents 49a2683 + a37e803 commit 832db0b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ matrix:
env: TOXENV=py27-codecov
- python: "3.6"
env: TOXENV=py36-codecov
- python: "3.7"
dist: xenial
env: TOXENV=py37-codecov


install:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Running the test suite with `tox <https://pypi.python.org/pypi/tox>`_:

.. code-block:: console
$ pip install tox
$ pip install tox tox-venv
$ tox
Expand Down
3 changes: 2 additions & 1 deletion docs/source/support.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ There is, however, a limited set of interpreters and platforms where development

* CPython 2.7 on a glibc based Linux system.
* CPython 3.6 on a glibc based Linux system.
* CPython 3.7 on a glibc based Linux system.

Other interpreters and platforms may become supported in the future.

Expand Down Expand Up @@ -48,7 +49,7 @@ Deprecation Policy

If a non-backwards compatible API change is planned:

* A fully backwards compatible release will be made, where uses of API about to break compatibility will issue ``WiresDeprecationWarning``\s using the Python Standard Library's `warnings <https://docs.python.org/3.6/library/warnings.html>`_ module as in:
* A fully backwards compatible release will be made, where uses of API about to break compatibility will issue ``WiresDeprecationWarning``\s using the Python Standard Library's `warnings <https://docs.python.org/3/library/warnings.html>`_ module as in:

.. code-block:: python
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries :: Python Modules",
]
INSTALL_REQUIRES = [
Expand Down
13 changes: 10 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[tox]
envlist = coverage-erase,py27,py36,coverage-report
envlist = coverage-erase,py27,py36,py37,coverage-report

[testenv]
extras = tests
commands =
coverage run --source={envsitepackagesdir}/wires/,tests/ --branch --parallel -m unittest discover

[testenv:coverage-erase]
basepython = python3.6
basepython = python3.7
commands = coverage erase

[testenv:py27-codecov]
Expand All @@ -24,8 +24,15 @@ commands =
coverage run --source={envsitepackagesdir}/wires/,tests/ --branch -m unittest discover
codecov

[testenv:py37-codecov]
passenv = CI TRAVIS TRAVIS_*
deps = codecov
commands =
coverage run --source={envsitepackagesdir}/wires/,tests/ --branch -m unittest discover
codecov

[testenv:coverage-report]
basepython = python3.6
basepython = python3.7
commands =
coverage combine
coverage report
Expand Down

0 comments on commit 832db0b

Please sign in to comment.