Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Switch to Pipenv for dependency management
Browse files Browse the repository at this point in the history
  • Loading branch information
davehunt committed Aug 1, 2018
1 parent 697ae6a commit b290e24
Show file tree
Hide file tree
Showing 8 changed files with 426 additions and 20 deletions.
21 changes: 21 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
pluggy = "*"
selenium = "*"
splinter = "*"
"zope.component" = "*"
"zope.interface" = "*"

[dev-packages]
coveralls = "*"
flake8 = "*"
flake8-isort = "*"
mock = "*"
pytest = "*"
pytest-cov = "*"
sphinx = "*"
sphinx-rtd-theme = "*"
391 changes: 391 additions & 0 deletions Pipfile.lock

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion requirements/coveralls.txt

This file was deleted.

2 changes: 0 additions & 2 deletions requirements/docs.txt

This file was deleted.

2 changes: 0 additions & 2 deletions requirements/flake8.txt

This file was deleted.

1 change: 1 addition & 0 deletions requirements/pipenv.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pipenv==2018.7.1
4 changes: 0 additions & 4 deletions requirements/tests.txt

This file was deleted.

24 changes: 13 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py{27,36,py,py3}, docs

[testenv]
skip_install = true
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps = -rrequirements/tests.txt
commands = pytest --cov {posargs}
setenv = PIPENV_IGNORE_VIRTUALENVS=1
deps = -rrequirements/pipenv.txt
commands =
pipenv install --dev
pipenv run pytest --cov {posargs}
- pipenv run coveralls

[testenv:flake8]
deps = -rrequirements/flake8.txt
commands = flake8 .
commands =
pipenv install --dev
pipenv run flake8 {posargs}

[testenv:docs]
changedir = docs
deps = -rrequirements/docs.txt
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
commands =
pipenv install --dev
pipenv run sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html

0 comments on commit b290e24

Please sign in to comment.