File: release.py

package info (click to toggle)
pytest-httpbin 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 176 kB
  • sloc: python: 312; sh: 18; makefile: 14
file content (15 lines) | stat: -rw-r--r-- 274 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import os
import pathlib
import shutil
import sys


def main():
    dist = pathlib.Path(__file__).parent / "dist"
    shutil.rmtree(dist, ignore_errors=True)
    dist.mkdir()
    shutil.copy(os.environ["TOX_PACKAGE"], dist)


if __name__ == "__main__":
    sys.exit(main())