File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
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
+ ```
You can’t perform that action at this time.
0 commit comments