Skip to content

Commit

Permalink
Migrate to Poetry 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
freddyheppell committed Jan 20, 2025
1 parent 126d39f commit d2cc931
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry==1.8.3
run: pipx install poetry==2.0.1
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry==1.8.3
run: pipx install poetry==2.0.1
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry==1.8.3
run: pipx install poetry==2.0.1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ build:
python: "3.9"
jobs:
post_create_environment:
- pip install poetry==1.8.3
- pip install poetry==2.0.1
post_install:
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs

Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 30 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,39 @@
[tool.poetry]
[project]
name="wpextract"
version="1.1.0"
description="Create datasets from WordPress sites"
authors=[
{ name = "Freddy Heppell", email = "[email protected]" }
]
license="Apache-2.0"
readme = "README.md"
dynamic = ["classifiers"]
requires-python = ">=3.9"

dependencies = [
"beautifulsoup4>=4.12.0",
"langcodes>=3.3.0",
"lxml>=5.0.0",
"numpy>=1.23.0",
"pandas>=1.5.2",
"tqdm>=4.65.0",
"requests>=2.32.3",
"click>=8.0.1",
"click-option-group>=0.5.3",
"urllib3>1.21.3,<3"
]

[project.urls]
homepage="https://wpextract.readthedocs.io/"
documentation="https://wpextract.readthedocs.io/"
repository="https://github.com/GateNLP/wpextract"
license="Apache-2.0"
readme = "README.md"
authors=["Freddy Heppell <[email protected]>"]

[project.scripts]
wpextract = "wpextract.cli:cli"


[tool.poetry]

classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
Expand All @@ -20,26 +46,13 @@ packages=[
{ include = "wpextract", from = "src"}
]

[tool.poetry.scripts]
wpextract = "wpextract.cli:cli"

# Workaround for https://github.com/python-poetry/poetry/issues/9293
[[tool.poetry.source]]
name = "pypi-public"
url = "https://pypi.org/simple/"

[tool.poetry.dependencies]
python = ">=3.9.0,<4.0"
beautifulsoup4 = ">=4.12.0"
langcodes = ">=3.3.0"
lxml = ">=5.0.0"
numpy = ">=1.23.0"
pandas = ">=1.5.2"
tqdm = ">=4.65.0"
requests = ">=2.32.3"
click = ">=8.0.1"
click-option-group = ">=0.5.3"
urllib3 = ">1.21.3,<3"

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

0 comments on commit d2cc931

Please sign in to comment.