-
Notifications
You must be signed in to change notification settings - Fork 0
/
noxfile.py
36 lines (29 loc) · 936 Bytes
/
noxfile.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
34
35
36
import nox
import locale
@nox.session(python=["2.7", "3.5", "3.6", "3.7", "3.8", "3.9"])
def update_python_dependencies(session):
session.install("pip-tools")
session.run(
"pip-compile",
"--generate-hashes",
"requirements.in",
"--allow-unsafe",
"--upgrade",
"--output-file",
f"docker/build_scripts/requirements{session.python}.txt",
)
@nox.session(python="3.9")
def update_python_tools(session):
session.install("pip-tools")
session.run(
"pip-compile",
"--generate-hashes",
"requirements-tools.in",
"--upgrade",
"--output-file",
f"docker/build_scripts/requirements-tools.txt",
)
@nox.session(python="3.9", reuse_venv=True)
def update_native_dependencies(session):
session.install("lastversion", "packaging", "requests")
session.run("python", "update_native_dependencies.py", *session.posargs)