Skip to content

Commit

Permalink
Test and document all modern Python versions
Browse files Browse the repository at this point in the history
Add testing for Python 3.5 and 3.6. Dropped testing for Python 2.6 and
3.2

Keep Travis and tox configuration in sync.

Document all versions using trove classifiers. Helps library users know
if the package is compatible with a project.
  • Loading branch information
jdufresne committed Nov 5, 2017
1 parent b2d8d99 commit 7dca464
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 16 deletions.
25 changes: 16 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
language: python
cache: pip
python: 3.4
sudo: false
env:
- TOXENV=py26
- TOXENV=py27
- TOXENV=py32
- TOXENV=py33
- TOXENV=py34
- TOXENV=pypy
- TOXENV=pypy3
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: 3.3
env: TOXENV=py33
- python: 3.4
env: TOXENV=py34
- python: 3.5
env: TOXENV=py35
- python: 3.6
env: TOXENV=py36
- python: pypy
env: TOXENV=pypy
- python: pypy3
env: TOXENV=pypy3
install:
- pip install -U tox
script: tox
7 changes: 3 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ There are other Python ports of Text::Unidecode (unidecode_
and isounidecode_). unidecode_ is GPL; isounidecode_ doesn't support
Python 3 and uses too much memory.

This port is licensed under `Artistic License`_ and supports both
Python 2.x and 3.x. If you're OK with GPL, use unidecode_ (it has
better memory usage and better transliteration quality).
This port is licensed under `Artistic License`_ and supports Python 2.7 and
3.3+. If you're OK with GPL, use unidecode_ (it has better memory usage and
better transliteration quality).

.. _unidecode: http://pypi.python.org/pypi/Unidecode/
.. _isounidecode: http://pypi.python.org/pypi/isounidecode/
Expand All @@ -36,4 +36,3 @@ Usage
>>> from text_unidecode import unidecode
>>> unidecode(u'какой-то текст')
u'kakoi-to tekst'

4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
'License :: OSI Approved :: Artistic License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'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 :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py26,py27,py32,py33,py34,pypy,pypy3
envlist = py27,py33,py34,py35,py36,pypy,pypy3

[testenv]
deps =
Expand Down

0 comments on commit 7dca464

Please sign in to comment.