-
Notifications
You must be signed in to change notification settings - Fork 0
/
ubuild.py
33 lines (27 loc) · 792 Bytes
/
ubuild.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import os
import subprocess
from uranium import task_requires
def main(build):
build.packages.install(".", develop=True)
@task_requires("main")
def test(build):
build.packages.install("pytest")
build.packages.install("aiohttp")
build.packages.install("sanic")
build.packages.install("radon")
build.packages.install("coverage")
build.executables.run([
"coverage", "run", "--append",
"--source=sanic_zipkin",
"./bin/pytest", "./tests",
])
build.executables.run([
"coverage", "report", "-m"
])
def distribute(build):
""" distribute the uranium package """
build.packages.install("wheel")
build.executables.run([
"python", "setup.py",
"sdist", "bdist_wheel", "--universal", "upload"
])