Skip to content

Commit

Permalink
Merge pull request #6120: Upgrade Pantsbuild to 2.18.3
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd authored Apr 10, 2024
2 parents afedd35 + 57f426d commit 4d34398
Show file tree
Hide file tree
Showing 12 changed files with 663 additions and 683 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Added
* Continue introducing `pants <https://www.pantsbuild.org/docs>`_ to improve DX (Developer Experience)
working on StackStorm, improve our security posture, and improve CI reliability thanks in part
to pants' use of PEX lockfiles. This is not a user-facing addition.
#6118 #6141 #6133
#6118 #6141 #6133 #6120
Contributed by @cognifloyd
* Build of ST2 EL9 packages #6153
Contributed by @amanda11
Expand Down
72 changes: 3 additions & 69 deletions lint-configs/regex-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,62 +3,20 @@
# string with no escape characters (so it's particularly useful for expressing regexes).
# Adding quotes around these may change their meaning, so don't do so without thought.

required_matches:
required_matches: {}
# If we decide to enable this, remove the st2flake8
#python_source:
# - python_header
#build_files:
# - python_header

# TODO: In the future pants should get `visibility` and possibly other
# features to restrict imports for dependees or dependencies.
# We now have the rules. We just need the lint backend to check regularly.
# - https://github.com/pantsbuild/pants/discussions/17389 dep rules
# - https://github.com/pantsbuild/pants/issues/17634 visibility stabilization
# - https://www.pantsbuild.org/v2.16/docs/validating-dependencies
# We can use the visibility lint backend once we upgrade to pants 2.18:
# https://www.pantsbuild.org/blog/2023/11/14/pants-2.18.0-is-released#more-visible-visibility

# st2client-dependencies-check
st2client:
- must_not_import_st2common

# st2common-circular-dependencies-check
st2common:
- must_not_import_st2reactor
- must_not_import_st2api
- must_not_import_st2auth
#- must_not_import_st2actions
#- must_not_import_st2stream
st2common_except_services_inquiry:
# The makefile excluded: runnersregistrar.py, compat.py, inquiry.py
# runnersregistrar does not have an st2actions ref since 2016.
# compat.py st2actions function was added and removed in 2017.
# services/inquiry.py still imports st2actions.
- must_not_import_st2actions
st2common_except_router:
# The makefile excluded router.py from st2stream check.
# In router.py, "st2stream" is a string, not an import.
- must_not_import_st2stream

path_patterns:
path_patterns: []
#- name: python_source
# pattern: (?<!__init__)\.py$
#- name: build_files
# pattern: /BUILD$

- name: st2client
pattern: st2client/st2client/.*\.py$
- name: st2common
pattern: st2common/st2common/.*\.py$

- name: st2common_except_services_inquiry
pattern: st2common/st2common/(?!services/inquiry\.py).*\.py$

- name: st2common_except_router
pattern: st2common/st2common/(?!router\.py).*\.py$

content_patterns:
content_patterns: []
#- name: python_header
# pattern: |+
# ^(?:#\!\/usr\/bin\/env python3
Expand All @@ -76,27 +34,3 @@ content_patterns:
# # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# # See the License for the specific language governing permissions and
# # limitations under the License.

- name: must_not_import_st2common
pattern: st2common
inverted: true

- name: must_not_import_st2reactor
pattern: st2reactor
inverted: true

- name: must_not_import_st2actions
pattern: st2actions
inverted: true

- name: must_not_import_st2api
pattern: st2api
inverted: true

- name: must_not_import_st2auth
pattern: st2auth
inverted: true

