Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Poetry to v2 #1729

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,20 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.local
key: poetry-1 # increment to reset cache
key: poetry-3 # increment to reset cache

- name: Install Poetry 📜
if: steps.poetry.outputs.cache-hit != 'true'
uses: snok/install-poetry@v1
with:
version: 1.8.5
version: 2.0.1

- name: Restore Poetry environments 📌
id: poetry-venvs
uses: actions/cache@v4
with:
path: ~/.cache/pypoetry/virtualenvs
key: poetry-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-3 # increment to reset cache
key: poetry-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-5 # increment to reset cache

- name: Create Poetry environments 📜
if: steps.poetry-venvs.outputs.cache-hit != 'true'
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"lint:root:eslint": "eslint \"**/*.{js,cjs,ts,tsx}\" --max-warnings=0",
"test": "vitest",
"support:setup": "poetry -C support/sample install && poetry -C support/h5grove install",
"support:sample": "poetry -C support/sample run python support/sample/create_h5_sample.py",
"support:h5grove": "poetry -C support/h5grove run python support/h5grove/tornado_app.py --basedir support/sample/dist",
"support:sample": "poetry -C support/sample run python create_h5_sample.py",
"support:h5grove": "poetry -C support/h5grove run python tornado_app.py --basedir ../sample/dist",
"cypress": "cypress open --e2e --browser firefox",
"cypress:run": "cypress run --e2e",
"version": "pnpm -r sync-version && git add .",
Expand Down
15 changes: 11 additions & 4 deletions support/h5grove/poetry.lock

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

19 changes: 11 additions & 8 deletions support/h5grove/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
[tool.poetry]
[project]
name = "h5grove-tornado"
version = "0.1.0"
package-mode = false
description = "h5grove tornado server for testing purposes"
authors = ["NA"]
authors = [{name = "ESRF"}]
requires-python = ">=3.12"
dependencies = [
"h5grove[tornado] (==2.3.0)",
"typing-extensions (~=4.10)"
]

[tool.poetry.dependencies]
python = "^3.12"
h5grove = {version = "2.3.0", extras = ["tornado"]}
typing-extensions = "^4.10.0"
[tool.poetry]
package-mode = false
requires-poetry = ">=2"

[build-system]
requires = ["poetry-core"]
requires = ["poetry-core>=2"]
build-backend = "poetry.core.masonry.api"
10 changes: 6 additions & 4 deletions support/sample/poetry.lock

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

19 changes: 11 additions & 8 deletions support/sample/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
[tool.poetry]
[project]
name = "sample"
version = "0.1.0"
package-mode = false
description = "Script to create HDF5 sample file for testing purposes"
authors = ["NA"]
authors = [{name = "ESRF"}]
requires-python = ">=3.12"
dependencies = [
"numpy (~=1.26)",
"h5py (~=3.10)"
]

[tool.poetry.dependencies]
python = "^3.10"
numpy = "^1.26.4"
h5py = "^3.10.0"
[tool.poetry]
package-mode = false
requires-poetry = ">=2"

[build-system]
requires = ["poetry-core"]
requires = ["poetry-core>=2"]
build-backend = "poetry.core.masonry.api"
Loading