Skip to content

Commit

Permalink
Replace pipenv with poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-stripe committed May 31, 2019
1 parent 15d0338 commit d601fc0
Show file tree
Hide file tree
Showing 11 changed files with 78 additions and 438 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
*.egg
*.class

# Poetry lock file
poetry.lock

# Unit test / coverage reports
.tox/
.coverage
Expand Down
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ matrix:
cache:
directories:
- stripe-mock
- "${HOME}/.cache/pypoetry"
pip: true

env:
Expand All @@ -37,7 +38,10 @@ before_install:
- export PATH="${PATH}:${PWD}/stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}"

install:
- make init
- pip install --upgrade pip
- curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
- source ${HOME}/.poetry/env
- poetry install -v

script:
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then make lint; fi
Expand Down
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

22 changes: 6 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,17 @@
init:
# Pin pipenv to 2018.10.13 because further releases are incompatible with
# PyPy3. The issue was fixed in https://github.com/pypa/pipenv/pull/3322
# but no new version has been released yet.
# Also pin pip to 18.x because with more recent versions, we'd need to
# pass `--no-use-pep517`, which pipenv doesn't let us do. Cf.
# https://github.com/pypa/pipenv/issues/3651
pip install --upgrade pip~=18.0 pipenv==2018.10.13
pipenv install --dev --skip-lock

test:
pipenv run tox -p auto
poetry run tox -p auto

ci:
pipenv run pytest --cov=stripe
poetry run pytest --cov=stripe

coveralls:
pipenv run coveralls
poetry run coveralls

fmt:
pipenv run tox -e fmt
poetry run tox -e fmt

fmtcheck:
pipenv run tox -e fmt -- --check --verbose
poetry run tox -e fmt -- --check --verbose

lint:
pipenv run tox -e lint
poetry run tox -e lint
19 changes: 0 additions & 19 deletions Pipfile

This file was deleted.

307 changes: 0 additions & 307 deletions Pipfile.lock

This file was deleted.

Loading

0 comments on commit d601fc0

Please sign in to comment.