Skip to content

Commit 9e3203a

Browse files
Use Python resolves again (#8)
See pantsbuild/example-python#94 for the rationale. This is a step up from the status quo for this repo, which wasn't using any locking at all. We should always encourage our users to lock.
1 parent 2975dc8 commit 9e3203a

2 files changed

Lines changed: 58 additions & 0 deletions

File tree

3rdparty/python/default_lock.txt

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# This lockfile was autogenerated by Pants. To regenerate, run:
2+
#
3+
# ./pants generate-lockfiles --resolve=python-default
4+
#
5+
# --- BEGIN PANTS LOCKFILE METADATA: DO NOT EDIT OR REMOVE ---
6+
# {
7+
# "version": 2,
8+
# "valid_for_interpreter_constraints": [
9+
# "CPython<3.11,>=3.8"
10+
# ],
11+
# "generated_with_requirements": [
12+
# "protobuf>=3.19.0",
13+
# "thrift==0.15.0"
14+
# ]
15+
# }
16+
# --- END PANTS LOCKFILE METADATA ---
17+
18+
protobuf==3.19.4; python_version >= "3.5" \
19+
--hash=sha256:f51d5a9f137f7a2cec2d326a74b6e3fc79d635d69ffe1b036d39fc7d75430d37 \
20+
--hash=sha256:09297b7972da685ce269ec52af761743714996b4381c085205914c41fcab59fb \
21+
--hash=sha256:072fbc78d705d3edc7ccac58a62c4c8e0cec856987da7df8aca86e647be4e35c \
22+
--hash=sha256:7bb03bc2873a2842e5ebb4801f5c7ff1bfbdf426f85d0172f7644fcda0671ae0 \
23+
--hash=sha256:f358aa33e03b7a84e0d91270a4d4d8f5df6921abe99a377828839e8ed0c04e07 \
24+
--hash=sha256:1c91ef4110fdd2c590effb5dca8fdbdcb3bf563eece99287019c4204f53d81a4 \
25+
--hash=sha256:c438268eebb8cf039552897d78f402d734a404f1360592fef55297285f7f953f \
26+
--hash=sha256:835a9c949dc193953c319603b2961c5c8f4327957fe23d914ca80d982665e8ee \
27+
--hash=sha256:4276cdec4447bd5015453e41bdc0c0c1234eda08420b7c9a18b8d647add51e4b \
28+
--hash=sha256:6cbc312be5e71869d9d5ea25147cdf652a6781cf4d906497ca7690b7b9b5df13 \
29+
--hash=sha256:54a1473077f3b616779ce31f477351a45b4fef8c9fd7892d6d87e287a38df368 \
30+
--hash=sha256:435bb78b37fc386f9275a7035fe4fb1364484e38980d0dd91bc834a02c5ec909 \
31+
--hash=sha256:16f519de1313f1b7139ad70772e7db515b1420d208cb16c6d7858ea989fc64a9 \
32+
--hash=sha256:cdc076c03381f5c1d9bb1abdcc5503d9ca8b53cf0a9d31a9f6754ec9e6c8af0f \
33+
--hash=sha256:69da7d39e39942bd52848438462674c463e23963a1fdaa84d88df7fbd7e749b2 \
34+
--hash=sha256:48ed3877fa43e22bcacc852ca76d4775741f9709dd9575881a373bd3e85e54b2 \
35+
--hash=sha256:bd95d1dfb9c4f4563e6093a9aa19d9c186bf98fa54da5252531cc0d3a07977e7 \
36+
--hash=sha256:b38057450a0c566cbd04890a40edf916db890f2818e8682221611d78dc32ae26 \
37+
--hash=sha256:7ca7da9c339ca8890d66958f5462beabd611eca6c958691a8fe6eccbd1eb0c6e \
38+
--hash=sha256:36cecbabbda242915529b8ff364f2263cd4de7c46bbe361418b5ed859677ba58 \
39+
--hash=sha256:c1068287025f8ea025103e37d62ffd63fec8e9e636246b89c341aeda8a67c934 \
40+
--hash=sha256:96bd766831596d6014ca88d86dc8fe0fb2e428c0b02432fd9db3943202bf8c5e \
41+
--hash=sha256:84123274d982b9e248a143dadd1b9815049f4477dc783bf84efe6250eb4b836a \
42+
--hash=sha256:3112b58aac3bac9c8be2b60a9daf6b558ca3f7681c130dcdd788ade7c9ffbdca \
43+
--hash=sha256:8961c3a78ebfcd000920c9060a262f082f29838682b1f7201889300c1fbe0616 \
44+
--hash=sha256:9df0c10adf3e83015ced42a9a7bd64e13d06c4cf45c340d2c63020ea04499d0a
45+
six==1.16.0; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.3.0" \
46+
--hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254 \
47+
--hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926
48+
thrift==0.15.0 \
49+
--hash=sha256:87c8205a71cf8bbb111cb99b1f7495070fbc9cabb671669568854210da5b3e29

pants.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ backend_packages = [
66
"pants.backend.python",
77
]
88

9+
# This will become the default in 2.11, and is only explicitly set to not break
10+
# backwards-compatibility for existing users. If you are setting up Pants for
11+
# the first time, set this to false.
912
use_deprecated_python_macros = false
1013

1114
[anonymous-telemetry]
@@ -14,3 +17,9 @@ repo_id = "205E301D-44A4-42FF-8495-C9D41871A431"
1417

1518
[python]
1619
interpreter_constraints = ["CPython>=3.8,<3.11"]
20+
21+
# Enable the "resolves" mechanism, which turns on lockfiles for user code. See
22+
# https://www.pantsbuild.org/docs/python-third-party-dependencies. This also adds the
23+
# `generate-lockfiles` goal for Pants to generate the lockfile for you, although in some
24+
# situations you may need to manually generate it, as explained in the docs.
25+
enable_resolves = true

0 commit comments

Comments
 (0)