-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Python 3.13 JIRA: PSDK-215 risk: low
- Loading branch information
Showing
25 changed files
with
97 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.12.4 | ||
3.13.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# (C) 2021 GoodData Corporation | ||
sonar.sources=gooddata-sdk,gooddata-fdw,gooddata-pandas,gooddata-flight-server,gooddata-flexconnect | ||
sonar.exclusions=gooddata-api-client/**/* | ||
sonar.python.version=3.9, 3.10, 3.11, 3.12 | ||
sonar.python.version=3.9, 3.10, 3.11, 3.12, 3.13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# (C) 2022 GoodData Corporation | ||
sonar.sources=gooddata-sdk,gooddata-fdw,gooddata-pandas,gooddata-flight-server,gooddata-flexconnect | ||
sonar.exclusions=gooddata-api-client/**/* | ||
sonar.python.version=3.9, 3.10, 3.11, 3.12 | ||
sonar.python.version=3.9, 3.10, 3.11, 3.12, 3.13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,41 @@ | ||
FROM python:3.13-slim AS python-stage | ||
|
||
COPY . data | ||
|
||
WORKDIR data | ||
|
||
RUN pip install --no-cache-dir -r scripts/script-requirements.txt | ||
|
||
WORKDIR docs | ||
|
||
RUN python3 ../scripts/docs/json_builder.py && \ | ||
mkdir versioned_docs/latest && \ | ||
mv -f data.json versioned_docs/latest && \ | ||
python3 ../scripts/docs/python_ref_builder.py api_spec.toml versioned_docs/latest/data.json latest versioned_docs | ||
|
||
FROM node:20.18.0-bookworm-slim | ||
|
||
COPY docs docs | ||
|
||
COPY --from=python-stage data/docs/versioned_docs/latest/api-reference docs/content/en/latest/api-reference | ||
COPY --from=python-stage data/docs/versioned_docs/latest/pandas docs/content/en/latest/pandas | ||
|
||
|
||
RUN apt-get update && \ | ||
apt-get install -y git make golang-go curl && \ | ||
npm install -g hugo-extended@0.117.0 && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \ | ||
mkdir -p docs/versioned_docs/latest | ||
|
||
COPY docs docs | ||
COPY --from=python-stage data/docs/versioned_docs/latest/links.json docs/versioned_docs/latest | ||
COPY --from=python-stage data/docs/versioned_docs/latest/data.json docs/versioned_docs/latest | ||
|
||
COPY docs/content/en/latest/ docs/versioned_docs/latest/ | ||
|
||
WORKDIR docs | ||
RUN npm install | ||
RUN npm install && \ | ||
rm -rf node_modules | ||
|
||
# accessible on http://localhost:1313/latest/ | ||
ENTRYPOINT ["hugo", "server", "--bind", "0.0.0.0"] | ||
ENTRYPOINT ["hugo", "server", "-e", "dev", "--bind", "0.0.0.0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This config file overrides _default/config.toml | ||
# if hugo builds site for the environment "versioned" | ||
# (hugo -e versioned ...) | ||
|
||
# This contentDir is empty dir in Git. It needs to be | ||
# generated by an external script. | ||
contentDir = "versioned_docs" | ||
[Params] | ||
devVersion = "dev" | ||
latestVersion = "1.4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Put document versions here for every major or minor release | ||
# Every TOML list item contains the following properties: | ||
# - "version" - text that appears in versions menu | ||
# - "dirpath" - directory name (relative to contentDir) where documentation | ||
# for given version resides | ||
# - "url" - url for link in version menu. May be absolute URL. | ||
# - "latestTag" - docker image tag for the latest patch version. Must be changed | ||
# on every patch release of respective branch | ||
[[versions]] | ||
version = "1.32" | ||
dirpath = "latest" | ||
url = "/latest/" | ||
[[versions]] | ||
version = "1.32" | ||
dirpath = "latest" | ||
url = "/123/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters