Skip to content

Commit 482ab20

Browse files
committed
Add release process guide
1 parent 1a99c17 commit 482ab20

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

RELEASE_PROCESS.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Release a new Push Notifications Python version
2+
## Requirements
3+
- Python
4+
- Twine (pip install twine)
5+
- .pypirc
6+
### pypirc
7+
Create a `.pypirc` file in your home directory:
8+
```
9+
[pypi]
10+
username = Pusher
11+
password = <password is in LastPass>
12+
```
13+
14+
## Steps
15+
### Create release commit
16+
- Update all references to old version (e.g. in setup.py)
17+
- Commit changes with message "Bump version to x.y.z"
18+
- Push changes
19+
- Create Github release
20+
### Build package
21+
```
22+
$ python setup.py sdist bdist_wheel
23+
```
24+
### Upload to test PyPi
25+
```
26+
$ twine upload --repository-url https://test.pypi.org/legacy/ dist/*
27+
```
28+
(Then check that this worked at https://test.pypi.org)
29+
30+
### Upload to production PyPi
31+
```
32+
$ twine upload ./dist/*
33+
```

0 commit comments

Comments
 (0)