Skip to content

Commit a192c2b

Browse files
authored
Merge pull request #18 from transloadit/release-doc
docs: add documentation on publishing releases
2 parents 35789c5 + 6863746 commit a192c2b

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

RELEASE.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
## HOWTO Release ##
2+
3+
This is a Howto guide on the commands to run and files to update in order to publish a new release of the Python SDK to Pypi
4+
5+
### Prerequisite
6+
7+
You need to have `twine`, `pypandoc`, and `pandoc` installed.
8+
9+
```bash
10+
pip install twine
11+
pip install pypandoc
12+
```
13+
14+
To Install `pandoc` please [see](https://pandoc.org/installing.html).
15+
16+
Pypandoc and Pandoc are needed to convert the readme from markdown to rst for the package's documentation page on [Pypi](https://pypi.org/project/pytransloadit/).
17+
18+
### Release Steps
19+
20+
1. Update the changelog, the version file, and the test file as done in [this commit](https://github.com/transloadit/python-sdk/commit/35789c535bd02086ff8f3a07eda9583d6e676d4d) and push it to master.
21+
2. Publish to Pypi by running the following commands.
22+
23+
```bash
24+
python setup.py sdist bdist_wheel
25+
twine check dist/*
26+
twine upload dist/*
27+
```
28+
The second command above (`twine check dist/*`) is meant to check for errors in the dist build, so please abort and try to fix issues if you see any errors from running the command.
29+
30+
Running the third command from above will prompt you for your [Pypi](https://pypi.org/project/pytransloadit/) username and password.
31+
32+
3. Now that release has been published on Pypi, please head to GitHub to [draft a new tag release](https://github.com/transloadit/python-sdk/releases). Point this tag release to the latest commit pushed on step 1 above. Once you're done drafting the release, go ahead to publish it.
33+
34+
If all the steps above have been followed without errors, then you've successfully published a relaease. 🎉
35+
36+
* * *
37+
Further reading for Transloadians: https://github.com/transloadit/team-internals/blob/master/_howtos/2020-12-14-maintain-python-sdk.md

0 commit comments

Comments
 (0)