Skip to content

Commit 08c8394

Browse files
authored
Move from Pipfile to poetry (#293)
See also: tmux-python/tmuxp#613
2 parents 33bc884 + b706ed1 commit 08c8394

12 files changed

+1541
-436
lines changed

.github/workflows/libtmux-ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
python-version: [ '3.x' ]
12-
tmux-version: [ '2.6', '2.7', '2.8', 'master' ]
12+
tmux-version: [ '2.6', '2.7', '2.8', '3.0', 'master' ]
1313
steps:
1414
- uses: actions/checkout@v1
1515
- name: Cache tmux build ${{ matrix.tmux-version }}
@@ -43,18 +43,18 @@ jobs:
4343
python-version: ${{ matrix.python-version }}
4444
- name: Install python dependencies
4545
run: |
46-
python -m pip install --upgrade pip pipenv setuptools
47-
pipenv install -d --system --skip-lock
46+
python -m pip install --upgrade poetry
47+
poetry install
4848
- name: Lint with flake8
4949
run: |
50-
pipenv run flake8
50+
poetry run flake8
5151
- name: Test with pytest
5252
continue-on-error: ${{ matrix.tmux-version == 'master' }}
5353
run: |
5454
export PATH=$HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin:$PATH
5555
ls $HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin
5656
tmux -V
57-
pipenv run py.test --cov=./ --cov-report=xml
57+
poetry run py.test --cov=./ --cov-report=xml
5858
- uses: codecov/codecov-action@v1
5959
with:
6060
token: ${{ secrets.CODECOV_TOKEN }}

.tmuxp-before-script.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
poetry shell --no-ansi --no-interaction &2> /dev/null
3+
poetry install --no-ansi --no-interaction &2> /dev/null

.tmuxp.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
session_name: libtmux
22
start_directory: ./ # load session relative to config location (project root).
3-
before_script: pipenv install --dev --skip-lock
4-
shell_command_before:
5-
- '[ -d `pipenv --venv` ] && source `pipenv --venv`/bin/activate && reset'
3+
before_script: ./.tmuxp-before-script.sh
4+
shell_command_before:
5+
- '[ -f .venv/bin/activate ] && source .venv/bin/activate && reset'
66
windows:
77
- window_name: libtmux
88
focus: True

CHANGES

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Changelog
55
Here you can find the recent changes to libtmux
66

77
- Add ``project_urls`` to setup.py
8+
- :issue:`293` Move from Pipfile to poetry
9+
- Fix show_option test in tmux 3.0
10+
- Clean up handle_option_error comments
811

912
0.8.2 <2019-06-02>
1013
------------------

Pipfile

-22
This file was deleted.

0 commit comments

Comments
 (0)