Skip to content

Commit 0eba8a9

Browse files
ci: migrate to Poetry 2.0 and remove --no-update references (#276)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Aaron <AJ> Steers <[email protected]>
1 parent a055174 commit 0eba8a9

File tree

10 files changed

+13
-11
lines changed

10 files changed

+13
-11
lines changed

.github/workflows/autofix-command.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
- name: Set up Poetry
7676
uses: Gr1N/setup-poetry@v9
7777
with:
78-
poetry-version: "1.8.4"
78+
poetry-version: "2.0.1"
7979
- name: Set up Python
8080
uses: actions/setup-python@v5
8181
with:

.github/workflows/pdoc_preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Poetry
1717
uses: Gr1N/setup-poetry@v9
1818
with:
19-
poetry-version: "1.8.4"
19+
poetry-version: "2.0.1"
2020
- name: Set up Python
2121
uses: actions/setup-python@v5
2222
with:

.github/workflows/pdoc_publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Set up Poetry
3434
uses: Gr1N/setup-poetry@v9
3535
with:
36-
poetry-version: "1.8.4"
36+
poetry-version: "2.0.1"
3737
- name: Set up Python
3838
uses: actions/setup-python@v5
3939
with:

.github/workflows/poetry-lock-command.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
- name: Set up Poetry
7373
uses: Gr1N/setup-poetry@v9
7474
with:
75-
poetry-version: "1.8.4"
75+
poetry-version: "2.0.1"
7676
- name: Set up Python
7777
uses: actions/setup-python@v5
7878
with:

.github/workflows/pytest_fast.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Poetry
1818
uses: Gr1N/setup-poetry@v9
1919
with:
20-
poetry-version: "1.8.4"
20+
poetry-version: "2.0.1"
2121

2222
- name: Check Poetry lock file is current
2323
run: poetry check
@@ -44,7 +44,7 @@ jobs:
4444
- name: Set up Poetry
4545
uses: Gr1N/setup-poetry@v9
4646
with:
47-
poetry-version: "1.8.4"
47+
poetry-version: "2.0.1"
4848
- name: Set up Python
4949
uses: actions/setup-python@v5
5050
with:

.github/workflows/pytest_matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
uses: Gr1N/setup-poetry@v9
6262
if: steps.changes.outputs.src == 'true'
6363
with:
64-
poetry-version: "1.8.4"
64+
poetry-version: "2.0.1"
6565
- name: Set up Python
6666
uses: actions/setup-python@v5
6767
if: steps.changes.outputs.src == 'true'

.github/workflows/python_lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Poetry
1818
uses: Gr1N/setup-poetry@v9
1919
with:
20-
poetry-version: "1.8.4"
20+
poetry-version: "2.0.1"
2121
- name: Set up Python
2222
uses: actions/setup-python@v5
2323
with:

.github/workflows/test-command.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
- name: Set up Poetry
8686
uses: Gr1N/setup-poetry@v9
8787
with:
88-
poetry-version: "1.8.4"
88+
poetry-version: "2.0.1"
8989
- name: Set up Python
9090
uses: actions/setup-python@v5
9191
with:

docs/CONTRIBUTING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ Thank you for being interested in contributing to Airbyte Python CDK! Here are s
1414
Here are some tips to get started using the project dependencies and development tools:
1515

1616
1. Clone the CDK repo. If you will be testing connectors, you should clone the CDK into the same parent directory as `airbytehq/airbyte`, which contains the connector definitions.
17-
1. Make sure [Poetry is installed](https://python-poetry.org/docs/#).
17+
1. Make sure [Poetry is installed](https://python-poetry.org/docs/#) (version 2.0 or higher).
1818
1. Run `poetry install --all-extras`.
1919
1. Unit tests can be run via `poetry run pytest`.
20+
21+
Note: By default in Poetry 2.0, `poetry lock` only refreshes the lockfile without pulling new versions. This is the same behavior as the previous `poetry lock --no-update` command.
2022
1. You can use "Poe" tasks to perform common actions such as lint checks (`poetry run poe lint`), autoformatting (`poetry run poe format-fix`), etc. For a list of tasks you can run, try `poetry run poe list`.
2123

2224
Note that installing all extras is required to run the full suite of unit tests.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ skip = ["__init__.py"] # TODO: Remove after this is fixed: https://github.com/a
120120
[tool.poe.tasks]
121121
# Installation
122122
install = { shell = "poetry install --all-extras" }
123-
lock = { shell = "poetry lock --no-update" }
123+
lock = { shell = "poetry lock" }
124124

125125
# Build tasks
126126
assemble = {cmd = "bin/generate-component-manifest-dagger.sh", help = "Generate component manifest files."}

0 commit comments

Comments
 (0)