Skip to content

Commit c13be14

Browse files
authored
Merge pull request gooddata#1194 from hkad98/jkd/uv
chore: fully utilize uv runner in tox
2 parents cca72f4 + 3b55048 commit c13be14

File tree

33 files changed

+345
-307
lines changed

33 files changed

+345
-307
lines changed

.github/workflows/rw-python-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
if: ${{inputs.changed-python-modules == 'true'}}
1212
strategy:
1313
matrix:
14-
python_version: [py313, py312, py311, py310, py39]
14+
python_version: [py313, py312, py311, py310]
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4

.sonar.settings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# (C) 2021 GoodData Corporation
22
sonar.sources=gooddata-sdk,gooddata-fdw,gooddata-pandas,gooddata-flight-server,gooddata-flexconnect
33
sonar.exclusions=gooddata-api-client/**/*
4-
sonar.python.version=3.9, 3.10, 3.11, 3.12, 3.13
4+
sonar.python.version=3.10, 3.11, 3.12, 3.13

.sonarcloud.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# (C) 2022 GoodData Corporation
22
sonar.sources=gooddata-sdk,gooddata-fdw,gooddata-pandas,gooddata-flight-server,gooddata-flexconnect
33
sonar.exclusions=gooddata-api-client/**/*
4-
sonar.python.version=3.9, 3.10, 3.11, 3.12, 3.13
4+
sonar.python.version=3.10, 3.11, 3.12, 3.13

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Getting Started
44

5-
1. Ensure you have at minimum Python 3.13 installed; Python 3.12, 3.11, 3.10 and 3.9 are optional for multi-environment tests
5+
1. Ensure you have at minimum Python 3.13 installed; Python 3.12, 3.11 and 3.10 are optional for multi-environment tests
66

77
This repo uses [tox](https://tox.readthedocs.io/en/latest/) and by default will try to run tests against all
88
supported versions. If you have only subset of supported python interpreters installed, see
@@ -149,7 +149,7 @@ Here are the options how to run the tests:
149149
- or execute `tox` command with arguments of your choice
150150
```bash
151151
cd packages/gooddata-sdk
152-
tox -e py39
152+
tox -e py310
153153
```
154154
- run tests for all non-client projects using `make test` in project root directory
155155
@@ -213,9 +213,9 @@ venv automatically. So when docker tox tests are executed after localhost tests
213213
cd packages/gooddata-sdk
214214
make test-ci
215215
```
216-
- run all tests containing `http_headers` in name for py310 and py39 for all projects
216+
- run all tests containing `http_headers` in name for py311 and py310 for all projects
217217
```bash
218-
TEST_ENVS=py310,py39 ADD_ARGS="-k http_headers" make test-ci
218+
TEST_ENVS=py311,py310 ADD_ARGS="-k http_headers" make test-ci
219219
```
220220
- run tests on localhost against all-in-one image started with docker-compose
221221
```bash

ci_tests.mk

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# (C) 2021 GoodData Corporation
2-
IN_TEST_ENVS = py313,py312,py311,py310,py39
2+
IN_TEST_ENVS = py313,py312,py311,py310
33
ifdef TEST_ENVS
44
IN_TEST_ENVS = $(TEST_ENVS)
55
endif
@@ -35,10 +35,6 @@ endif
3535

3636

3737
# Targets to build docker file for each python version
38-
.PHONY: test-ci-py39-build
39-
test-ci-py39-build: Dockerfile
40-
docker build --build-arg "PY_TAG=3.9.20-slim-bookworm" --build-arg "ENV_TAG=py39" -t python-sdk:py39 .
41-
4238
.PHONY: test-ci-py310-build
4339
test-ci-py310-build: Dockerfile
4440
docker build --build-arg "PY_TAG=3.10.15-slim-bookworm" --build-arg "ENV_TAG=py310" -t python-sdk:py310 .

docs/content/en/latest/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ weight: 11
66

77
Before installing, ensure you are using:
88

9-
* Python `3.9` or newer
9+
* Python `3.10` or newer
1010
* [GoodData.CN](https://www.gooddata.com/docs/cloud-native/latest/install/) or [GoodData Cloud](https://www.gooddata.com/docs/cloud/getting-started/)
1111
* The [pip](https://pypi.org/project/pip/) package management tool
1212

docs/content/en/latest/pandas-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pip install gooddata-pandas
1919

2020
### Requirements
2121

22-
- Python 3.9 or newer
22+
- Python 3.10 or newer
2323
- GoodData.CN or GoodData Cloud
2424

2525

packages/gooddata-dbt/mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ disallow_untyped_defs = True
55
warn_redundant_casts = True
66
strict_equality = True
77
no_implicit_optional = True
8-
python_version = 3.9
8+
python_version = 3.10
99

1010
[mypy-gooddata_api_client.*]
1111
ignore_missing_imports = True

packages/gooddata-dbt/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ license = {text = "MIT"}
88
authors = [
99
{name = "GoodData", email = "[email protected]"}
1010
]
11-
requires-python = ">=3.9.0"
11+
requires-python = ">=3.10"
1212
dependencies = [
1313
"gooddata-sdk~=1.53.0",
1414
"pyyaml>=6.0",

packages/gooddata-dbt/tox.ini

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
11
# (C) 2023 GoodData Corporation
22
[tox]
3-
envlist = py3{9,10,11,12,13}
3+
envlist = py3{10,11,12,13}
44

55
[testenv]
6+
runner = uv-venv-lock-runner
67
package = wheel
78
wheel_build_env = .pkg
8-
deps =
9-
-e../../gooddata-api-client
10-
-e../gooddata-sdk
11-
-e../tests-support
12-
setenv=
13-
PYTHONDONTWRITEBYTECODE=1
9+
dependency_groups =
10+
test
1411
commands =
15-
uv pip install --group test
1612
pytest -v --cov=src/gooddata_dbt --cov-report=xml tests {posargs}
1713

1814
[testenv:mypy]
19-
basepython = python3.13
15+
runner = uv-venv-lock-runner
2016
skip_install = true
21-
deps =
22-
-e../../gooddata-api-client
23-
-e../gooddata-sdk
17+
dependency_groups =
18+
type
2419
commands =
25-
uv pip install --group type
2620
mypy src/gooddata_dbt

0 commit comments

Comments
 (0)