Skip to content

Commit

Permalink
Updated test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
nickreynke committed Dec 15, 2018
1 parent ac9ea08 commit ca888ad
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ matrix:
include:
- python: '2.7'
env: TOXENV=py27
- python: '3.7'
env: TOXENV=py37
- python: '3.4'
env: TOXENV=py34
- python: '3.5'
env: TOXENV=py35
- python: '3.6'
env: TOXENV=py36

install: pip install tox

Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,16 @@ Method | Parameters | Returns | Description

## Local development

I suggest using [pyenv](https://github.com/pyenv/pyenv) for local development.

### Running tests

1. Run `pip<version> install --no-cache-dir -r requirements.txt` to install dependencies
1. Run tests with [tox](https://tox.readthedocs.io/en/latest/index.html)
* For Python 2.7 run `tox -e py27` (you need to have Python 2.7 installed)
* For Python 3.7 run `tox -e py37` (you need to have Python 3.7 installed)
* For Python 3.4 run `tox -e py34` (you need to have Python 3.6 installed)
* For Python 3.5 run `tox -e py35` (you need to have Python 3.6 installed)
* For Python 3.6 run `tox -e py36` (you need to have Python 3.6 installed)

### Uploading a new package to PyPI

Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
keywords='python gedcom parser',
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
Expand Down
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
# confirm required package meta-data in setup.py

[tox]
envlist = py{27,37}
envlist = py{27,34,35,36}

[testenv]
basepython =
py27: python2.7
py37: python3.7
py34: python3.4
py35: python3.5
py36: python3.6
deps =
check-manifest
flake8
Expand Down

0 comments on commit ca888ad

Please sign in to comment.