-
-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These are likely better than the Pex PEX for most Pex binary use cases since they include the management extra and run in `--venv` mode as well as providing BusyBox support for equal footing of the `pex`, `pex-tools` and `pex3` top-level commands.
- Loading branch information
Showing
16 changed files
with
228 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,7 +88,7 @@ jobs: | |
- name: Package Pex ${{ needs.determine-tag.outputs.release-tag }} PEX | ||
uses: pantsbuild/actions/run-tox@b16b9cf47cd566acfe217b1dafc5b452e27e6fd7 | ||
with: | ||
tox-env: package -- --embed-docs | ||
tox-env: package -- --embed-docs --scies --gen-md-table-of-hash-and-size dist/hashes.md | ||
- name: Generate Pex ${{ needs.determine-tag.outputs.release-tag }} PDF | ||
uses: pantsbuild/actions/run-tox@b16b9cf47cd566acfe217b1dafc5b452e27e6fd7 | ||
with: | ||
|
@@ -97,14 +97,20 @@ jobs: | |
uses: actions/attest-build-provenance@v1 | ||
with: | ||
subject-path: | | ||
dist/pex | ||
dist/pex* | ||
dist/docs/pdf/pex.pdf | ||
- name: Prepare Changelog | ||
id: prepare-changelog | ||
uses: a-scie/actions/[email protected] | ||
with: | ||
changelog-file: ${{ github.workspace }}/CHANGES.md | ||
version: ${{ needs.determine-tag.outputs.release-version }} | ||
- name: Append Hashes to Changelog | ||
run: | | ||
changelog_tmp="$(mktemp)" | ||
cat "${{ steps.prepare-changelog.outputs.changelog-file }}" <(echo '***') dist/hashes.md \ | ||
> "${changelog_tmp}" | ||
mv "${changelog_tmp}" "${{ steps.prepare-changelog.outputs.changelog-file }}" | ||
- name: Create ${{ needs.determine-tag.outputs.release-tag }} Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Copyright 2024 Pex project contributors. | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright 2024 Pex project contributors. | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
from __future__ import annotations | ||
|
||
import pkgutil | ||
from dataclasses import dataclass | ||
|
||
import toml | ||
|
||
|
||
@dataclass(frozen=True) | ||
class ScieConfig: | ||
@classmethod | ||
def load( | ||
cls, *, pbs_release: str | None = None, python_version: str | None = None | ||
) -> ScieConfig: | ||
data = pkgutil.get_data(__name__, "package.toml") | ||
assert data is not None, f"Expected to find a sibling package.toml file to {__file__}." | ||
scie_config = toml.loads(data.decode())["scie"] | ||
return cls( | ||
pbs_release=pbs_release or scie_config["pbs-release"], | ||
python_version=python_version or scie_config["python-version"], | ||
pex_extras=tuple(scie_config["pex-extras"]), | ||
platforms=tuple(scie_config["platforms"]), | ||
) | ||
|
||
pbs_release: str | ||
python_version: str | ||
pex_extras: tuple[str, ...] | ||
platforms: tuple[str, ...] |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.