Skip to content

Commit

Permalink
build: current pants version
Browse files Browse the repository at this point in the history
  • Loading branch information
ZdenekM committed Mar 25, 2024
1 parent bb4909f commit 5e9b817
Show file tree
Hide file tree
Showing 13 changed files with 1,462 additions and 2,136 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/pants.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: pantsbuild/actions/init-pants@v8
- uses: pantsbuild/actions/init-pants@v5-scie-pants
with:
pants-python-version: ${{ matrix.python-version }}
gha-cache-key: cache0-py${{ matrix.python-version }}
Expand All @@ -53,26 +53,26 @@ jobs:
base-branch: master
- name: Check BUILD files
run: |
./pants --changed-since=HEAD update-build-files --check
pants --changed-since=HEAD update-build-files --check
- name: install system dependencies
run: |
sudo ./build-support/install_kinect_prerequisites.sh
sudo apt install jq
- name: Lint
run: |
./pants --changed-since=origin/master lint
pants --changed-since=origin/master lint
- name: Typecheck
run: |
./pants check --changed-since=origin/master --changed-dependees=transitive
pants check --changed-since=origin/master --changed-dependees=transitive
- name: Test
run: |
./pants --changed-since=origin/master --changed-dependees=transitive test
pants --changed-since=origin/master --changed-dependees=transitive test
- name: Build Docker images
run: | # filter out non-essential docker images (there was a problem with full storage on github)
./pants filter --target-type=docker_image --changed-since=origin/master --changed-dependees=transitive | grep -v arcor2_3d_mouse | grep -v arcor2_kinect_azure | grep -v arcor2_fanuc arcor2_fanuc_upload_object_types | xargs ./pants package
pants filter --target-type=docker_image --changed-since=origin/master --changed-dependees=transitive | grep -v arcor2_3d_mouse | grep -v arcor2_kinect_azure | grep -v arcor2_fanuc arcor2_fanuc_upload_object_types | xargs pants package
- name: Build Python packages
run: |
./pants filter --target-type=python_distribution :: | xargs ./pants package
pants filter --target-type=python_distribution :: | xargs pants package
# check for cyclic dependencies or other problems
python -m venv ./tstvenv
source ./tstvenv/bin/activate
Expand Down
18 changes: 18 additions & 0 deletions 3rdparty/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,21 @@ python_requirements(
"urdfpy": {"dependencies": ["#setuptools"]}, # actually, networkx is missing that dependency
},
)

python_requirements(
name="mypy",
source="mypy-requirements.txt",
resolve="mypy",
)

python_requirements(
name="pytest",
source="pytest-requirements.txt",
resolve="pytest",
)

