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
Copy file name to clipboardExpand all lines: README.md
+58-15Lines changed: 58 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -344,66 +344,109 @@ that has already been intercepted and recorded.
344
344
345
345
1. Configure `~/.pypirc` as described [here](https://packaging.python.org/distributing/#uploading-your-project-to-pypi).
346
346
347
-
2. Make sure the cli and module work as expected
347
+
2. Make sure the cli and module work as expected.
348
348
349
-
3.Review [CHANGES.md](https://github.com/j0057/github-release/blob/master/README.md), replace *Next Release* into *X.Y.Z*, commit and push. Consider using `[ci skip]` in commit message.
349
+
3.Choose the next release version number:
350
350
351
-
4. Tag the release. Requires a GPG key with signatures. For version *X.Y.Z*:
351
+
```bash
352
+
release="X.Y.Z"
353
+
```
354
+
355
+
4. Review [CHANGES.md](https://github.com/j0057/github-release/blob/master/README.md), replace *Next Release* into *X.Y.Z*, commit and push. Consider using `[ci skip]` in commit message:
356
+
357
+
```bash
358
+
sed -i -e "s/Next Release/${release}/" CHANGES.md
359
+
sed -i -e "s/============/=====/" CHANGES.md
360
+
git add CHANGES.md
361
+
git commit -m "CHANGES.md: Replace \"Next Release\" with \"${release}\"
362
+
363
+
[ci skip]
364
+
"
365
+
```
366
+
367
+
Review commit, then push:
368
+
369
+
```bash
370
+
git push origin master
371
+
```
372
+
373
+
5. Tag the release. Requires a GPG key with signatures:
374
+
375
+
```bash
376
+
git tag -s -m "githubrelease ${release}"${release} origin/master
377
+
```
378
+
379
+
And push:
352
380
353
381
```bash
354
-
git tag -s -m "githubrelease X.Y.Z" X.Y.Z origin/master
382
+
git push origin${release}
355
383
```
356
384
357
-
5. Create the source tarball and binary wheels:
385
+
6. Create the source tarball and binary wheels:
358
386
359
387
```bash
360
388
rm -rf dist/
361
389
python setup.py sdist bdist_wheel
362
390
```
363
391
364
-
6. Upload the packages to the testing PyPI instance:
392
+
7. Upload the packages to the testing PyPI instance:
365
393
366
394
```bash
367
395
twine upload --sign -r pypitest dist/*
368
396
```
369
397
370
-
7. Check the [PyPI testing package page](https://testpypi.python.org/pypi/githubrelease/).
398
+
8. Check the [PyPI testing package page](https://testpypi.python.org/pypi/githubrelease/).
371
399
372
-
8. Upload the packages to the PyPI instance::
400
+
9. Upload the packages to the PyPI instance::
373
401
374
402
```bash
375
403
twine upload --sign dist/*
376
404
```
377
405
378
-
9. Check the [PyPI package page](https://pypi.python.org/pypi/githubrelease/).
406
+
10. Check the [PyPI package page](https://pypi.python.org/pypi/githubrelease/).
379
407
380
-
10. Create a virtual env, and make sure the package can be installed:
408
+
11. Create a virtual env, and make sure the package can be installed:
0 commit comments