Skip to content

Commit d2cc931

Browse files
committed
Migrate to Poetry 2.0
1 parent 126d39f commit d2cc931

File tree

6 files changed

+35
-22
lines changed

6 files changed

+35
-22
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818
- name: Install Poetry
19-
run: pipx install poetry==1.8.3
19+
run: pipx install poetry==2.0.1
2020
- name: Set up Python 3.9
2121
uses: actions/setup-python@v5
2222
with:

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616
- name: Install Poetry
17-
run: pipx install poetry==1.8.3
17+
run: pipx install poetry==2.0.1
1818
- name: Set up Python 3.9
1919
uses: actions/setup-python@v5
2020
with:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v4
2323
- name: Install Poetry
24-
run: pipx install poetry==1.8.3
24+
run: pipx install poetry==2.0.1
2525
- name: Set up Python ${{ matrix.python-version }}
2626
uses: actions/setup-python@v5
2727
with:

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ build:
1010
python: "3.9"
1111
jobs:
1212
post_create_environment:
13-
- pip install poetry==1.8.3
13+
- pip install poetry==2.0.1
1414
post_install:
1515
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs
1616

poetry.lock

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

pyproject.toml

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,39 @@
1-
[tool.poetry]
1+
[project]
22
name="wpextract"
33
version="1.1.0"
44
description="Create datasets from WordPress sites"
5+
authors=[
6+
{ name = "Freddy Heppell", email = "f.heppell@sheffield.ac.uk" }
7+
]
8+
license="Apache-2.0"
9+
readme = "README.md"
10+
dynamic = ["classifiers"]
11+
requires-python = ">=3.9"
12+
13+
dependencies = [
14+
"beautifulsoup4>=4.12.0",
15+
"langcodes>=3.3.0",
16+
"lxml>=5.0.0",
17+
"numpy>=1.23.0",
18+
"pandas>=1.5.2",
19+
"tqdm>=4.65.0",
20+
"requests>=2.32.3",
21+
"click>=8.0.1",
22+
"click-option-group>=0.5.3",
23+
"urllib3>1.21.3,<3"
24+
]
25+
26+
[project.urls]
527
homepage="https://wpextract.readthedocs.io/"
628
documentation="https://wpextract.readthedocs.io/"
729
repository="https://github.com/GateNLP/wpextract"
8-
license="Apache-2.0"
9-
readme = "README.md"
10-
authors=["Freddy Heppell <frheppell1@sheffield.ac.uk>"]
30+
31+
[project.scripts]
32+
wpextract = "wpextract.cli:cli"
33+
34+
35+
[tool.poetry]
36+
1137
classifiers = [
1238
"Development Status :: 5 - Production/Stable",
1339
"Environment :: Console",
@@ -20,26 +46,13 @@ packages=[
2046
{ include = "wpextract", from = "src"}
2147
]
2248

23-
[tool.poetry.scripts]
24-
wpextract = "wpextract.cli:cli"
25-
2649
# Workaround for https://github.com/python-poetry/poetry/issues/9293
2750
[[tool.poetry.source]]
2851
name = "pypi-public"
2952
url = "https://pypi.org/simple/"
3053

3154
[tool.poetry.dependencies]
3255
python = ">=3.9.0,<4.0"
33-
beautifulsoup4 = ">=4.12.0"
34-
langcodes = ">=3.3.0"
35-
lxml = ">=5.0.0"
36-
numpy = ">=1.23.0"
37-
pandas = ">=1.5.2"
38-
tqdm = ">=4.65.0"
39-
requests = ">=2.32.3"
40-
click = ">=8.0.1"
41-
click-option-group = ">=0.5.3"
42-
urllib3 = ">1.21.3,<3"
4356

4457
[tool.poetry.group.dev.dependencies]
4558
build = "==0.9.*,>=0.9.0"

0 commit comments

Comments
 (0)