Skip to content

Commit 7b0e541

Browse files
committed
fix: Fix dependency installation error for zipp
1 parent 6793087 commit 7b0e541

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.gitlab-ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,17 @@ before_script:
4444
- python3 -m venv .venv
4545
- source .venv/bin/activate
4646
- pip install --upgrade pip
47-
# Stick to Poetry 1.1.15, because with Poetry 1.2.0 there is a build issue on Python 3.6:
47+
# For py3.6, stick to Poetry 1.1.15, because with Poetry 1.2.0 there is a build issue on Python 3.6:
4848
# "pydantic-1.9.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl is not a supported wheel on this platform."
4949
# Note: Poetry and the project dependencies should also be installed in separate virtual-envs (that is not done here)
50-
- pip install poetry==1.1.15
50+
- >
51+
if [[ ! -z "${USE_OLD_POETRY_VERSION}" ]]; then
52+
echo "Installing old poetry version"
53+
pip install poetry==1.1.15
54+
else
55+
echo "Installing newer poetry version"
56+
pip install poetry==1.4.2
57+
fi
5158
- poetry --version
5259
- poetry install -vv -E keyring
5360

@@ -120,6 +127,7 @@ package:
120127
- DOCKER_IMAGE: "python:3.11"
121128
- DOCKER_IMAGE: "python:3.6"
122129
USE_MOCK_SERVER: "use mock server"
130+
USE_OLD_POETRY_VERSION: "use old poetry version"
123131
- DOCKER_IMAGE: "python:3.7"
124132
USE_MOCK_SERVER: "use mock server"
125133
- DOCKER_IMAGE: "python:3.8"
@@ -133,6 +141,7 @@ package:
133141
- DOCKER_IMAGE: "python:3.6"
134142
EXTRA_POETRY_ADD_ARGUMENT: "[email protected]"
135143
USE_MOCK_SERVER: "use mock server"
144+
USE_OLD_POETRY_VERSION: "use old poetry version"
136145
- DOCKER_IMAGE: "python:3.9"
137146
EXTRA_POETRY_ADD_ARGUMENT: "[email protected]"
138147
USE_MOCK_SERVER: "use mock server"

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
### Fixed
1010
* Removed `CHANGELOG.md` and `SECURITY.md` from the python package. The `LICENSE` file is no longer installed, but still included in package tarball and wheel files.
1111
* Thanks to [TurtleWilly](https://github.com/TurtleWilly) for the report in [#66](https://github.com/DeepLcom/deepl-python/issues/66).
12+
* Fix a dependency error in our CI by updating to a higher poetry version in most cases.
1213

1314

1415
## [1.14.0] - 2023-02-21

0 commit comments

Comments
 (0)