Skip to content

Allow previous indygreg releases - #636

Merged
f0rmiga merged 1 commit into
bazel-contrib:f0rmiga/cpython-toolchainfrom
alexeagle:more_vers
Mar 3, 2022
Merged

Allow previous indygreg releases#636
f0rmiga merged 1 commit into
bazel-contrib:f0rmiga/cpython-toolchainfrom
alexeagle:more_vers

Conversation

@alexeagle

Copy link
Copy Markdown
Contributor

This gives us more python patch versions


required_platforms = [
"x86_64-apple-darwin",
"x86_64-pc-windows-msvc",

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note, there are windows distros of 3.8.10:

cpython-3.8.10-x86_64-pc-windows-msvc-shared-pgo-20210506T0943.tar.zst
cpython-3.8.10-x86_64-pc-windows-msvc-static-noopt-20210506T0943.tar.zst

but they don't follow the naming convention that darwin and linux use, so we'd have to make the templating even more complex. I think we can just say that windows is not always included in every patch version.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with this.

This gives us more python patch versions
@f0rmiga
f0rmiga merged commit e5664e2 into bazel-contrib:f0rmiga/cpython-toolchainMar 3, 2022
@f0rmiga
f0rmiga deleted the more_vers branch March 3, 2022 01:08
alexeagle pushed a commit to alexeagle/rules_python that referenced this pull request Mar 8, 2022
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
feat: compile zstd if missing
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: buildifier
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: make python_repositories reproducible
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
rename: python_repositories -> python_repository
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: linter
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
feat: make interpreter files publicly visible
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: add files to py_runtime
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
Account for some platforms not having all versions
Added windows support to hermetic toolchains (bazel-contrib#628)
* Added windows support to hermetic toolchains
* Update python/repositories.bzl
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* Update python/repositories.bzl
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* Update python/repositories.bzl
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* Update python/repositories.bzl
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
refactor: simplify logic for release urls
Also, added a helper target to print the release hashes.
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
feat: Provide a host platform alias (bazel-contrib#635)
* feat: Provide a host platform alias
This lets users and repository rules access the interpreter for whatever
host the repository is running on.
* Apply suggestions from code review
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: files excludes
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: macOS dislikes --recursive
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: buildifier issues
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
Allow previous indygreg releases (bazel-contrib#636)
This gives us more python patch versions
fix: put back zstd support for older releases
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: hash calculator
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
feat: use hermetic interpreter with pip_parse and pip_install
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: add missing attrs back for zstd
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: expose zstd attributes
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: normalize OS names
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: linting issues
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: support windows in the aliases
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: linting issues
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: windows python.exe instead of python3.exe
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: use consts for OS names
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
feat: always use latest toolchain for test
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: expose versions.bzl
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
refactor: move toolchain tests out of private
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
feat: acceptance tests for the toolchains
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: rewrite test in py to work on windows
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: README example
Co-authored-by: UebelAndre <github@uebelandre.com>
fix: use toolchain to run acceptance tests
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
feat: use matrix for acceptance tests
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: support acceptance_tests on windows
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
feat: alias for pip
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix?: include call to windows cmd
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
Fix windows acceptance tests (bazel-contrib#641)
* Fix windows acceptance tests
* test
* todo: remove
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
refactor: polishing Windows testing support
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: unset py2_runtime
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
rename: host -> resolved_interpreter
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
doc: add reference to quirks in python-build-standalone
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
feat: allow a distutils.cfg to be passed
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: buildifier (again)
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
Minor code review suggestions
alexeagle pushed a commit that referenced this pull request Mar 8, 2022
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
feat: compile zstd if missing
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: buildifier
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: make python_repositories reproducible
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
rename: python_repositories -> python_repository
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: linter
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
feat: make interpreter files publicly visible
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: add files to py_runtime
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
Account for some platforms not having all versions
Added windows support to hermetic toolchains (#628)
* Added windows support to hermetic toolchains
* Update python/repositories.bzl
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* Update python/repositories.bzl
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* Update python/repositories.bzl
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* Update python/repositories.bzl
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
refactor: simplify logic for release urls
Also, added a helper target to print the release hashes.
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
feat: Provide a host platform alias (#635)
* feat: Provide a host platform alias
This lets users and repository rules access the interpreter for whatever
host the repository is running on.
* Apply suggestions from code review
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: files excludes
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: macOS dislikes --recursive
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: buildifier issues
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
Allow previous indygreg releases (#636)
This gives us more python patch versions
fix: put back zstd support for older releases
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: hash calculator
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
feat: use hermetic interpreter with pip_parse and pip_install
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: add missing attrs back for zstd
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: expose zstd attributes
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: normalize OS names
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: linting issues
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: support windows in the aliases
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: linting issues
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: windows python.exe instead of python3.exe
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: use consts for OS names
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
feat: always use latest toolchain for test
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: expose versions.bzl
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
refactor: move toolchain tests out of private
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
feat: acceptance tests for the toolchains
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: rewrite test in py to work on windows
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: README example
Co-authored-by: UebelAndre <github@uebelandre.com>
fix: use toolchain to run acceptance tests
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
feat: use matrix for acceptance tests
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: support acceptance_tests on windows
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
feat: alias for pip
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix?: include call to windows cmd
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
Fix windows acceptance tests (#641)
* Fix windows acceptance tests
* test
* todo: remove
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
refactor: polishing Windows testing support
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: unset py2_runtime
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
rename: host -> resolved_interpreter
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
doc: add reference to quirks in python-build-standalone
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
feat: allow a distutils.cfg to be passed
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
fix: buildifier (again)
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
Minor code review suggestions
f0rmiga added a commit that referenced this pull request Mar 9, 2022
* feat: cpython toolchains for linux and macos
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* feat: compile zstd if missing
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: buildifier
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: make python_repositories reproducible
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* rename: python_repositories -> python_repository
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: linter
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* feat: make interpreter files publicly visible
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: add files to py_runtime
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* Account for some platforms not having all versions
* Added windows support to hermetic toolchains (#628)
* Added windows support to hermetic toolchains
* Update python/repositories.bzl
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* Update python/repositories.bzl
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* Update python/repositories.bzl
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* Update python/repositories.bzl
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* refactor: simplify logic for release urls
Also, added a helper target to print the release hashes.
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* feat: Provide a host platform alias (#635)
* feat: Provide a host platform alias
This lets users and repository rules access the interpreter for whatever
host the repository is running on.
* Apply suggestions from code review
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: files excludes
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: macOS dislikes --recursive
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: buildifier issues
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* Allow previous indygreg releases (#636)
This gives us more python patch versions
* fix: put back zstd support for older releases
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: hash calculator
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* feat: use hermetic interpreter with pip_parse and pip_install
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: add missing attrs back for zstd
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: expose zstd attributes
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: normalize OS names
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: linting issues
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: support windows in the aliases
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: linting issues
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: windows python.exe instead of python3.exe
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: use consts for OS names
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* feat: always use latest toolchain for test
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: expose versions.bzl
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* refactor: move toolchain tests out of private
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* feat: acceptance tests for the toolchains
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: rewrite test in py to work on windows
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: README example
Co-authored-by: UebelAndre <github@uebelandre.com>
* fix: use toolchain to run acceptance tests
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* feat: use matrix for acceptance tests
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: support acceptance_tests on windows
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* feat: alias for pip
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix?: include call to windows cmd
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* Fix windows acceptance tests (#641)
* Fix windows acceptance tests
* test
* todo: remove
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* refactor: polishing Windows testing support
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: unset py2_runtime
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* rename: host -> resolved_interpreter
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* doc: add reference to quirks in python-build-standalone
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* feat: allow a distutils.cfg to be passed
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: buildifier (again)
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* Minor code review suggestions (#642)
* Minor code review suggestions
* Apply suggestions from code review
Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
* fix: depset concat
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
Co-authored-by: Alex Eagle <alex@aspect.dev>
Co-authored-by: UebelAndre <github@uebelandre.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@alexeagle@f0rmiga