python_requirements(
name="flake8",
source="flake8-requirements.txt",
resolve="flake8",
)
2,397 changes: 1,220 additions & 1,177 deletions 3rdparty/constraints.txt

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions 3rdparty/flake8-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
flake8-tidy-imports
flake8-annotations-coverage
flake8-pytest-style
flake8-bugbear
flake8-pantsbuild
# "flake8-new-union-types", TODO enable when https://github.com/s-knibbs/dataclasses-jsonschema/issues/195 is solved
flake8-absolute-import
vulture
157 changes: 77 additions & 80 deletions 3rdparty/flake8_lockfile.txt

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions 3rdparty/mypy-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mypy==1.9.0
numpy~=1.23.5
81 changes: 40 additions & 41 deletions 3rdparty/mypy_lockfile.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This lockfile was autogenerated by Pants. To regenerate, run:
//
// ./pants generate-lockfiles --resolve=mypy
// pants generate-lockfiles --resolve=mypy
//
// --- BEGIN PANTS LOCKFILE METADATA: DO NOT EDIT OR REMOVE ---
// {
Expand All @@ -9,8 +9,8 @@
// "CPython==3.10.*"
// ],
// "generated_with_requirements": [
// "mypy==1.1.1",
// "numpy"
// "mypy==1.9.0",
// "numpy~=1.23.5"
// ],
// "manylinux": "manylinux2014",
// "requirement_constraints": [],
Expand All @@ -32,33 +32,33 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "4e4e8b362cdf99ba00c2b218036002bdcdf1e0de085cdb296a49df03fb31dfc4",
"url": "https://files.pythonhosted.org/packages/a4/0b/3a30f50287e42a4230320fa2eac25eb3017d38a7c31f083d407ab627607c/mypy-1.1.1-py3-none-any.whl"
"hash": "a260627a570559181a9ea5de61ac6297aa5af202f06fd7ab093ce74e7181e43e",
"url": "https://files.pythonhosted.org/packages/60/db/0ba2eaedca52bf5276275e8489951c26206030b3d31bf06f00875ae75d5d/mypy-1.9.0-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "39c7119335be05630611ee798cc982623b9e8f0cff04a0b48dfc26100e0b97af",
"url": "https://files.pythonhosted.org/packages/44/9d/d23fa5d12bacbe7beea5fb6315b3325beabbe438e7e14d38c82b71609818/mypy-1.1.1-cp310-cp310-macosx_10_9_x86_64.whl"
"hash": "f8a67616990062232ee4c3952f41c779afac41405806042a8126fe96e098419f",
"url": "https://files.pythonhosted.org/packages/1a/a7/0b180ef81daebabd6ef011f12ecd1ba4c0747aa8c460a8caf79f38789b90/mypy-1.9.0-cp310-cp310-macosx_10_9_x86_64.whl"
},
{
"algorithm": "sha256",
"hash": "dbb19c9f662e41e474e0cff502b7064a7edc6764f5262b6cd91d698163196799",
"url": "https://files.pythonhosted.org/packages/61/99/4a844dcacbc4990a8312236bf74a55910ee9a05db69dee7d6fb7a7ffe6c2/mypy-1.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
"hash": "48533cdd345c3c2e5ef48ba3b0d3880b257b423e7995dada04248725c6f77374",
"url": "https://files.pythonhosted.org/packages/3d/23/b4282a2b59b74a3bf4a16713491348f72d843e218a73a12399bc98754c48/mypy-1.9.0-cp310-cp310-musllinux_1_1_x86_64.whl"
},
{
"algorithm": "sha256",
"hash": "ae9ceae0f5b9059f33dbc62dea087e942c0ccab4b7a003719cb70f9b8abfa32f",
"url": "https://files.pythonhosted.org/packages/62/54/be80f8d01f5cf72f774a77f9f750527a6fa733f09f78b1da30e8fa3914e6/mypy-1.1.1.tar.gz"
"hash": "3cc5da0127e6a478cddd906068496a97a7618a21ce9b54bde5bf7e539c7af974",
"url": "https://files.pythonhosted.org/packages/72/1e/a587a862c766a755a58b62d8c00aed11b74a15dc415c1bf5da7b607b0efd/mypy-1.9.0.tar.gz"
},
{
"algorithm": "sha256",
"hash": "61bf08362e93b6b12fad3eab68c4ea903a077b87c90ac06c11e3d7a09b56b9c1",
"url": "https://files.pythonhosted.org/packages/8a/fd/b610256224e01da4c4f315d11f62d39d815e97439a58d49d60aa4f55a60b/mypy-1.1.1-cp310-cp310-macosx_11_0_arm64.whl"
"hash": "d357423fa57a489e8c47b7c85dfb96698caba13d66e086b412298a1a0ea3b0ed",
"url": "https://files.pythonhosted.org/packages/d0/41/87f727fdbb43a1f975df5fe5d038dad552440b1e5c21f999bce0d83fd847/mypy-1.9.0-cp310-cp310-macosx_11_0_arm64.whl"
},
{
"algorithm": "sha256",
"hash": "315ac73cc1cce4771c27d426b7ea558fb4e2836f89cb0296cbe056894e3a1f78",
"url": "https://files.pythonhosted.org/packages/c0/d6/17ba6f8749722b8f61c6ab680769658f0bc63c293556149e2bf400b1f1a2/mypy-1.1.1-cp310-cp310-musllinux_1_1_x86_64.whl"
"hash": "49c87c15aed320de9b438ae7b00c1ac91cd393c1b854c2ce538e2a72d55df150",
"url": "https://files.pythonhosted.org/packages/e1/87/b508b34309359daa00e0e76d9a0dbe43031866af49b279861f69c76e5d70/mypy-1.9.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
}
],
"project_name": "mypy",
Expand All @@ -67,13 +67,12 @@
"mypy-extensions>=1.0.0",
"pip; extra == \"install-types\"",
"psutil>=4.0; extra == \"dmypy\"",
"setuptools>=50; extra == \"mypyc\"",
"tomli>=1.1.0; python_version < \"3.11\"",
"typed-ast<2,>=1.4.0; extra == \"python2\"",
"typed-ast<2,>=1.4.0; python_version < \"3.8\"",
"typing-extensions>=3.10"
"typing-extensions>=4.1.0"
],
"requires_python": ">=3.7",
"version": "1.1.1"
"requires_python": ">=3.8",
"version": "1.9.0"
},
{
"artifacts": [
Expand All @@ -97,34 +96,34 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "a51725a815a6188c662fb66fb32077709a9ca38053f0274640293a14fdd22978",
"url": "https://files.pythonhosted.org/packages/c5/21/275cfa7731ee2e121b1bf85ddb21b8712fe2f409f02a8b61521af6e4993d/numpy-1.24.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
"hash": "5e05b1c973a9f858c74367553e236f287e749465f773328c8ef31abe18f691e1",
"url": "https://files.pythonhosted.org/packages/e4/f3/679b3a042a127de0d7c84874913c3e23bb84646eb3bc6ecab3f8c872edc9/numpy-1.23.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
},
{
"algorithm": "sha256",
"hash": "6524630f71631be2dabe0c541e7675db82651eb998496bbe16bc4f77f0772253",
"url": "https://files.pythonhosted.org/packages/34/dc/7470dde137734e311c5203d0a5854e03da12d7bef60784937efcbb1f8c08/numpy-1.24.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"
"hash": "9c88793f78fca17da0145455f0d7826bcb9f37da4764af27ac945488116efe63",
"url": "https://files.pythonhosted.org/packages/0f/ae/dad4b8e7c65494cbbd1c063de114efaf9acd0f5f6171f044f0d4b6299787/numpy-1.23.5-cp310-cp310-macosx_10_9_x86_64.whl"
},
{
"algorithm": "sha256",
"hash": "eef70b4fc1e872ebddc38cddacc87c19a3709c0e3e5d20bf3954c147b1dd941d",
"url": "https://files.pythonhosted.org/packages/39/fd/217e9bf573f710827416e1e6f56a6355b90c2ce7fbf8b83d5729d5b2e0b6/numpy-1.24.2-cp310-cp310-macosx_10_9_x86_64.whl"
"hash": "1b1766d6f397c18153d40015ddfc79ddb715cabadc04d2d228d4e5a8bc4ded1a",
"url": "https://files.pythonhosted.org/packages/42/38/775b43da55fa7473015eddc9a819571517d9a271a9f8134f68fb9be2f212/numpy-1.23.5.tar.gz"
},
{
"algorithm": "sha256",
"hash": "e8d2859428712785e8a8b7d2b3ef0a1d1565892367b32f915c4a4df44d0e64f5",
"url": "https://files.pythonhosted.org/packages/8e/32/2bd17fccc5decf3b904888f4f86b89e367a009273c665cbbbbfe515b43df/numpy-1.24.2-cp310-cp310-macosx_11_0_arm64.whl"
"hash": "e9f4c4e51567b616be64e05d517c79a8a22f3606499941d97bb76f2ca59f982d",
"url": "https://files.pythonhosted.org/packages/4d/39/d33202cc56c21123a50c6d5e160d00c18ff685ab864dbd4bf80dd40a7af9/numpy-1.23.5-cp310-cp310-macosx_11_0_arm64.whl"
},
{
"algorithm": "sha256",
"hash": "003a9f530e880cb2cd177cba1af7220b9aa42def9c4afc2a2fc3ee6be7eb2b22",
"url": "https://files.pythonhosted.org/packages/e4/a9/6704bb5e1d1d778d3a6ee1278a8d8134f0db160e09d52863a24edb58eab5/numpy-1.24.2.tar.gz"
"hash": "7903ba8ab592b82014713c491f6c5d3a1cde5b4a3bf116404e08f5b52f6daf43",
"url": "https://files.pythonhosted.org/packages/67/6b/d7c93d458d16464da9b3f560a20c363a19e242ebbb019bd1e1d797523851/numpy-1.23.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"
}
],
"project_name": "numpy",
"requires_dists": [],
"requires_python": ">=3.8",
"version": "1.24.2"
"version": "1.23.5"
},
{
"artifacts": [
Expand All @@ -148,31 +147,31 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "fb33085c39dd998ac16d1431ebc293a8b3eedd00fd4a32de0ff79002c19511b4",
"url": "https://files.pythonhosted.org/packages/31/25/5abcd82372d3d4a3932e1fa8c3dbf9efac10cc7c0d16e78467460571b404/typing_extensions-4.5.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": "5cb5f4a79139d699607b3ef622a1dedafa84e115ab0024e0d9c044a9479ca7cb",
"url": "https://files.pythonhosted.org/packages/d3/20/06270dac7316220643c32ae61694e451c98f8caf4c8eab3aa80a2bedf0df/typing_extensions-4.5.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.7",
"version": "4.5.0"
"requires_python": ">=3.8",
"version": "4.10.0"
}
],
"platform_tag": null
}
],
"path_mappings": {},
"pex_version": "2.1.126",
"pip_version": "20.3.4-patched",
"pex_version": "2.1.148",
"pip_version": "23.1.2",
"prefer_older_binary": false,
"requirements": [
"mypy==1.1.1",
"numpy"
"mypy==1.9.0",
"numpy~=1.23.5"
],
"requires_python": [
"==3.10.*"
Expand Down
5 changes: 5 additions & 0 deletions 3rdparty/pytest-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pytest-repeat
pytest-randomly
pytest-icdiff
pygments
pytest-asyncio
Loading

0 comments on commit 5e9b817

Please sign in to comment.