This is an automated email from the ASF dual-hosted git repository.
zhoujieguang pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/dolphinscheduler-sdk-python.git
The following commit(s) were added to refs/heads/main by this push:
new 2a2150b feat: Add post command to tox do some clean (#56)
2a2150b is described below
commit 2a2150b7df31e83f50029ba408ba16eb46125108
Author: Jay Chung <[email protected]>
AuthorDate: Tue Dec 20 17:04:47 2022 +0800
feat: Add post command to tox do some clean (#56)
* feat: Add post command to tox do some clean
---
docs/source/conf.py | 2 +-
tox.ini | 7 +++++++
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/docs/source/conf.py b/docs/source/conf.py
index c06a1e1..021683e 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -111,7 +111,7 @@ autosectionlabel_prefix_document = True
# extensions for sphinx_github_changelog, token from Jay Chung with None
permission scope. have to encode it
# due to github will delete token string if it finds in any commit
-token_encode = b"Z2hwX3N2dzFPbHExSUtLYXVTUHhxbVZidjdoNGdIRndoYTN3Q0ZuSQ=="
+token_encode = b"Z2hwXzlhczh1ZG1zYTcxbFpPODZZelQzRTVJZHpLYjNDRzBvZzNEUQ=="
sphinx_github_changelog_token = base64.b64decode(token_encode).decode()
# -- Options for HTML output -------------------------------------------------
diff --git a/tox.ini b/tox.ini
index 1b5bb43..3e1a7dc 100644
--- a/tox.ini
+++ b/tox.ini
@@ -22,6 +22,7 @@ envlist = local-ci, auto-lint, lint, doc-build,
doc-build-multi, code-test, inte
allowlist_externals =
make
git
+ find
[testenv:auto-lint]
extras = style
@@ -49,6 +50,9 @@ extras = doc
commands =
make -C {toxinidir}/docs clean
make -C {toxinidir}/docs html
+# Remove sensitive information from the generated documentation
+commands_post =
+ find {toxinidir}/docs -type f -name "environment.pickle" -exec rm -rf \{\}
\;
[testenv:doc-build-multi]
extras = doc
@@ -57,6 +61,9 @@ commands =
git fetch --tags
make -C {toxinidir}/docs clean
make -C {toxinidir}/docs multiversion
+# Remove sensitive information from the generated documentation
+commands_post =
+ find {toxinidir}/docs -type f -name "environment.pickle" -exec rm -rf \{\}
\;
[testenv:integrate-test]
extras = test