Skip to content

Commit 1412d86

Browse files
authored
Merge pull request #120 from alexjrk/feature/update-poetry-and-pyproject
🧹 Update poetry and pyproject
2 parents 5a7f1ea + 84283eb commit 1412d86

File tree

8 files changed

+105
-59
lines changed

8 files changed

+105
-59
lines changed

.github/workflows/lint-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Install and configure Poetry
2020
uses: snok/install-poetry@v1
2121
with:
22-
version: 1.5.1
22+
version: 2.1.3
2323
- name: Install dependencies
2424
run: |
2525
poetry env use '3.10'

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install and configure Poetry
2222
uses: snok/install-poetry@v1
2323
with:
24-
version: 1.5.1
24+
version: 2.1.3
2525
- name: Install dependencies
2626
run: poetry install
2727
- name: Build distributions

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Install and configure Poetry
2525
uses: snok/install-poetry@v1
2626
with:
27-
version: 1.5.1
27+
version: 2.1.3
2828

2929
- name: Install dependencies
3030
run: |

RELEASING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Make sure the version number has been updated. Do this by updating the version in `./pyproject.toml`:
1010

1111
```toml
12-
[tool.poetry]
12+
[project]
1313
name = "wiremock"
1414
version = "2.7.0"
1515
```

poetry.lock

Lines changed: 79 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
[tool.poetry]
1+
[project]
22
name = "wiremock"
33
version = "2.7.0"
44
description = "Wiremock Admin API Client"
5-
authors = ["Cody Lee <[email protected]>", "Mike Waites <[email protected]>"]
6-
license = "OSI Approved :: Apache Software License"
7-
packages = [{include = "wiremock"}]
5+
authors = [
6+
{name = "Cody Lee", email = "[email protected]"},
7+
{name = "Mike Waites", email = "[email protected]"}
8+
]
89
readme = "README.md"
9-
classifiers=[
10+
classifiers = [
1011
"Development Status :: 5 - Production/Stable",
1112
"Environment :: Web Environment",
1213
"Environment :: Other Environment",
@@ -15,11 +16,11 @@ classifiers=[
1516
"License :: OSI Approved :: Apache Software License",
1617
"Operating System :: OS Independent",
1718
"Natural Language :: English",
18-
"Programming Language :: Python :: 3.7",
19-
"Programming Language :: Python :: 3.8",
2019
"Programming Language :: Python :: 3.9",
2120
"Programming Language :: Python :: 3.10",
2221
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: 3.13",
2324
"Programming Language :: Python :: Implementation",
2425
"Topic :: Internet :: WWW/HTTP",
2526
"Topic :: Software Development :: Testing",
@@ -28,13 +29,19 @@ classifiers=[
2829
"Topic :: Software Development :: Quality Assurance",
2930
"Topic :: Software Development :: Libraries :: Python Modules",
3031
]
32+
requires-python = ">=3.9, <3.14"
33+
dependencies = [
34+
"requests>=2.32.4"
35+
]
3136

32-
[tool.poetry.dependencies]
33-
python = "^3.9 | ^3.10 | ^3.11 | ^3.12 | ^3.13"
34-
requests = "^2.20.0"
35-
importlib-resources = "^5.12.0"
36-
docker = {version = "^7.1.0", optional = true}
37-
testcontainers = {version = "^3.7.1", optional = true}
37+
[project.optional-dependencies]
38+
testing = [
39+
"docker>=7.1.0",
40+
"testcontainers>=3.7.1,<4.0.0",
41+
]
42+
43+
[tool.poetry]
44+
packages = [{include = "wiremock"}]
3845

3946
[tool.poetry.group.dev.dependencies]
4047
black = "^23.3.0"
@@ -51,9 +58,6 @@ pytest = "^7.3.1"
5158
mkdocs = "^1.3.0"
5259
markdown_include = "^0.8.1"
5360

54-
[tool.poetry.extras]
55-
testing = ["docker", "testcontainers"]
56-
5761
[tool.pytest.ini_options]
5862
markers = [
5963
"unit: marks tests as unit tests",
@@ -63,11 +67,6 @@ markers = [
6367
"serialization",
6468
]
6569

66-
[build-system]
67-
requires = ["poetry-core"]
68-
build-backend = "poetry.core.masonry.api"
69-
70-
7170
[tool.black]
7271
exclude = '''
7372
/(

tests/test_server/test_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import pytest
66
import responses
7-
from importlib_resources import files
7+
from importlib.resources import files
88

99
from tests.utils import assertEqual, assertIsInstance
1010
from wiremock.server.exceptions import (

wiremock/server/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from subprocess import PIPE, STDOUT, Popen
77

88
import requests
9-
from importlib_resources import files
9+
from importlib.resources import files
1010

1111
from wiremock.server.exceptions import (
1212
WireMockServerAlreadyStartedError,

0 commit comments

Comments
 (0)