Skip to content

Commit 78c66f2

Browse files
authored
Merge pull request #5949: pants: pin versions of pip and setuptools
2 parents f35c1a6 + d688eba commit 78c66f2

File tree

6 files changed

+142
-78
lines changed

6 files changed

+142
-78
lines changed

CHANGELOG.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Added
1717
#5778 #5789 #5817 #5795 #5830 #5833 #5834 #5841 #5840 #5838 #5842 #5837 #5849 #5850
1818
#5846 #5853 #5848 #5847 #5858 #5857 #5860 #5868 #5871 #5864 #5874 #5884 #5893 #5891
1919
#5890 #5898 #5901 #5906 #5899 #5907 #5909 #5922 #5926 #5927 #5925 #5928 #5929 #5930
20-
#5931 #5932 #5948
20+
#5931 #5932 #5948 #5949
2121
Contributed by @cognifloyd
2222

2323
* Added a joint index to solve the problem of slow mongo queries for scheduled executions. #5805

lockfiles/st2.lock

+101-74
Large diffs are not rendered by default.

pants.toml

+14
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,20 @@ config = "lint-configs/python/.flake8"
192192
[generate-lockfiles]
193193
diff = true
194194

195+
[pex-cli]
196+
# [pex-cli] can be removed once we upgrade to pex 2.17
197+
# We overwrite `version` and `known_versions` to:
198+
# - fix lockfile spaces to minimize the regen diff
199+
# - make sure the locked pip/setuptools ends up in virtualenv exports
200+
# https://github.com/pantsbuild/pex/issues/2105
201+
version = "v2.1.131"
202+
known_versions = [
203+
"v2.1.131|macos_arm64|28b9dfc7e2f5f49f1e189b79eba3dd79ca2186f765009ea02dd6095f5359bf59|4084520",
204+
"v2.1.131|macos_x86_64|28b9dfc7e2f5f49f1e189b79eba3dd79ca2186f765009ea02dd6095f5359bf59|4084520",
205+
"v2.1.131|linux_x86_64|28b9dfc7e2f5f49f1e189b79eba3dd79ca2186f765009ea02dd6095f5359bf59|4084520",
206+
"v2.1.131|linux_arm64|28b9dfc7e2f5f49f1e189b79eba3dd79ca2186f765009ea02dd6095f5359bf59|4084520"
207+
]
208+
195209
[pylint]
196210
lockfile = "lockfiles/pylint.lock"
197211
version = "pylint~=2.8.2"

requirements-pants.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ orquesta @ git+https://github.com/StackStorm/[email protected]
3636
# See https://github.com/StackStorm/st2/issues/4160#issuecomment-394386433 for details
3737
oslo.config>=1.12.1,<1.13
3838
paramiko
39+
# we use pip at runtime
40+
pip
3941
# prance is used by st2-validate-api-spec to validate the openapi spec
4042
# prance needs flex, but do not use the extra as that gets an old version.
4143
prance
@@ -60,7 +62,7 @@ requests[security]
6062
retrying
6163
routes
6264
semver
63-
# setuptools provides pkg_resources
65+
# setuptools provides pkg_resources (and we need it with pip at runtime)
6466
setuptools
6567
simplejson
6668
six
@@ -82,6 +84,8 @@ unittest2
8284
virtualenv
8385
webob
8486
webtest
87+
# we use pip+wheel at runtime
88+
wheel
8589
# zstandard is used for micro benchmarks
8690
zstandard
8791

st2common/bin/BUILD

+8-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ st2_shell_sources_and_resources(
2525
# st2-run-pack-tests creates its own virtualenv on the fly and
2626
# installs its dependencies, so most don't need to be listed here.
2727
# It can optionally use the deps installed with st2tests package.
28-
# "st2-run-pack-tests": dict(),
28+
"st2-run-pack-tests": dict(
29+
dependencies=[
30+
"//:reqs#virtualenv",
31+
"//:reqs#pip",
32+
"//:reqs#setuptools",
33+
"//:reqs#wheel",
34+
],
35+
),
2936
},
3037
)

st2common/st2common/util/BUILD

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
python_sources()
1+
python_sources(
2+
overrides={
3+
"virtualenvs.py": dict(
4+
dependencies=[
5+
# make sure virtualenvs.py always has functioning virtualenv+pip
6+
"//:reqs#virtualenv",
7+
"//:reqs#pip",
8+
"//:reqs#setuptools",
9+
"//:reqs#wheel",
10+
],
11+
),
12+
},
13+
)
214

315
# st2common.utils.concurrency allows using gevent instead of eventlet.
416
# This gevent support is WIP.

0 commit comments

Comments
 (0)