Skip to content

Commit f25df1f

Browse files
committed
pants: configure lockfile for default st2 resolve
1 parent 0592aa1 commit f25df1f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pants.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,23 @@ root_patterns = [
8585
]
8686

8787
[python]
88+
# resolver_version is always "pip-2020-resolver". legacy is not supported.
89+
enable_resolves = true
90+
default_resolve = "st2"
8891
interpreter_constraints = [
8992
# python_distributions needs a single constraint (vs one line per python version).
9093
# officially, we exclude 3.7 support, but that adds unnecessary complexity: "CPython>=3.6,!=3.7.*,<3.9",
9194
"CPython>=3.6,<3.9",
9295
]
9396

97+
[python.resolves]
98+
st2 = "lockfiles/st2.lock"
99+
100+
[python.resolves_to_constraints_file]
101+
# Our direct requirements are in requirements-pants.txt;
102+
# put indirect/transitive version constraints here:
103+
st2 = "lockfiles/st2-constraints.txt"
104+
94105
[python-infer]
95106
# https://www.pantsbuild.org/docs/reference-python-infer#unowned_dependency_behavior
96107
# The default changed from "ignore" to "warning" in pants 2.14.

0 commit comments

Comments
 (0)