Skip to content

Commit f6528ca

Browse files
authored
Merge pull request #698 from hkad98/bump
Add support for Python 3.12 and bump Pandas
2 parents 221789a + a821601 commit f6528ca

19 files changed

+30
-23
lines changed

.github/workflows/docs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4
17-
- name: Set up python 3.11
17+
- name: Set up python 3.12
1818
uses: actions/setup-python@v5
1919
with:
2020
python-version-file: '.python-version'

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

+4-4
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: [py311, py310, py39, py38]
14+
python_version: [py312, py311, py310, py39, py38]
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4
@@ -21,7 +21,7 @@ jobs:
2121
env:
2222
TEST_ENVS: ${{ matrix.python_version }}
2323
- name: Upload coverage to Codecov
24-
if: ${{ matrix.python_version == 'py311' }}
24+
if: ${{ matrix.python_version == 'py312' }}
2525
uses: codecov/codecov-action@v3
2626
with:
2727
files: ./gooddata-sdk/coverage.xml,./gooddata-pandas/coverage.xml,./gooddata-fdw/coverage.xml
@@ -31,7 +31,7 @@ jobs:
3131
steps:
3232
- name: Checkout
3333
uses: actions/checkout@v4
34-
- name: Set up Python 3.11
34+
- name: Set up Python 3.12
3535
uses: actions/setup-python@v5
3636
with:
3737
python-version-file: '.python-version'
@@ -50,7 +50,7 @@ jobs:
5050
steps:
5151
- name: Checkout
5252
uses: actions/checkout@v4
53-
- name: Set up Python 3.11
53+
- name: Set up Python 3.12
5454
uses: actions/setup-python@v5
5555
with:
5656
python-version-file: '.python-version'

.python-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.11.4
1+
3.12.4

.sonar.settings

+1-1
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
33
sonar.exclusions=gooddata-api-client/**/*
4-
sonar.python.version=3.8, 3.9, 3.10, 3.11
4+
sonar.python.version=3.8, 3.9, 3.10, 3.11, 3.12

.sonarcloud.properties

+1-1
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
33
sonar.exclusions=gooddata-api-client/**/*
4-
sonar.python.version=3.8, 3.9, 3.10, 3.11
4+
sonar.python.version=3.8, 3.9, 3.10, 3.11, 3.12

CONTRIBUTING.md

