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: DEVELOPMENT.md
+13-21Lines changed: 13 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,49 +20,41 @@ In the ``root directory`` of this repository you will find a script called ``cre
20
20
When executing this script, it expects exactly one argument: the new name of the release / tag.
21
21
Here you need to provide always the syntax ``X.X.X``, e.g. ``0.1.9``, ``0.5.0`` or ``1.0.0``.
22
22
23
-
The script will do two things automatically for you:
24
-
1. Updating the version string in the **[\_\_about\_\_.py](src/Tables/__about__.py)**
25
-
2. Creating & Pushing a new tag to GitHub.
23
+
The package version is read from the Git tag. No version file needs to be changed or committed. Create and push a tag from the desired commit:
26
24
27
-
Execute the following command to create a new release:
28
25
```
29
26
cd <project-root-directory>
30
-
./create_release.sh 1.0.0
27
+
git checkout main
28
+
git pull origin main
29
+
git tag -a v1.0.0 -m "Release v1.0.0"
30
+
git push origin v1.0.0
31
31
```
32
32
33
-
After executing the script, three pipeline jobs are getting triggered automatically:
33
+
After pushing the tag, three pipeline jobs are triggered automatically:
34
34
1. First job creates a new ``Release`` in github with the name of the created ``Tag``.
35
-
2. Second job uploads the new wheel package to ``PyPi``with the ``__version__`` from the ``__about__.py`` file.
35
+
2. Second job builds the wheel with the version from the Git tag and uploads it to ``PyPi``.
36
36
3. Third job generates a new keyword documentation via ``libdoc`` on the main branch, but pushes it to the ``gh_pages`` where it is available as public ``GitHub Page``.
37
37
38
38
### *Backup* - Manual Version Bump & Tag Creation
39
39
40
40
If the preferred way using the ``create_release.sh`` script does not work, you can also manually create a new release.
41
41
Therefore, execute the following steps.
42
42
43
-
#### 1. Increase Version
43
+
#### Create a new tag
44
44
45
-
Open the file **[\_\_about\_\_.py](src/Tables/__about__.py)** and increase the version (``0.0.5 = major.minor.path``) before building & uploading the new python wheel package!
46
-
47
-
The new version **must be unique** & **not already existing** in ``PyPi`` & ``GitHub Releases``!!!
48
-
49
-
Commit & push the changed version into the ``main`` branch of the repository.
50
-
51
-
#### 2. Create new Tag
52
-
53
-
Now, create a new tag from the main branch with the syntax ``vX.X.X`` -> example: ``v1.0.5``.
45
+
Create a new tag from the desired commit with the syntax ``vX.X.X``. The version must be unique in PyPI and GitHub Releases.
54
46
55
47
Use the following commands to create & push the tag:
#### Creating GitHub Release & Deploy Wheel Package to PyPi
62
54
63
55
After pushing the new tag, three pipeline jobs are getting triggered automatically:
64
56
1. First job creates a new ``Release`` in github with the name of the created ``Tag``.
65
-
2. Second job uploads the new wheel package to ``PyPi``with the ``__version__`` from the ``__about__.py`` file.
57
+
2. Second job builds the wheel with the version from the Git tag and uploads it to ``PyPi``.
66
58
3. Third job generates a new keyword documentation via ``libdoc`` on the main branch, but pushes it to the ``gh_pages`` where it is available as public ``GitHub Page``.
0 commit comments