Skip to content

Commit 83dc564

Browse files
authored
Move Pipfile to poetry (#613)
2 parents 7b62044 + 76af606 commit 83dc564

File tree

9 files changed

+1654
-891
lines changed

9 files changed

+1654
-891
lines changed

.travis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,19 @@ matrix:
2929
finish_fast: true
3030
allow_failures:
3131
- env: TMUX_VERSION=master
32+
- python: pypy3
3233
cache:
3334
- pip
3435
- apt
3536
- directories:
3637
- ~/source
3738
- ~/build
39+
before_install:
40+
- pip install poetry
41+
- poetry --version
42+
- poetry version
3843
install:
39-
- pip install -e .
40-
- pip install -r requirements/test.txt
41-
- pip install -r requirements/dev.txt
44+
- poetry install -v
4245
before_script:
4346
- mkdir -p ~/source
4447
- mkdir -p ~/build/tmux-$TMUX_VERSION
@@ -51,7 +54,7 @@ before_script:
5154
- cd $TRAVIS_BUILD_DIR
5255
- tmux -V
5356
script:
54-
- py.test --cov
57+
- poetry run py.test --cov
5558
- make flake8
5659
addons:
5760
apt:

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ current
1111
- Travis: Only run on master and PRs one time
1212
- Travis: Add caching for tmux builds
1313
- Travis: Test 2.9 and 3.0a
14+
- :issue:`613`: Move from Pipenv to Poetry
1415

1516
1.5.4 <2019-11-06>
1617
------------------

Makefile

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ entr_warn:
99
@echo "----------------------------------------------------------"
1010

1111
isort:
12-
isort `${PY_FILES}`
12+
poetry run isort `${PY_FILES}`
1313

1414
black:
15-
black `${PY_FILES}` --skip-string-normalization
15+
poetry run black `${PY_FILES}` --skip-string-normalization
1616

1717
test:
18-
py.test $(test)
18+
poetry run py.test $(test)
1919

2020
watch_test:
2121
if command -v entr > /dev/null; then ${PY_FILES} | entr -c $(MAKE) test; else $(MAKE) test entr_warn; fi
@@ -27,14 +27,7 @@ watch_docs:
2727
cd doc && $(MAKE) watch_docs
2828

2929
flake8:
30-
flake8 tmuxp tests
30+
poetry run flake8 tmuxp tests
3131

3232
watch_flake8:
3333
if command -v entr > /dev/null; then ${PY_FILES} | entr -c $(MAKE) flake8; else $(MAKE) flake8 entr_warn; fi
34-
35-
sync_pipfile:
36-
pipenv install --skip-lock --dev -r requirements/doc.txt && \
37-
pipenv install --skip-lock --dev -r requirements/dev.txt && \
38-
pipenv install --skip-lock --dev -r requirements/test.txt && \
39-
pipenv install --skip-lock --dev -e . && \
40-
pipenv install --skip-lock -r requirements/base.txt

Pipfile

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)