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
+11 -15
View File
@@ -1,30 +1,26 @@
language: python language: python
# cache: pip
addons: addons:
apt: apt:
packages: packages:
- redis-server - redis-server
python: env:
matrix:
# major versions, test first # major versions, test first
- "2.7" - TOXENV=py27
- "3.5-dev" - TOXENV=py35
# other versions # other versions
- "2.6" - TOXENV=py26
- "3.3" - TOXENV=py33
- "3.4" - TOXENV=py34
- "3.5" - TOXENV=py35
- "nightly" - TOXENV=pypy
- "pypy" - TOXENV=pypy3
# not included, for incompatibility # not included, for incompatibility
# - "2.5" # tarvis errs # - "2.5" # tarvis errs
# - "3.2" # humanfriendly cant install # - "3.2" # humanfriendly cant install
# - "pypy3" # psutil errs # - "pypy3" # psutil errs
install:
- "pip install --upgrade -r requirements.txt"
- "pip install ."
# command to run tests # command to run tests
script: py.test -v script: tox
+2 -1
View File
@@ -1,7 +1,8 @@
Todo 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 2. Release on pypi
3. Add well-explained readme 3. Add well-explained readme
4. use logging.debug / log file for more prints 4. use logging.debug / log file for more prints
-1
View File
@@ -7,5 +7,4 @@ python-dateutil
humanfriendly humanfriendly
psutil psutil
setuptools setuptools
funcsigs
mock mock
+4 -4
View File
@@ -2,13 +2,13 @@ from setuptools import setup
packages = [ packages = [
"pytest_gui_status", "pytest_gui_status",
# 'pytest_gui_status.plugin', 'pytest_gui_status.status_plugin',
# 'pytest_gui_status.gui', 'pytest_gui_status.status_gui',
] ]
package_dir = { package_dir = {
'pytest_gui_status': 'pytest_gui_status', 'pytest_gui_status': 'pytest_gui_status',
# 'pytest_gui_status.plugin': 'status_plugin', # 'pytest_gui_status.status_plugin': 'status_plugin',
# 'pytest_gui_status.gui': 'status_gui', # 'pytest_gui_status.status_gui': 'status_gui',
} }
setup( 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