chore: use python3 instead of python
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -70,7 +70,7 @@ jobs:
|
|||||||
- name: set matrix for build
|
- name: set matrix for build
|
||||||
id: set-matrix
|
id: set-matrix
|
||||||
run: |
|
run: |
|
||||||
json=$(python .github/commands/matrix)
|
json=$(python3 .github/commands/matrix)
|
||||||
echo $json
|
echo $json
|
||||||
echo "matrix=$json" >> $GITHUB_OUTPUT
|
echo "matrix=$json" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ main() {
|
|||||||
|
|
||||||
echo "====> Rebuild versions"
|
echo "====> Rebuild versions"
|
||||||
if [[ -f "tmp/docs-build/versions.json" ]]; then
|
if [[ -f "tmp/docs-build/versions.json" ]]; then
|
||||||
python contrib/sort-mkdocs-versions
|
python3 contrib/sort-mkdocs-versions
|
||||||
else
|
else
|
||||||
echo " No version file exists"
|
echo " No version file exists"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -232,7 +232,7 @@ fn-repo-update() {
|
|||||||
if [[ "$RELEASE" == 'patch' ]]; then
|
if [[ "$RELEASE" == 'patch' ]]; then
|
||||||
fn-replace-version "$CURRENT_VERSION" "$NEXT_VERSION" docs/assets/versions.json
|
fn-replace-version "$CURRENT_VERSION" "$NEXT_VERSION" docs/assets/versions.json
|
||||||
else
|
else
|
||||||
versions=$(python -c 'import json,sys;d=json.load(sys.stdin);d["max-versions"].append("'"${NEXT_VERSION}"'"); print(json.dumps(d, indent=2, sort_keys=True))' <docs/assets/versions.json)
|
versions=$(python3 -c 'import json,sys;d=json.load(sys.stdin);d["max-versions"].append("'"${NEXT_VERSION}"'"); print(json.dumps(d, indent=2, sort_keys=True))' <docs/assets/versions.json)
|
||||||
echo "$versions" >docs/assets/versions.json
|
echo "$versions" >docs/assets/versions.json
|
||||||
git add docs/assets/versions.json
|
git add docs/assets/versions.json
|
||||||
fi
|
fi
|
||||||
|
|||||||
2
docs/_build/entrypoint
vendored
2
docs/_build/entrypoint
vendored
@@ -3,7 +3,7 @@ set -eo pipefail
|
|||||||
|
|
||||||
write-mkdocs() {
|
write-mkdocs() {
|
||||||
if [[ -f /usr/src/source/contrib/write-mkdocs ]]; then
|
if [[ -f /usr/src/source/contrib/write-mkdocs ]]; then
|
||||||
if ! python /usr/src/source/contrib/write-mkdocs; then
|
if ! python3 /usr/src/source/contrib/write-mkdocs; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ For example, if the Dokku installation is configured with the domain `dokku.me`
|
|||||||
```
|
```
|
||||||
FROM ubuntu:24.04
|
FROM ubuntu:24.04
|
||||||
EXPOSE 1234
|
EXPOSE 1234
|
||||||
CMD python -m SimpleHTTPServer 1234
|
CMD python3 -m SimpleHTTPServer 1234
|
||||||
```
|
```
|
||||||
|
|
||||||
The application would be exposed to the user at `node-js-app.dokku.me:1234`. If this is not desired, the following application configuration may be applied:
|
The application would be exposed to the user at `node-js-app.dokku.me:1234`. If this is not desired, the following application configuration may be applied:
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ teardown() {
|
|||||||
echo "status: $status"
|
echo "status: $status"
|
||||||
assert_success
|
assert_success
|
||||||
|
|
||||||
run /bin/bash -c "dokku --force --quiet run $TEST_APP python -V"
|
run /bin/bash -c "dokku --force --quiet run $TEST_APP python3 -V"
|
||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
echo "status: $status"
|
echo "status: $status"
|
||||||
assert_success
|
assert_success
|
||||||
|
|||||||
Reference in New Issue
Block a user