Add tox.ini, remove funcsigs, fix setup.py adding submodule names and update docs, update travis for using tox

This commit is contained in:
2016-01-14 02:50:59 +05:30
parent bc5905c4a5
commit 8484a89b89
5 changed files with 34 additions and 27 deletions
+17 -21
View File
@@ -1,30 +1,26 @@
language: python
# cache: pip
addons:
apt:
packages:
- redis-server
python:
# major versions, test first
- "2.7"
- "3.5-dev"
# other versions
- "2.6"
- "3.3"
- "3.4"
- "3.5"
- "nightly"
- "pypy"
# not included, for incompatibility
# - "2.5" # tarvis errs
# - "3.2" # humanfriendly cant install
# - "pypy3" # psutil errs
install:
- "pip install --upgrade -r requirements.txt"
- "pip install ."
env:
matrix:
# major versions, test first
- TOXENV=py27
- TOXENV=py35
# other versions
- TOXENV=py26
- TOXENV=py33
- TOXENV=py34
- TOXENV=py35
- TOXENV=pypy
- TOXENV=pypy3
# not included, for incompatibility
# - "2.5" # tarvis errs
# - "3.2" # humanfriendly cant install
# - "pypy3" # psutil errs
# command to run tests
script: py.test -v
script: tox
+2 -1
View File
@@ -1,7 +1,8 @@
Todo
------
1. Test on Appveyor - install redis via chocolatey
1. Test on Appveyor - python 2.x builds don't stop - use tox
1.1. Use tox for wrapping around py.test
2. Release on pypi
3. Add well-explained readme
4. use logging.debug / log file for more prints
-1
View File
@@ -7,5 +7,4 @@ python-dateutil
humanfriendly
psutil
setuptools
funcsigs
mock
+4 -4
View File
@@ -2,13 +2,13 @@ from setuptools import setup
packages = [
"pytest_gui_status",
# 'pytest_gui_status.plugin',
# 'pytest_gui_status.gui',
'pytest_gui_status.status_plugin',
'pytest_gui_status.status_gui',
]
package_dir = {
'pytest_gui_status': 'pytest_gui_status',
# 'pytest_gui_status.plugin': 'status_plugin',
# 'pytest_gui_status.gui': 'status_gui',
# 'pytest_gui_status.status_plugin': 'status_plugin',
# 'pytest_gui_status.status_gui': 'status_gui',
}
setup(
+11
View File
@@ -0,0 +1,11 @@
[tox]
skipsdist = true
envlist = py{26,27,34,35}
[testenv]
passenv = PYTEST_STATUS_PORT
REDIS_PATH
REDIS_ARGS
commands = pip install .
py.test -v