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
To Install `pandoc` please [see](https://pandoc.org/installing.html).
16
+
To setup your token to publish to pypi.
15
17
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/).
18
+
```bash
19
+
poetry config pypi-token.pypi pypi-XXXXX`````
20
+
```
17
21
18
22
### Release Steps
19
23
20
24
1. Update the changelog, the version file, and the test file as donein [this commit](https://github.com/transloadit/python-sdk/commit/35789c535bd02086ff8f3a07eda9583d6e676d4d) and push it to main.
21
-
2. Publish to Pypi by running the following commands.
22
-
25
+
2. Update the version
23
26
```bash
24
-
python setup.py sdist bdist_wheel
25
-
twine check dist/*
26
-
twine upload dist/*
27
+
# e.g: 0.2.2 -> 0.2.3a0
28
+
poetry version prerelease
29
+
# or the following for, e.g.: 0.2.3
30
+
poetry version patch
27
31
```
32
+
3. Publish to Pypi
28
33
29
-
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.
34
+
Pypi test index
30
35
31
-
Running the third command from above will prompt you for your [Pypi](https://pypi.org/project/pytransloadit/) username and password.
36
+
```bash
37
+
poetry build
38
+
poetry publish -r test-pypi
39
+
```
40
+
41
+
To publish to pypi
42
+
```bash
43
+
poetry publish
44
+
```
32
45
33
-
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.
46
+
4. 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.
34
47
35
-
If all the steps above have been followed without errors, then you've successfully published a relaease. 🎉
48
+
If all the steps above have been followed without errors, then you've successfully published a release. 🎉
0 commit comments