summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--ci/upload_relnotes.py7
-rw-r--r--howto.txt2
3 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e9f790a7..24a300f2 100644
--- a/Makefile
+++ b/Makefile
@@ -129,3 +129,6 @@ publishbeta:
rm -f $(WEBSAMPLEBETA)/*.*
mkdir -p $(WEBSAMPLEBETA)
cp doc/sample_html_beta/*.* $(WEBSAMPLEBETA)
+
+upload_relnotes:
+ python ci/upload_relnotes.py CHANGES.rst pypi/coverage
diff --git a/ci/upload_relnotes.py b/ci/upload_relnotes.py
index 9429ca19..1cc89013 100644
--- a/ci/upload_relnotes.py
+++ b/ci/upload_relnotes.py
@@ -9,11 +9,16 @@ program, for example:
user/n3IwOpxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc2ZwE4
+Run with two arguments: the .rst file to parse, and the Tidelift package name:
+
+ python upload_relnotes.py CHANGES.rst pypi/coverage
+
"""
import os.path
import re
import subprocess
+import sys
import requests
@@ -112,4 +117,4 @@ def convert_and_upload(rst_filename, package):
update_release_note(package, version, text)
if __name__ == "__main__":
- convert_and_upload("CHANGES.rst", "pypi/coverage")
+ convert_and_upload(*sys.argv[1:])
diff --git a/howto.txt b/howto.txt
index ea51e42d..75e6e52b 100644
--- a/howto.txt
+++ b/howto.txt
@@ -82,7 +82,7 @@
- visit https://readthedocs.org/dashboard/coverage/versions/
- change the default version to the new version
- Update Tidelift:
- - python ci/upload_relnotes.py
+ - make upload_relnotes
- Visit the fixed issues on GitHub and mention the version it was fixed in.
- Announce on coveragepy-announce@googlegroups.com .
- Announce on TIP.