Skip to content

Commit 0bbf1aa

Browse files
fix: correct TOML structure and dependencies placement
Co-Authored-By: Aaron <AJ> Steers <aj@airbyte.io>
1 parent df25f1c commit 0bbf1aa

File tree

2 files changed

+31
-45
lines changed

2 files changed

+31
-45
lines changed

.github/workflows/python_pytest.yml

+30-37
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,22 @@ jobs:
2727
# Common steps:
2828
- name: Checkout code
2929
uses: actions/checkout@v4
30-
- name: Set up Poetry
31-
uses: Gr1N/setup-poetry@v9
32-
with:
33-
poetry-version: "2.0.1"
3430
- name: Set up Python
3531
uses: actions/setup-python@v5
3632
with:
3733
python-version: '3.10'
38-
cache: 'poetry'
34+
cache: 'pip'
35+
- name: Install uv
36+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
3937
- name: Install dependencies
40-
run: poetry install
38+
run: uv pip install -e ".[dev]"
4139

4240
- name: Run Pytest with Coverage (Fast Tests Only)
4341
timeout-minutes: 60
4442
env:
4543
GCP_GSM_CREDENTIALS: ${{ secrets.GCP_GSM_CREDENTIALS }}
4644
run: >
47-
poetry run coverage run -m pytest
45+
uv run coverage run -m pytest
4846
--durations=5 --exitfirst
4947
-m "not slow and not requires_creds and not linting and not flaky"
5048
@@ -54,19 +52,19 @@ jobs:
5452
env:
5553
GCP_GSM_CREDENTIALS: ${{ secrets.GCP_GSM_CREDENTIALS }}
5654
run: >
57-
poetry run coverage run -m pytest
55+
uv run coverage run -m pytest
5856
--durations=5 --exitfirst
5957
-m "flaky and not slow and not requires_creds"
6058
6159
- name: Print Coverage Report
6260
if: always()
63-
run: poetry run coverage report
61+
run: uv run coverage report
6462

6563
- name: Create Coverage Artifacts
6664
if: always()
6765
run: |
68-
poetry run coverage html -d htmlcov
69-
poetry run coverage xml -o htmlcov/coverage.xml
66+
uv run coverage html -d htmlcov
67+
uv run coverage xml -o htmlcov/coverage.xml
7068
7169
- name: Upload coverage to GitHub Artifacts
7270
if: always()
@@ -82,17 +80,15 @@ jobs:
8280
# Common steps:
8381
- name: Checkout code
8482
uses: actions/checkout@v4
85-
- name: Set up Poetry
86-
uses: Gr1N/setup-poetry@v9
87-
with:
88-
poetry-version: "1.7.1"
8983
- name: Set up Python
9084
uses: actions/setup-python@v5
9185
with:
9286
python-version: '3.10'
93-
cache: 'poetry'
87+
cache: 'pip'
88+
- name: Install uv
89+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
9490
- name: Install dependencies
95-
run: poetry install
91+
run: uv pip install -e ".[dev]"
9692

9793
# Job-specific step(s):
9894
- name: Run Pytest (No-Creds)
@@ -101,19 +97,19 @@ jobs:
10197
# Force this to a blank value.
10298
GCP_GSM_CREDENTIALS: ""
10399
run: >
104-
poetry run coverage run -m pytest
100+
uv run coverage run -m pytest
105101
--durations=5 --exitfirst
106102
-m "not requires_creds and not linting and not super_slow and not flaky"
107103
108104
- name: Print Coverage Report
109105
if: always()
110-
run: poetry run coverage report
106+
run: uv run coverage report
111107

112108
- name: Create Coverage Artifacts
113109
if: always()
114110
run: |
115-
poetry run coverage html -d htmlcov
116-
poetry run coverage xml -o htmlcov/coverage.xml
111+
uv run coverage html -d htmlcov
112+
uv run coverage xml -o htmlcov/coverage.xml
117113
118114
- name: Upload coverage to GitHub Artifacts
119115
if: always()
@@ -149,37 +145,35 @@ jobs:
149145
# Common steps:
150146
- name: Checkout code
151147
uses: actions/checkout@v4
152-
- name: Set up Poetry
153-
uses: Gr1N/setup-poetry@v9
154-
with:
155-
poetry-version: "1.7.1"
156148
- name: Set up Python
157149
uses: actions/setup-python@v5
158150
with:
159151
python-version: ${{ matrix.python-version }}
160-
cache: 'poetry'
152+
cache: 'pip'
153+
- name: Install uv
154+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
161155
- name: Install dependencies
162-
run: poetry install
156+
run: uv pip install -e ".[dev]"
163157

164158
# Job-specific step(s):
165159
- name: Run Pytest
166160
timeout-minutes: 60
167161
env:
168162
GCP_GSM_CREDENTIALS: ${{ secrets.GCP_GSM_CREDENTIALS }}
169163
run: >
170-
poetry run coverage run -m pytest
164+
uv run coverage run -m pytest
171165
--verbose
172166
-m "not linting and not super_slow and not flaky"
173167
174168
- name: Print Coverage Report
175169
if: always()
176-
run: poetry run coverage report
170+
run: uv run coverage report
177171

178172
- name: Create Coverage Artifacts
179173
if: always()
180174
run: |
181-
poetry run coverage html -d htmlcov
182-
poetry run coverage xml -o htmlcov/coverage.xml
175+
uv run coverage html -d htmlcov
176+
uv run coverage xml -o htmlcov/coverage.xml
183177
184178
- name: Upload coverage to GitHub Artifacts
185179
if: always()
@@ -198,14 +192,13 @@ jobs:
198192
uses: actions/setup-python@v5
199193
with:
200194
python-version: '3.10'
201-
- name: Set up Poetry
202-
uses: Gr1N/setup-poetry@v9
203-
with:
204-
poetry-version: "1.7.1"
195+
cache: 'pip'
196+
- name: Install uv
197+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
205198
- name: Install dependencies
206-
run: poetry install
199+
run: uv pip install -e ".[dev]"
207200

208201
# Job-specific step(s):
209202
- name: Run Deptry
210203
run: |
211-
poetry run deptry .
204+
uv run deptry .

pyproject.toml

+1-8
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,8 @@ authors = [
77
]
88
readme = "README.md"
99
packages = [{ include = "airbyte" }]
10-
urls = {
11-
homepage = "https://airbyte.com",
12-
repository = "https://github.com/airbytehq/pyairbyte",
13-
documentation = "https://docs.airbyte.io/"
14-
}
10+
requires-python = ">=3.10,<3.13"
1511
dependencies = [
16-
"python>=3.10,<3.13",
1712
"airbyte-api>=0.52.1,<1.0.0",
1813
"airbyte-cdk>=6.9.0,<7.0.0",
1914
"airbyte-protocol-models-pdv2>=0.13.0,<0.14.0",
@@ -43,9 +38,7 @@ dependencies = [
4338
"snowflake-connector-python>=3.12.2,<4.0.0",
4439
"snowflake-sqlalchemy>=1.6.1,<2.0.0",
4540
"structlog>=24.4.0,<25.0.0",
46-
# TODO: Remove SQLAlchemy version constraint once DuckDB engine bug is fixed (issue #423)
4741
"sqlalchemy>=1.4.51,!=2.0.36,<3.0",
48-
# TODO: Remove this arbitrary python constraint once `sqlalchemy-bigquery` has done so.
4942
"sqlalchemy-bigquery==1.12.0; python_version < '3.13'",
5043
"typing-extensions>=4.9.0",
5144
"uuid7>=0.1.0,<0.2.0"

0 commit comments

Comments
 (0)