Skip to content

Commit cb379dc

Browse files
authored
Refactor/set poetry version in pyproject (#407)
* Update pyproject.toml to indicate that poetry above a certain version should be used * Remove unneeded quotations * Update poetry dependencies * Update JamesIves/github-pages-deploy-action * Update actions/upload-artifact * Update actions/download-artifact
1 parent e05da01 commit cb379dc

File tree

10 files changed

+267
-252
lines changed

10 files changed

+267
-252
lines changed

.github/workflows/checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
run: poetry run -- nox -s lint:code
7878

7979
- name: Upload Artifacts
80-
uses: actions/upload-artifact@v4.6.0
80+
uses: actions/upload-artifact@v4.6.2
8181
with:
8282
name: lint-python${{ matrix.python-version }}
8383
path: |
@@ -126,7 +126,7 @@ jobs:
126126
run: poetry run -- nox -s lint:security
127127

128128
- name: Upload Artifacts
129-
uses: actions/upload-artifact@v4.6.0
129+
uses: actions/upload-artifact@v4.6.2
130130
with:
131131
name: security-python${{ matrix.python-version }}
132132
path: .security.json
@@ -169,7 +169,7 @@ jobs:
169169
run: poetry run -- nox -s test:unit -- --coverage
170170

171171
- name: Upload Artifacts
172-
uses: actions/upload-artifact@v4.6.0
172+
uses: actions/upload-artifact@v4.6.2
173173
with:
174174
name: coverage-python${{ matrix.python-version }}-fast
175175
path: .coverage

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
poetry run -- nox -s docs:multiversion
2424
2525
- name: Deploy
26-
uses: JamesIves/github-pages-deploy-action@v4.7.2
26+
uses: JamesIves/github-pages-deploy-action@v4.7.3
2727
with:
2828
branch: gh-pages
2929
folder: .html-documentation

.github/workflows/report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: ./.github/actions/python-environment
2121

2222
- name: Download Artifacts
23-
uses: actions/download-artifact@v4.1.8
23+
uses: actions/download-artifact@v4.2.1
2424
with:
2525
path: ./artifacts
2626

@@ -41,7 +41,7 @@ jobs:
4141
run: poetry run -- nox -s project:report -- --format json | tee metrics.json
4242

4343
- name: Upload Artifacts
44-
uses: actions/upload-artifact@v4.6.0
44+
uses: actions/upload-artifact@v4.6.2
4545
with:
4646
name: metrics.json
4747
path: metrics.json

.github/workflows/slow-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: poetry run -- nox -s test:integration -- --coverage --db-version ${{ matrix.exasol-version }}
3737

3838
- name: Upload Artifacts
39-
uses: actions/upload-artifact@v4.6.0
39+
uses: actions/upload-artifact@v4.6.2
4040
with:
4141
name: coverage-python${{ matrix.python-version }}-slow
4242
path: .coverage

exasol/toolbox/templates/github/workflows/checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
run: poetry run -- nox -s lint:code
8484

8585
- name: Upload Artifacts
86-
uses: actions/upload-artifact@v4.6.0
86+
uses: actions/upload-artifact@v4.6.2
8787
with:
8888
name: lint-python${{ matrix.python-version }}
8989
path: |
@@ -132,7 +132,7 @@ jobs:
132132
run: poetry run -- nox -s lint:security
133133

134134
- name: Upload Artifacts
135-
uses: actions/upload-artifact@v4.6.0
135+
uses: actions/upload-artifact@v4.6.2
136136
with:
137137
name: security-python${{ matrix.python-version }}
138138
path: .security.json
@@ -175,7 +175,7 @@ jobs:
175175
run: poetry run -- nox -s test:unit -- --coverage
176176

177177
- name: Upload Artifacts
178-
uses: actions/upload-artifact@v4.6.0
178+
uses: actions/upload-artifact@v4.6.2
179179
with:
180180
name: coverage-python${{ matrix.python-version }}-fast
181181
path: .coverage

exasol/toolbox/templates/github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
poetry run -- nox -s docs:multiversion
2424
2525
- name: Deploy
26-
uses: JamesIves/github-pages-deploy-action@v4.7.2
26+
uses: JamesIves/github-pages-deploy-action@v4.7.3
2727
with:
2828
branch: gh-pages
2929
folder: .html-documentation

exasol/toolbox/templates/github/workflows/report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: exasol/python-toolbox/.github/actions/python-environment@1.0.1
2121

2222
- name: Download Artifacts
23-
uses: actions/download-artifact@v4.1.8
23+
uses: actions/download-artifact@v4.2.1
2424
with:
2525
path: ./artifacts
2626

@@ -41,7 +41,7 @@ jobs:
4141
run: poetry run -- nox -s project:report -- --format json | tee metrics.json
4242

4343
- name: Upload Artifacts
44-
uses: actions/upload-artifact@v4.6.0
44+
uses: actions/upload-artifact@v4.6.2
4545
with:
4646
name: metrics.json
4747
path: metrics.json

exasol/toolbox/templates/github/workflows/slow-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: poetry run -- nox -s test:integration -- --coverage --db-version ${{ matrix.exasol-version }}
3737

3838
- name: Upload Artifacts
39-
uses: actions/upload-artifact@v4.6.0
39+
uses: actions/upload-artifact@v4.6.2
4040
with:
4141
name: coverage-python${{ matrix.python-version }}-slow
4242
path: .coverage

poetry.lock

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

pyproject.toml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ keywords = [
1818
]
1919

2020
[tool.poetry]
21+
requires-poetry = ">=2.1.0"
2122
packages = [
2223
{ include = "exasol" },
2324
]
@@ -29,11 +30,11 @@ include = [
2930
]
3031

3132
[poetry.urls]
32-
"Homepage" = "https://www.exasol.com/"
33-
"Documentation" = "https://exasol.github.io/python-toolbox/"
34-
"Source" = "https://github.com/exasol/python-toolbox"
35-
"Issues" = "https://github.com/exasol/python-toolbox/issues"
36-
"Changelog" = "https://exasol.github.io/python-toolbox/changelog.html"
33+
Homepage = "https://www.exasol.com/"
34+
Documentation = "https://exasol.github.io/python-toolbox/"
35+
Source = "https://github.com/exasol/python-toolbox"
36+
Issues = "https://github.com/exasol/python-toolbox/issues"
37+
Changelog = "https://exasol.github.io/python-toolbox/changelog.html"
3738

3839
[tool.poetry.dependencies]
3940
python = "^3.9"
@@ -42,7 +43,7 @@ coverage = ">=6.4.4,<8.0.0"
4243
furo = ">=2022.9.15"
4344
importlib-resources = ">=5.12.0"
4445
import-linter = "^2.0"
45-
isort = "^5.12.0"
46+
isort = "^6.0.1"
4647
mypy = ">=0.971"
4748
myst-parser = ">=2.0.0,<4"
4849
nox = ">=2022.8.7"
@@ -67,10 +68,7 @@ pip-audit = "^2.7.3"
6768
autoimport = "^1.4.0"
6869

6970
[build-system]
70-
requires = [
71-
"poetry>=2.0.0",
72-
"poetry-core"
73-
]
71+
requires = ["poetry-core>=1.0.0"]
7472
build-backend = "poetry.core.masonry.api"
7573

7674
# Tooling

0 commit comments

Comments
 (0)