|
| 1 | +# 0. (If needed) Install setuptools, wheel, and twine. |
| 2 | + |
1 | 3 | # 1. Merge a working branch to the main branch first. |
2 | 4 |
|
3 | 5 | # 2. Clone the main branch in a new clean directory. |
4 | 6 |
|
5 | | -# 3. (If needed) Install setuptools and wheel. |
6 | | - |
7 | | -# 4. Create wheel and source files. |
8 | | -python2 setup.py sdist bdist_wheel (deprecated) |
9 | | -python3 setup.py sdist bdist_wheel |
10 | | - |
11 | | -# 5. (If needed) Install twine. |
| 7 | +# 3. Create wheel and source files. |
| 8 | +python3 -m build |
12 | 9 |
|
13 | | -# 6. Upload wheel and source files to the PyPI repository. |
14 | | -twine upload dist/* |
| 10 | +# 4. Upload wheel and source files to the PyPI repository. |
| 11 | +python3 -m twine upload dist/* |
15 | 12 |
|
16 | | -# 7. (Optional) Upload to Anaconda repository. |
| 13 | +# 5. (Optional) Upload to Anaconda repository. |
17 | 14 | ~/anaconda3/bin/anaconda upload dist/*.tar.gz |
18 | 15 | # or |
19 | 16 | anaconda upload dist/*.tar.gz |
20 | 17 |
|
21 | | -# 8. Publish a new release at GitHub. |
| 18 | +# 6. Publish a new release at GitHub. |
22 | 19 | ## Create a tag at GitHub. |
23 | 20 | ## Make sure that it is created in the main branch. |
24 | 21 | ## Assign the tag to a new release. |
25 | 22 | ## The name convention of tags is "v0.5.5". |
26 | 23 | ## Upload the wheel and source files, which can be downloaded from the PyPI repository, together. |
27 | 24 |
|
28 | | -# 9. Check out Zenodo or upload the release on Zenodo. |
| 25 | +# 7. Check out Zenodo or upload the release on Zenodo. |
29 | 26 | ## To upload the release, download a ZIP file from a particular tag. |
0 commit comments