Skip to content

Commit 4fdb62c

Browse files
prusnakmatejcik
authored andcommitted
chore(python): replace pipenv with poetry
1 parent 98ea241 commit 4fdb62c

24 files changed

+133
-1036
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ variables:
1717
# Apply timeout to pytest-based tests
1818
PYTEST_TIMEOUT: "300"
1919

20-
# Pipenv cache
21-
PIPENV_VENV_IN_PROJECT: "true"
22-
PIPENV_CACHE_DIR: ".cache/"
23-
2420
# No need for TLS because everything runs on the same machine
2521
DOCKER_TLS_CERTDIR: ""
2622
stages:
@@ -33,7 +29,7 @@ stages:
3329

3430
before_script:
3531
- . $HOME/.nix-profile/etc/profile.d/nix.sh || true
36-
- nix-shell --run "pipenv sync"
32+
- nix-shell --run "poetry install"
3733
- export LEGACY_VERSION=$(nix-shell --run "./tools/version.sh legacy/firmware/version.h")
3834
- export CORE_VERSION=$(nix-shell --run "./tools/version.sh core/embed/firmware/version.h")
3935

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ env:
2222

2323
install:
2424
- pip install --upgrade pip wheel setuptools
25-
- pip install pipenv
26-
- pipenv sync
27-
# make sure pipenv is installable without protobuf - install protoc later
25+
- pip install poetry
26+
- poetry install
27+
# make sure poetry is installable without protobuf - install protoc later
2828
- curl -LO "https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-linux-x86_64.zip"
2929
- unzip "protoc-${PROTOBUF_VERSION}-linux-x86_64.zip" -d protoc
3030
- export PATH="$(pwd)/protoc/bin:$PATH"
3131

3232
script:
33-
- pipenv run make style_check
34-
- pipenv run make defs_check
35-
- pipenv run make gen_check
33+
- poetry run make style_check
34+
- poetry run make defs_check
35+
- poetry run make gen_check
3636
- ci/check_fixup.sh
3737

3838
notifications:

Pipfile

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

0 commit comments

Comments
 (0)