summaryrefslogtreecommitdiff
path: root/ci/upload_relnotes.py
diff options
context:
space:
mode:
Diffstat (limited to 'ci/upload_relnotes.py')
-rw-r--r--ci/upload_relnotes.py7
1 files changed, 6 insertions, 1 deletions
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:])