- name: must_not_import_st2stream
pattern: st2stream
inverted: true
33 changes: 18 additions & 15 deletions lockfiles/bandit.lock
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,13 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "385eb4edd9c9d5c17540511303e39a147ce2fc04bc55289c322b9e5904fe2c05",
"url": "https://files.pythonhosted.org/packages/55/3a/5121b58b578a598b269537e09a316ad2a94fdd561a2c6eb75cd68578cc6b/setuptools-69.0.3-py3-none-any.whl"
"hash": "c21c49fb1042386df081cb5d86759792ab89efca84cf114889191cd09aacc80c",
"url": "https://files.pythonhosted.org/packages/92/e1/1c8bb3420105e70bdf357d57dd5567202b4ef8d27f810e98bb962d950834/setuptools-69.2.0-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "be1af57fc409f93647f2e8e4573a142ed38724b8cdd389706a867bb4efcf1e78",
"url": "https://files.pythonhosted.org/packages/fc/c9/b146ca195403e0182a374e0ea4dbc69136bad3cd55bc293df496d625d0f7/setuptools-69.0.3.tar.gz"
"hash": "0ff4183f8f42cd8fa3acea16c45205521a4ef28f73c6391d8a25e92893134f2e",
"url": "https://files.pythonhosted.org/packages/4d/5b/dc575711b6b8f2f866131a40d053e30e962e633b332acf7cd2c24843d83d/setuptools-69.2.0.tar.gz"
}
],
"project_name": "setuptools",
Expand All @@ -199,8 +199,8 @@
"build[virtualenv]>=1.0.3; extra == \"testing-integration\"",
"filelock>=3.4.0; extra == \"testing\"",
"filelock>=3.4.0; extra == \"testing-integration\"",
"flake8-2020; extra == \"testing\"",
"furo; extra == \"docs\"",
"importlib-metadata; extra == \"testing\"",
"ini2toml[lite]>=0.9; extra == \"testing\"",
"jaraco.develop>=7.21; (python_version >= \"3.9\" and sys_platform != \"cygwin\") and extra == \"testing\"",
"jaraco.envs>=2.2; extra == \"testing\"",
Expand All @@ -209,20 +209,22 @@
"jaraco.path>=3.2.0; extra == \"testing\"",
"jaraco.path>=3.2.0; extra == \"testing-integration\"",
"jaraco.tidelift>=1.4; extra == \"docs\"",
"packaging>=23.1; extra == \"testing-integration\"",
"mypy==1.9; extra == \"testing\"",
"packaging>=23.2; extra == \"testing\"",
"packaging>=23.2; extra == \"testing-integration\"",
"pip>=19.1; extra == \"testing\"",
"pygments-github-lexers==0.0.5; extra == \"docs\"",
"pytest-black>=0.3.7; platform_python_implementation != \"PyPy\" and extra == \"testing\"",
"pytest-checkdocs>=2.4; extra == \"testing\"",
"pytest-cov; platform_python_implementation != \"PyPy\" and extra == \"testing\"",
"pytest-enabler; extra == \"testing-integration\"",
"pytest-enabler>=2.2; extra == \"testing\"",
"pytest-home>=0.5; extra == \"testing\"",
"pytest-mypy>=0.9.1; platform_python_implementation != \"PyPy\" and extra == \"testing\"",
"pytest-perf; sys_platform != \"cygwin\" and extra == \"testing\"",
"pytest-ruff; sys_platform != \"cygwin\" and extra == \"testing\"",
"pytest-ruff>=0.2.1; sys_platform != \"cygwin\" and extra == \"testing\"",
"pytest-timeout; extra == \"testing\"",
"pytest-xdist; extra == \"testing\"",
"pytest-xdist; extra == \"testing-integration\"",
"pytest-xdist>=3; extra == \"testing\"",
"pytest; extra == \"testing-integration\"",
"pytest>=6; extra == \"testing\"",
"rst.linker>=1.9; extra == \"docs\"",
Expand All @@ -235,14 +237,15 @@
"sphinx>=3.5; extra == \"docs\"",
"sphinxcontrib-towncrier; extra == \"docs\"",
"tomli-w>=1.0.0; extra == \"testing\"",
"tomli; extra == \"testing\"",
"tomli; extra == \"testing-integration\"",
"virtualenv>=13.0.0; extra == \"testing\"",
"virtualenv>=13.0.0; extra == \"testing-integration\"",
"wheel; extra == \"testing\"",
"wheel; extra == \"testing-integration\""
],
"requires_python": ">=3.8",
"version": "69.0.3"
"version": "69.2.0"
},
{
"artifacts": [
Expand Down Expand Up @@ -284,21 +287,21 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "8cc040628f3cea5d7128f2e76cf486b2251a4e543c7b938f58d9a377f6694a2d",
"url": "https://files.pythonhosted.org/packages/4b/68/e739fd061b0aba464bef8e8be48428b2aabbfb3f2f8f2f8ca257363ee6b2/stevedore-5.1.0-py3-none-any.whl"
"hash": "1c15d95766ca0569cad14cb6272d4d31dae66b011a929d7c18219c176ea1b5c9",
"url": "https://files.pythonhosted.org/packages/eb/f1/c7c6205c367c764ee173537f7eaf070bba4dd0fa11bf081813c2f75285a3/stevedore-5.2.0-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "a54534acf9b89bc7ed264807013b505bf07f74dbe4bcfa37d32bd063870b087c",
"url": "https://files.pythonhosted.org/packages/ac/d6/77387d3fc81f07bc8877e6f29507bd7943569093583b0a07b28cfa286780/stevedore-5.1.0.tar.gz"
"hash": "46b93ca40e1114cea93d738a6c1e365396981bb6bb78c27045b7587c9473544d",
"url": "https://files.pythonhosted.org/packages/e7/c1/b210bf1071c96ecfcd24c2eeb4c828a2a24bf74b38af13896d02203b1eec/stevedore-5.2.0.tar.gz"
}
],
"project_name": "stevedore",
"requires_dists": [
"pbr!=2.1.0,>=2.0.0"
],
"requires_python": ">=3.8",
"version": "5.1.0"
"version": "5.2.0"
}
],
"platform_tag": null
Expand Down
30 changes: 15 additions & 15 deletions lockfiles/black.lock
Original file line number Diff line number Diff line change
Expand Up @@ -161,29 +161,29 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "11c8f37bcca40db96d8144522d925583bdb7a31f7b0e37e3ed4318400a8e2380",
"url": "https://files.pythonhosted.org/packages/be/53/42fe5eab4a09d251a76d0043e018172db324a23fcdac70f77a551c11f618/platformdirs-4.1.0-py3-none-any.whl"
"hash": "0614df2a2f37e1a662acbd8e2b25b92ccf8632929bc6d43467e17fe89c75e068",
"url": "https://files.pythonhosted.org/packages/55/72/4898c44ee9ea6f43396fbc23d9bfaf3d06e01b83698bdf2e4c919deceb7c/platformdirs-4.2.0-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "906d548203468492d432bcb294d4bc2fff751bf84971fbb2c10918cc206ee420",
"url": "https://files.pythonhosted.org/packages/62/d1/7feaaacb1a3faeba96c06e6c5091f90695cc0f94b7e8e1a3a3fe2b33ff9a/platformdirs-4.1.0.tar.gz"
"hash": "ef0cc731df711022c174543cb70a9b5bd22e5a9337c8624ef2c2ceb8ddad8768",
"url": "https://files.pythonhosted.org/packages/96/dc/c1d911bf5bb0fdc58cc05010e9f3efe3b67970cef779ba7fbc3183b987a8/platformdirs-4.2.0.tar.gz"
}
],
"project_name": "platformdirs",
"requires_dists": [
"appdirs==1.4.4; extra == \"test\"",
"covdefaults>=2.3; extra == \"test\"",
"furo>=2023.7.26; extra == \"docs\"",
"furo>=2023.9.10; extra == \"docs\"",
"proselint>=0.13; extra == \"docs\"",
"pytest-cov>=4.1; extra == \"test\"",
"pytest-mock>=3.11.1; extra == \"test\"",
"pytest>=7.4; extra == \"test\"",
"sphinx-autodoc-typehints>=1.24; extra == \"docs\"",
"sphinx>=7.1.1; extra == \"docs\""
"pytest-mock>=3.12; extra == \"test\"",
"pytest>=7.4.3; extra == \"test\"",
"sphinx-autodoc-typehints>=1.25.2; extra == \"docs\"",
"sphinx>=7.2.6; extra == \"docs\""
],
"requires_python": ">=3.8",
"version": "4.1.0"
"version": "4.2.0"
},
{
"artifacts": [
Expand All @@ -207,19 +207,19 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "af72aea155e91adfc61c3ae9e0e342dbc0cba726d6cba4b6c72c1f34e47291cd",
"url": "https://files.pythonhosted.org/packages/b7/f4/6a90020cd2d93349b442bfcb657d0dc91eee65491600b2cb1d388bc98e6b/typing_extensions-4.9.0-py3-none-any.whl"
"hash": "69b1a937c3a517342112fb4c6df7e72fc39a38e7891a5730ed4985b5214b5475",
"url": "https://files.pythonhosted.org/packages/f9/de/dc04a3ea60b22624b51c703a84bbe0184abcd1d0b9bc8074b5d6b7ab90bb/typing_extensions-4.10.0-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "23478f88c37f27d76ac8aee6c905017a143b0b1b886c3c9f66bc2fd94f9f5783",
"url": "https://files.pythonhosted.org/packages/0c/1d/eb26f5e75100d531d7399ae800814b069bc2ed2a7410834d57374d010d96/typing_extensions-4.9.0.tar.gz"
"hash": "b0abd7c89e8fb96f98db18d86106ff1d90ab692004eb746cf6eda2682f91b3cb",
"url": "https://files.pythonhosted.org/packages/16/3a/0d26ce356c7465a19c9ea8814b960f8a36c3b0d07c323176620b7b483e44/typing_extensions-4.10.0.tar.gz"
}
],
"project_name": "typing-extensions",
"requires_dists": [],
"requires_python": ">=3.8",
"version": "4.9.0"
"version": "4.10.0"
}
],
"platform_tag": null
Expand Down
23 changes: 13 additions & 10 deletions lockfiles/flake8.lock
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,13 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "385eb4edd9c9d5c17540511303e39a147ce2fc04bc55289c322b9e5904fe2c05",
"url": "https://files.pythonhosted.org/packages/55/3a/5121b58b578a598b269537e09a316ad2a94fdd561a2c6eb75cd68578cc6b/setuptools-69.0.3-py3-none-any.whl"
"hash": "c21c49fb1042386df081cb5d86759792ab89efca84cf114889191cd09aacc80c",
"url": "https://files.pythonhosted.org/packages/92/e1/1c8bb3420105e70bdf357d57dd5567202b4ef8d27f810e98bb962d950834/setuptools-69.2.0-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "be1af57fc409f93647f2e8e4573a142ed38724b8cdd389706a867bb4efcf1e78",
"url": "https://files.pythonhosted.org/packages/fc/c9/b146ca195403e0182a374e0ea4dbc69136bad3cd55bc293df496d625d0f7/setuptools-69.0.3.tar.gz"
"hash": "0ff4183f8f42cd8fa3acea16c45205521a4ef28f73c6391d8a25e92893134f2e",
"url": "https://files.pythonhosted.org/packages/4d/5b/dc575711b6b8f2f866131a40d053e30e962e633b332acf7cd2c24843d83d/setuptools-69.2.0.tar.gz"
}
],
"project_name": "setuptools",
Expand All @@ -169,8 +169,8 @@
"build[virtualenv]>=1.0.3; extra == \"testing-integration\"",
"filelock>=3.4.0; extra == \"testing\"",
"filelock>=3.4.0; extra == \"testing-integration\"",
"flake8-2020; extra == \"testing\"",
"furo; extra == \"docs\"",
"importlib-metadata; extra == \"testing\"",
"ini2toml[lite]>=0.9; extra == \"testing\"",
"jaraco.develop>=7.21; (python_version >= \"3.9\" and sys_platform != \"cygwin\") and extra == \"testing\"",
"jaraco.envs>=2.2; extra == \"testing\"",
Expand All @@ -179,20 +179,22 @@
"jaraco.path>=3.2.0; extra == \"testing\"",
"jaraco.path>=3.2.0; extra == \"testing-integration\"",
"jaraco.tidelift>=1.4; extra == \"docs\"",
"packaging>=23.1; extra == \"testing-integration\"",
"mypy==1.9; extra == \"testing\"",
"packaging>=23.2; extra == \"testing\"",
"packaging>=23.2; extra == \"testing-integration\"",
"pip>=19.1; extra == \"testing\"",
"pygments-github-lexers==0.0.5; extra == \"docs\"",
"pytest-black>=0.3.7; platform_python_implementation != \"PyPy\" and extra == \"testing\"",
"pytest-checkdocs>=2.4; extra == \"testing\"",
"pytest-cov; platform_python_implementation != \"PyPy\" and extra == \"testing\"",
"pytest-enabler; extra == \"testing-integration\"",
"pytest-enabler>=2.2; extra == \"testing\"",
"pytest-home>=0.5; extra == \"testing\"",
"pytest-mypy>=0.9.1; platform_python_implementation != \"PyPy\" and extra == \"testing\"",
"pytest-perf; sys_platform != \"cygwin\" and extra == \"testing\"",
"pytest-ruff; sys_platform != \"cygwin\" and extra == \"testing\"",
"pytest-ruff>=0.2.1; sys_platform != \"cygwin\" and extra == \"testing\"",
"pytest-timeout; extra == \"testing\"",
"pytest-xdist; extra == \"testing\"",
"pytest-xdist; extra == \"testing-integration\"",
"pytest-xdist>=3; extra == \"testing\"",
"pytest; extra == \"testing-integration\"",
"pytest>=6; extra == \"testing\"",
"rst.linker>=1.9; extra == \"docs\"",
Expand All @@ -205,14 +207,15 @@
"sphinx>=3.5; extra == \"docs\"",
"sphinxcontrib-towncrier; extra == \"docs\"",
"tomli-w>=1.0.0; extra == \"testing\"",
"tomli; extra == \"testing\"",
"tomli; extra == \"testing-integration\"",
"virtualenv>=13.0.0; extra == \"testing\"",
"virtualenv>=13.0.0; extra == \"testing-integration\"",
"wheel; extra == \"testing\"",
"wheel; extra == \"testing-integration\""
],
"requires_python": ">=3.8",
"version": "69.0.3"
"version": "69.2.0"
},
{
"artifacts": [
Expand Down
Loading

0 comments on commit 4d34398

Please sign in to comment.