Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor package_python_dist rule so most of the logic can be reused #18701

Merged

Conversation

cognifloyd
Copy link
Member

In #18639, I have a change to allow pants to do editable installs of python_distributions for in exported-mutable virtualenvs of user code.

I need all of the dist chroot setup that happens in the package_python_dist rule, so I extracted everything that creates DistBuildRequest into a separate helper function.

I would like this light refactoring to end up in 2.16.x so that I can implement #18639 as a plugin for 2.16.x, while waiting for #18639 to be merged and then released in a 2.17.x version.

@cognifloyd cognifloyd added needs-cherrypick category:internal CI, fixes for not-yet-released features, etc. backend: Python Python backend-related issues labels Apr 7, 2023
@cognifloyd cognifloyd added this to the 2.16.x milestone Apr 7, 2023
@cognifloyd cognifloyd requested a review from benjyw April 7, 2023 20:02
@cognifloyd cognifloyd self-assigned this Apr 7, 2023
@cognifloyd cognifloyd marked this pull request as ready for review April 7, 2023 20:02
@cognifloyd cognifloyd merged commit 37d49b6 into pantsbuild:main Apr 7, 2023
cognifloyd added a commit that referenced this pull request Apr 8, 2023
…d (Cherry-pick of #18701) (#18703)

In #18639, I have a change to allow pants to do editable installs of
`python_distribution`s for in exported-mutable virtualenvs of user code.

I need all of the dist chroot setup that happens in the
`package_python_dist` rule, so I extracted everything that creates
`DistBuildRequest` into a separate helper function.
illicitonion added a commit to illicitonion/pants that referenced this pull request Apr 10, 2023
Internal changes:

* refactor `package_python_dist` rule so most of the logic can be reused ([pantsbuild#18701](pantsbuild#18701))

* A Cloudflare Worker to handle requests to static.pantsbuild.org. ([pantsbuild#18685](pantsbuild#18685))

* No need to use lambda when setting help text for ruff ([pantsbuild#18690](pantsbuild#18690))

* Lint fixes - suggested by ruff and flake8 ([pantsbuild#18681](pantsbuild#18681))

* Skip flaky pantsd integration tests. ([pantsbuild#18665](pantsbuild#18665))

* Add types-beautifulsoup4 to default module mapping ([pantsbuild#18647](pantsbuild#18647))

* Prepare the 2.16.0rc0 release. ([pantsbuild#18645](pantsbuild#18645))

* Prepare the 2.14.2rc1 release. ([pantsbuild#18646](pantsbuild#18646))

* Prepare the 2.15.1rc1 release. ([pantsbuild#18644](pantsbuild#18644))
illicitonion added a commit that referenced this pull request Apr 10, 2023
Internal changes:

* refactor `package_python_dist` rule so most of the logic can be reused
([#18701](#18701))

* A Cloudflare Worker to handle requests to static.pantsbuild.org.
([#18685](#18685))

* No need to use lambda when setting help text for ruff
([#18690](#18690))

* Lint fixes - suggested by ruff and flake8
([#18681](#18681))

* Skip flaky pantsd integration tests.
([#18665](#18665))

* Add types-beautifulsoup4 to default module mapping
([#18647](#18647))

* Prepare the 2.16.0rc0 release.
([#18645](#18645))

* Prepare the 2.14.2rc1 release.
([#18646](#18646))

* Prepare the 2.15.1rc1 release.
([#18644](#18644))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend: Python Python backend-related issues category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants