Skip to content

Commit

Permalink
Quick reference for publishing to PyPI (#19)
Browse files Browse the repository at this point in the history
This PR adds a reference for publishing to PyPI.
  • Loading branch information
dmitryduev authored Jul 24, 2022
1 parent a62fd3b commit f9651e3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion penquins/penquins.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from typing import Mapping, Optional, Sequence, Union


__version__ = "2.1.0"
__version__ = "2.2.0"


Num = Union[int, float]
Expand Down
19 changes: 19 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,3 +237,22 @@ response = kowalski.api(method="post", endpoint="/api/users", data=request)

response = kowalski.api(method="delete", endpoint=f"/api/users/{username}")
```

## Publish new version

Please refer to https://realpython.com/pypi-publish-python-package/
for a detailed guide.

```shell script
pip install bumpversion
export PENQUINS_VERSION=2.2.0

bumpversion --current-version $PENQUINS_VERSION minor setup.py penquins/penquins.py
python setup.py sdist bdist_wheel

twine check dist/*$PENQUINS_VERSION*
twine upload dist/*$PENQUINS_VERSION*

username: __token__
token: <TOKEN>
```
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def run_git(cmd):
URL = "https://github.com/dmitryduev/penquins"

# VERSION should be PEP386 compatible (http://www.python.org/dev/peps/pep-0386)
VERSION = "2.1.0"
VERSION = "2.2.0"

# Indicates if this version is a release version
RELEASE = "dev" not in VERSION
Expand Down

0 comments on commit f9651e3

Please sign in to comment.