MCPcopy Create free account
hub / github.com/pytest-dev/pytest / main

Function main

scripts/towncrier-draft-to-file.py:5–11  ·  view source on GitHub ↗

Platform agnostic wrapper script for towncrier. Fixes the issue (#7251) where windows users are unable to natively run tox -e docs to build pytest docs.

()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected