Skip to content

Commit

Permalink
Migrate to Poetry 2.0 (#58)
Browse files Browse the repository at this point in the history
* migrate pyproject

* update ci versions
  • Loading branch information
freddyheppell authored Jan 20, 2025
1 parent f64ca64 commit 29752f9
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,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: Setup Python 3.8
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.8
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 @@ -25,7 +25,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: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_integration.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: Setup 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 @@ -19,7 +19,7 @@ build:
post_create_environment:
# Install poetry
# https://python-poetry.org/docs/#installing-manually
- pip install poetry
- pip install poetry==2.0.1
post_install:
# Install dependencies with 'docs' dependency group
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
Expand Down
4 changes: 2 additions & 2 deletions poetry.lock

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

39 changes: 25 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,36 @@
[tool.poetry]
[project]
name = "ultimate-sitemap-parser"
version = "1.0.0"
description = "A performant library for parsing and crawling sitemaps"
authors = [
"Linas Valiukas <[email protected]>",
"Hal Roberts <[email protected]>",
"Freddy Heppell <[email protected]>"
{ name = "Linas Valiukas", email = "[email protected]>"},
{ name = "Hal Roberts", email = "[email protected]"},
{ name = "Freddy Heppell", email = "[email protected]"},
]
maintainers = [
"Freddy Heppell <[email protected]>"
{ name = "Freddy Heppell", email = "[email protected]>"},
]
license = "GPL-3.0-or-later"
readme = "README.rst"
keywords = ["sitemap", "crawler", "indexing", "xml", "rss", "atom", "google news"]
dynamic = ["classifiers"]

requires-python = ">=3.8"
dependencies = [
"python-dateutil (>=2.7,<3.0.0)",
"requests (>=2.2.1,<3.0.0)"
]

[project.urls]
homepage = "https://ultimate-sitemap-parser.readthedocs.io/"
documentation = "https://ultimate-sitemap-parser.readthedocs.io/"
repository = "https://github.com/GateNLP/ultimate-sitemap-parser"
license = "GPL-3.0-or-later"
readme = "README.rst"

[project.scripts]
usp = 'usp.cli:main'

[tool.poetry]
requires-poetry = ">=2.0"
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
Expand All @@ -26,18 +42,13 @@ classifiers=[
'Topic :: Text Processing :: Indexing',
'Topic :: Text Processing :: Markup :: XML',
]
keywords = ["sitemap", "crawler", "indexing", "xml", "rss", "atom", "google news"]
packages = [
{ include = "usp" }
]

[tool.poetry.scripts]
usp = 'usp.cli:main'

[tool.poetry.dependencies]
python = "^3.8"
python-dateutil = ">=2.7,<3.0.0"
requests = ">=2.2.1"
# Specify upper bound for locking
python = ">=3.8,<4.0"

[tool.poetry.group.dev.dependencies]
requests-mock = ">=1.6.0,<2.0"
Expand Down

0 comments on commit 29752f9

Please sign in to comment.