Skip to content

Commit

Permalink
bump version of pants to 2.22.0 (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgolsson authored Sep 19, 2024
1 parent 314c015 commit a9f464a
Show file tree
Hide file tree
Showing 20 changed files with 1,259 additions and 963 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@ jobs:
- name: Setup Pages
uses: actions/configure-pages@v2

- name: Set up Python 3.9
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: 3.9
python-version: 3.11

- name: Tell Pants to use Python 3.9
- name: Tell Pants to use Python 3.11
run: |
echo "PY=python3.9" >> $GITHUB_ENV
echo "PANTS_PYTHON_INTERPRETER_CONSTRAINTS=['==3.9.*']" >> $GITHUB_ENV
echo "PY=python3.11" >> $GITHUB_ENV
echo "PANTS_PYTHON_INTERPRETER_CONSTRAINTS=['==3.11.*']" >> $GITHUB_ENV
- name: Initialize Pants
uses: pantsbuild/actions/init-pants@main
with:
gha-cache-key: cache0-docs-py3.9
gha-cache-key: cache0-docs-py3.11
named-caches-hash: ${{ hashFiles('pants-plugins/*.lock') }}

- name: Build docs
Expand Down
72 changes: 34 additions & 38 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@ jobs:

strategy:
matrix:
pants-version: ["2.18.0", "2.19.0", "2.20.0.dev7"]
pants-version: ["2.21.0", "2.22.0"]

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
- name: Set up Python 3.9 and 3.11
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: |
3.9
3.11
- name: Tell Pants to use Python 3.9
- name: Tell Pants to use Python 3.11
run: |
echo "PY=python3.9" >> $GITHUB_ENV
echo "PANTS_VERSION=${{ matrix.pants-version }}" >> $GITHUB_ENV
echo "PANTS_PYTHON_INTERPRETER_CONSTRAINTS=['==3.9.*']" >> $GITHUB_ENV
- name: Initialize Pants
uses: pantsbuild/actions/init-pants@main
with:
# cache0 makes it easy to bust the cache if needed
gha-cache-key: cache1-test-py3.9-pants${{ matrix.pants-version }}
gha-cache-key: cache1-test-py3.11-pants${{ matrix.pants-version }}
named-caches-hash: ${{ hashFiles('pants-plugins/*.lock') }}

- name: Test everything
Expand All @@ -49,26 +49,26 @@ jobs:

strategy:
matrix:
pants-version: ["2.18.0", "2.19.0", "2.20.0.dev7"]
pants-version: ["2.21.0", "2.22.0"]

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
- name: Set up Python 3.9 and 3.11
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: |
3.9
3.11
- name: Tell Pants to use Python 3.9
- name: Tell Pants to use Python 3.11
run: |
# echo "PY=python3.9" >> $GITHUB_ENV
# echo "PANTS_PYTHON_INTERPRETER_CONSTRAINTS=['==3.9.*']" >> $GITHUB_ENV
echo "PANTS_VERSION=${{ matrix.pants-version }}" >> $GITHUB_ENV
- name: Initialize Pants
uses: pantsbuild/actions/init-pants@main
with:
# cache0 makes it easy to bust the cache if needed
gha-cache-key: cache1-package-py3.9-pants${{ matrix.pants-version }}
gha-cache-key: cache1-package-py3.11-pants${{ matrix.pants-version }}
named-caches-hash: ${{ hashFiles('pants-plugins/*.lock') }}

- name: Package all targets
Expand All @@ -94,20 +94,18 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
- name: Set up Python 3.9 and 3.11
uses: actions/setup-python@v5
with:
python-version: 3.9

- name: Tell Pants to use Python 3.9
run: |
echo "PANTS_VERSION=2.19.0" >> $GITHUB_ENV
python-version: |
3.9
3.11
- name: Initialize Pants
uses: pantsbuild/actions/init-pants@main
with:
# cache0 makes it easy to bust the cache if needed
gha-cache-key: cache1-package-py3.9-pants2.19.0
gha-cache-key: cache1-package-py3.11-pants2.19.0
named-caches-hash: ${{ hashFiles('pants-plugins/*.lock') }}

- name: Package all targets
Expand All @@ -128,14 +126,13 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
- name: Set up Python 3.9 and 3.11
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Tell Pants to use Python 3.9
run: 'echo "PY=python3.9" >> $GITHUB_ENV
echo "PANTS_PYTHON_INTERPRETER_CONSTRAINTS=[''==3.9.*'']" >> $GITHUB_ENV
'
python-version: |
3.9
3.11
- name: Run linters on all targets
run: |
./get-pants.sh
Expand All @@ -146,14 +143,13 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
- name: Set up Python 3.9 and 3.11
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Tell Pants to use Python 3.9
run: 'echo "PY=python3.9" >> $GITHUB_ENV
echo "PANTS_PYTHON_INTERPRETER_CONSTRAINTS=[''==3.9.*'']" >> $GITHUB_ENV
'
python-version: |
3.9
3.11
- name: Validate that tailor files are up to date
run: |
./get-pants.sh
Expand Down
6 changes: 3 additions & 3 deletions examples/oci/layers/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
python_sources(
resolve="example-1",
interpreter_constraints=[">=3.9,<3.10"],
interpreter_constraints=[">=3.11,<3.12"],
)


Expand All @@ -10,7 +10,7 @@ pex_binary(
include_sources=False,
resolve="example-1",
layout="packed",
interpreter_constraints=[">=3.9,<3.10"],
interpreter_constraints=[">=3.11,<3.12"],
)

oci_layer(
Expand All @@ -24,7 +24,7 @@ pex_binary(
include_requirements=False,
resolve="example-1",
layout="packed",
interpreter_constraints=[">=3.9,<3.10"],
interpreter_constraints=[">=3.11,<3.12"],
)

oci_layer(
Expand Down
10 changes: 5 additions & 5 deletions examples/oci/multistage/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
python_sources(
resolve="example-1",
interpreter_constraints=[">=3.9,<3.10"],
interpreter_constraints=[">=3.11,<3.12"],
)

python_requirements(
Expand All @@ -18,7 +18,7 @@ pex_binary(
include_sources=False,
include_tools=True,
resolve="example-1",
interpreter_constraints=[">=3.9,<3.10"],
interpreter_constraints=[">=3.11,<3.12"],
)

oci_build_layer(
Expand All @@ -28,7 +28,7 @@ oci_build_layer(
commands="python /examples.oci.multistage/binary-deps.pex venv --scope=deps --compile /bin/app",
env=[
"PEX_TOOLS=1",
"PY=python3.9",
"PY=python3.11",
],
outputs=["bin/app/"],
)
Expand All @@ -40,7 +40,7 @@ pex_binary(
include_requirements=False,
include_tools=True,
resolve="example-1",
interpreter_constraints=[">=3.9,<3.10"],
interpreter_constraints=[">=3.11,<3.12"],
)

oci_build_layer(
Expand All @@ -50,7 +50,7 @@ oci_build_layer(
commands="python /examples.oci.multistage/binary-srcs.pex venv --scope=srcs --compile /bin/app",
env=[
"PEX_TOOLS=1",
"PY=python3.9",
"PY=python3.11",
],
outputs=["bin/app/"],
)
Expand Down
Loading

0 comments on commit a9f464a

Please sign in to comment.