Skip to content

Commit

Permalink
Merge pull request #6 from ryanhiebert/tox-fix
Browse files Browse the repository at this point in the history
Decode the README as utf-8
  • Loading branch information
rmohr committed May 20, 2015
2 parents 9b45522 + 090e7a0 commit 151b3e7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 41 deletions.
40 changes: 9 additions & 31 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,11 @@
sudo: false
language: python

python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "pypy"

install: pip install tox
env:
- PIP_USE_MIRRORS=true DEPS="genshi"
- PIP_USE_MIRRORS=true DEPS="kid genshi"

matrix:
exclude:
- python: "2.6"
env: PIP_USE_MIRRORS=true DEPS="genshi"
- python: "2.7"
env: PIP_USE_MIRRORS=true DEPS="genshi"
- python: "pypy"
env: PIP_USE_MIRRORS=true DEPS="genshi"
- python: "3.2"
env: PIP_USE_MIRRORS=true DEPS="kid genshi"
- python: "3.3"
env: PIP_USE_MIRRORS=true DEPS="kid genshi"
- python: "3.4"
env: PIP_USE_MIRRORS=true DEPS="kid genshi"

install:
- "pip install $DEPS"

script: "python setup.py test"
- TOXENV=py26
- TOXENV=py27
- TOXENV=py32
- TOXENV=py33
- TOXENV=py34
- TOXENV=pypy
script: tox
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def run_tests(self):
version='0.6.0',
description=
'A really simple WSGI way to serve static (or mixed) content.',
long_description=open('README.rst').read(),
long_description=open('README.rst', 'rb').read().decode('utf-8'),
author='Roman Mohr',
author_email='[email protected]',
url='https://github.com/rmohr/static3',
Expand Down
17 changes: 8 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
[tox]
envlist = py27, py33
envlist = py26, py27, py32, py33, py34, pypy

[testenv]
deps=distribute
deps=
distribute
pytest
genshi
py{26,27},pypy: kid
commands=python setup.py test []
sitepackages=False

[testenv:py27]
deps=kid
genshi

[testenv:py33]
deps=genshi
setenv=
PIP_USE_MIRRORS=true

[pytest]
norecursedirs = bin eggs .git _build tmp* lib *.egg
Expand Down

0 comments on commit 151b3e7

Please sign in to comment.