Skip to content

Commit f3574d6

Browse files
ci: simplify project dependencies for Python 3.6
1 parent 0e5f71e commit f3574d6

File tree

4 files changed

+173
-9
lines changed

4 files changed

+173
-9
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ test:
7070
matrix:
7171
- DOCKER_IMAGE: "python:3.11"
7272
- DOCKER_IMAGE: "python:3.6"
73-
EXTRA_POETRY_ADD_ARGUMENT: "[email protected] [email protected]"
7473
USE_MOCK_SERVER: "use mock server"
7574
- DOCKER_IMAGE: "python:3.7"
7675
USE_MOCK_SERVER: "use mock server"
@@ -83,7 +82,7 @@ test:
8382
- DOCKER_IMAGE: "python:3.11"
8483
USE_MOCK_SERVER: "use mock server"
8584
- DOCKER_IMAGE: "python:3.6"
86-
85+
EXTRA_POETRY_ADD_ARGUMENT: "[email protected]"
8786
USE_MOCK_SERVER: "use mock server"
8887
- DOCKER_IMAGE: "python:3.9"
8988
EXTRA_POETRY_ADD_ARGUMENT: "[email protected]"

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -545,9 +545,6 @@ deepl-mock, run it in another terminal while executing the tests. Execute the
545545
tests using `pytest` with the `DEEPL_MOCK_SERVER_PORT` and `DEEPL_SERVER_URL`
546546
environment variables defined referring to the mock-server.
547547

548-
Note: for testing on Python 3.6, you need to install an older version of
549-
`pytest` manually, using `poetry add [email protected]`.
550-
551548
[api-docs]: https://www.deepl.com/docs-api?utm_source=github&utm_medium=github-python-readme
552549

553550
[api-docs-csv-format]: https://www.deepl.com/docs-api/managing-glossaries/supported-glossary-formats/?utm_source=github&utm_medium=github-python-readme

poetry.lock

Lines changed: 164 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,14 @@ black = "^21.4b2"
4545
pydantic = "^1.8.1"
4646
flake8 = "^3.9.2"
4747
# pytest v7.2.0 addresses a vulnerability but unfortunately only supports Python 3.7+
48-
# To test on Python 3.6 we install pytest v6.2.3 and coverage manually.
49-
pytest = { version = "^7.2.0", python = ">=3.7,<4" }
50-
coverage = {extras = ["toml"], version = "^6.5.0", python = ">=3.7,<4"}
48+
pytest = [
49+
{version = "^7.2.0", python = ">=3.7,<4"},
50+
{version = "^6.2.3", python = "<3.7"},
51+
]
52+
coverage = [
53+
{extras = ["toml"], version = "^6.5.0", python = ">=3.7,<4"},
54+
{extras = ["toml"], version = "^5.5.0", python = "<3.7"},
55+
]
5156

5257
[tool.poetry.scripts]
5358
deepl = "deepl.__main__:main"

0 commit comments

Comments
 (0)