You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: RELEASE.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,6 @@ but we also have a [PyPi](#release-to-pypi) repository for Python package distri
24
24
25
25
## Prepare
26
26
27
-
* Change `version` in `setup.py`.
28
27
* Remove `sphinx-multiversion` dependency in `setup.py`, we still can not fix this issue
29
28
[Distribute tarball and wheel error with direct dependency](https://github.com/apache/dolphinscheduler/issues/12238)
30
29
* Change `version_ext` about the dolphinscheduler version current support, the syntax is respect [pep-044](https://peps.python.org/pep-0440/#version-specifiers)
@@ -40,14 +39,21 @@ upload package to PyPi. You could first install and upgrade them by:
40
39
# Install or upgrade dependencies
41
40
python3 -m pip install --upgrade pip build twine
42
41
42
+
# Change version
43
+
# For macOS
44
+
sed -i ''"s/__version__ = \".*\"/__version__ = \"${VERSION}\"/" src/pydolphinscheduler/__init__.py
45
+
# For Linux
46
+
sed -i "s/__version__ = \".*\"/__version__ = \"${VERSION}\"/" src/pydolphinscheduler/__init__.py
47
+
git commit -am "Release v${VERSION}"
48
+
43
49
# Add Tag
44
50
VERSION=<VERSION># The version of the package you want to release, e.g. 1.2.3
45
51
REMOTE=<REMOTE># The git remote name, we usually use `origin` or `remote`
46
52
git tag -a "${VERSION}" -m "Release v${VERSION}"
47
53
git push "${REMOTE}" --tags
48
54
49
55
# Build
50
-
python setup.py pre_clean&& python -m build
56
+
python setup.py clean&& python -m build
51
57
52
58
# Sign
53
59
cd dist
@@ -210,7 +216,7 @@ Vote result should follow these:
210
216
TestPyPi is a test environment of PyPi, you could release to it to test whether the package is work or not.
211
217
212
218
1. Create an account in [TestPyPi](https://test.pypi.org/account/register/).
213
-
2. Clean unrelated files in `dist` directory, and build package `python3 setup.py pre_clean`.
219
+
2. Clean unrelated files in `dist` directory, and build package `python3 setup.py clean`.
214
220
3. Build package `python3 -m build`, and you will see two new files in `dist` directory, with extension
0 commit comments