Skip to content

Commit

Permalink
Use pipenv for managing developement virtualenv
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-stripe committed Mar 13, 2018
1 parent f06b7e0 commit 160278c
Show file tree
Hide file tree
Showing 6 changed files with 417 additions and 20 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ before_install:
STRIPE_MOCK_PID=$!
install:
- pip install -U setuptools pip flake8 coveralls
- python setup.py install
- pip install --upgrade pipenv
- pipenv install --dev

script:
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then flake8 stripe tests; fi
- python setup.py test -a "-n 8"
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then make lint; fi
- make ci

after_success:
coveralls
make coveralls
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
test:
pipenv run detox

ci:
pipenv run py.test --cov=stripe -n 8

coveralls:
pipenv run coveralls

lint:
pipenv run tox -e lint
27 changes: 27 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[[source]]

url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"


[packages]

"stripe" = {path = ".", editable = true}


[dev-packages]

pytest = ">=3.4"
pytest-mock = ">=1.7"
pytest-xdist = ">=1.22"
pytest-cov = ">=2.5"
tox = "*"
detox = "*"
"flake8" = "*"
coveralls = "*"


[requires]

python_version = "3.6"
Loading

0 comments on commit 160278c

Please sign in to comment.