Skip to content

Commit 4cf3900

Browse files
authored
Replace pipenv with poetry (stripe#561)
1 parent 12bf099 commit 4cf3900

11 files changed

+78
-438
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
*.egg
99
*.class
1010

11+
# Poetry lock file
12+
poetry.lock
13+
1114
# Unit test / coverage reports
1215
.tox/
1316
.coverage

.travis.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ matrix:
1616
cache:
1717
directories:
1818
- stripe-mock
19+
- "${HOME}/.cache/pypoetry"
1920
pip: true
2021

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

3940
install:
40-
- make init
41+
- pip install --upgrade pip
42+
- curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
43+
- source ${HOME}/.poetry/env
44+
- poetry install -v
4145

4246
script:
4347
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then make lint; fi

MANIFEST.in

-2
This file was deleted.

Makefile

+6-16
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,17 @@
1-
init:
2-
# Pin pipenv to 2018.10.13 because further releases are incompatible with
3-
# PyPy3. The issue was fixed in https://github.com/pypa/pipenv/pull/3322
4-
# but no new version has been released yet.
5-
# Also pin pip to 18.x because with more recent versions, we'd need to
6-
# pass `--no-use-pep517`, which pipenv doesn't let us do. Cf.
7-
# https://github.com/pypa/pipenv/issues/3651
8-
pip install --upgrade pip~=18.0 pipenv==2018.10.13
9-
pipenv install --dev --skip-lock
10-
111
test:
12-
pipenv run tox -p auto
2+
poetry run tox -p auto
133

144
ci:
15-
pipenv run pytest --cov=stripe
5+
poetry run pytest --cov=stripe
166

177
coveralls:
18-
pipenv run coveralls
8+
poetry run coveralls
199

2010
fmt:
21-
pipenv run tox -e fmt
11+
poetry run tox -e fmt
2212

2313
fmtcheck:
24-
pipenv run tox -e fmt -- --check --verbose
14+
poetry run tox -e fmt -- --check --verbose
2515

2616
lint:
27-
pipenv run tox -e lint
17+
poetry run tox -e lint

Pipfile

-19
This file was deleted.

Pipfile.lock

-307
This file was deleted.

0 commit comments

Comments
 (0)