+2-2
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.11 installed; Python 3.10, 3.9 and 3.8 are optional for multi-environment tests
5+
1. Ensure you have at minimum Python 3.12 installed; Python 3.10, 3.9 and 3.8 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
@@ -21,7 +21,7 @@
2121
source .venv/bin/activate
2222
```
2323

24-
The `make dev` command will create a new Python 3.11 virtual environment in the `.venv` directory, install all
24+
The `make dev` command will create a new Python 3.12 virtual environment in the `.venv` directory, install all
2525
third party dependencies into it and setup git hooks.
2626

2727
Additionally, if you use [direnv](https://direnv.net/) you can run `direnv allow .envrc` to enable automatic

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ all:
1919
.PHONY: dev
2020
dev:
2121
rm -rf .venv
22-
python3.11 -m venv .venv --upgrade-deps
22+
python3.12 -m venv .venv --upgrade-deps
2323
.venv/bin/pip3 install -r dev-requirements.txt
2424
.venv/bin/pre-commit install
2525

ci_tests.mk

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# (C) 2021 GoodData Corporation
2-
IN_TEST_ENVS = py311,py310,py39,py38
2+
IN_TEST_ENVS = py312,py311,py310,py39,py38
33
ifdef TEST_ENVS
44
IN_TEST_ENVS = $(TEST_ENVS)
55
endif
@@ -51,6 +51,9 @@ test-ci-py310-build: Dockerfile
5151
test-ci-py311-build: Dockerfile
5252
docker build --build-arg "PY_TAG=3.11.0-slim-bullseye" --build-arg "ENV_TAG=py311" -t python-sdk:py311 .
5353

54+
.PHONY: test-ci-py312-build
55+
test-ci-py312-build: Dockerfile
56+
docker build --build-arg "PY_TAG=3.12.0-slim-bullseye" --build-arg "ENV_TAG=py312" -t python-sdk:py312 .
5457

5558
# test-ci target triggers unit tests for each requested environment
5659
.PHONY: test-ci

gooddata-dbt/setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"Programming Language :: Python :: 3.9",
4141
"Programming Language :: Python :: 3.10",
4242
"Programming Language :: Python :: 3.11",
43+
"Programming Language :: Python :: 3.12",
4344
"Topic :: Database",
4445
"Topic :: Scientific/Engineering",
4546
"Topic :: Software Development",

gooddata-dbt/tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ commands =
1616
pytest -v --cov=gooddata_dbt --cov-report=xml tests {posargs}
1717

1818
[testenv:mypy]
19-
basepython = python3.11
19+
basepython = python3.12
2020
skip_install = true
2121
deps =
2222
-r{toxinidir}/type-requirements.txt

gooddata-fdw/.readthedocs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ version: 2
99
build:
1010
os: ubuntu-22.04
1111
tools:
12-
python: "3.11"
12+
python: "3.12"
1313

1414
sphinx:
1515
configuration: gooddata-fdw/docs/conf.py

gooddata-fdw/setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"Programming Language :: Python :: 3.9",
3838
"Programming Language :: Python :: 3.10",
3939
"Programming Language :: Python :: 3.11",
40+
"Programming Language :: Python :: 3.12",
4041
"Topic :: Database",
4142
"Topic :: Scientific/Engineering",
4243
"Topic :: Software Development",

gooddata-fdw/tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ commands =
1616
pytest -v --cov=gooddata_fdw --cov-report=xml tests {posargs}
1717

1818
[testenv:mypy]
19-
basepython = python3.11
19+
basepython = python3.12
2020
skip_install = true
2121
deps =
2222
-r{toxinidir}/type-requirements.txt
@@ -27,7 +27,7 @@ commands =
2727
mypy gooddata_fdw
2828

2929
[testenv:docs]
30-
basepython = python3.11
30+
basepython = python3.12
3131
skip_install = true
3232
deps =
3333
-r{toxinidir}/docs/requirements.txt

gooddata-pandas/.readthedocs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ version: 2
99
build:
1010
os: ubuntu-22.04
1111
tools:
12-
python: "3.11"
12+
python: "3.12"
1313

1414
sphinx:
1515
configuration: gooddata-pandas/docs/conf.py

gooddata-pandas/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pandas>=1.0.0,<2.0.0
1+
pandas>=2.0.0,<3.0.0

gooddata-pandas/setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
REQUIRES = [
1010
"gooddata-sdk~=1.21.0",
11-
"pandas>=1.0.0,<2.0.0",
11+
"pandas>=2.0.0,<3.0.0",
1212
]
1313

1414
setup(
@@ -37,6 +37,7 @@
3737
"Programming Language :: Python :: 3.9",
3838
"Programming Language :: Python :: 3.10",
3939
"Programming Language :: Python :: 3.11",
40+
"Programming Language :: Python :: 3.12",
4041
"Topic :: Database",
4142
"Topic :: Scientific/Engineering",
4243
"Topic :: Software Development",

gooddata-pandas/tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ commands =
1616
pytest -v --cov=gooddata_pandas --cov-report=xml tests {posargs}
1717

1818
[testenv:mypy]
19-
basepython = python3.11
19+
basepython = python3.12
2020
skip_install = true
2121
deps =
2222
-r{toxinidir}/type-requirements.txt
@@ -26,7 +26,7 @@ commands =
2626
mypy gooddata_pandas
2727

2828
[testenv:docs]
29-
basepython = python3.11
29+
basepython = python3.12
3030
skip_install = true
3131
deps =
3232
-r{toxinidir}/docs/requirements.txt

gooddata-sdk/setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"Programming Language :: Python :: 3.9",
4343
"Programming Language :: Python :: 3.10",
4444
"Programming Language :: Python :: 3.11",
45+
"Programming Language :: Python :: 3.12",
4546
"Topic :: Database",
4647
"Topic :: Scientific/Engineering",
4748
"Topic :: Software Development",

gooddata-sdk/tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ commands =
1515
pytest -v --cov=gooddata_sdk --cov-report=xml tests {posargs}
1616

1717
[testenv:mypy]
18-
basepython = python3.11
18+
basepython = python3.12
1919
skip_install = true
2020
deps =
2121
-r{toxinidir}/type-requirements.txt
@@ -24,7 +24,7 @@ commands =
2424
mypy gooddata_sdk
2525

2626
[testenv:docs]
27-
basepython = python3.11
27+
basepython = python3.12
2828
skip_install = true
2929
setenv =
3030
CWD_TO_ROOT_RELATIVE = ".."

0 commit comments

Comments
 (0)