Debian Codegraph @

testing/web-platform/tests/tools/third_party/pluggy/scripts/towncrier-draft-to-file.py

raw
1 from subprocess import call
2 import sys
3
4
5 def main():
6 """
7 Platform agnostic wrapper script for towncrier.
8 Fixes the issue (pytest#7251) where windows users are unable to natively
9 run tox -e docs to build pytest docs.
10 """
11 with open("docs/_changelog_towncrier_draft.rst", "w") as draft_file:
12 return call(("towncrier", "--draft"), stdout=draft_file)
13
14
15 if __name__ == "__main__":
16 sys.exit(main())