Skip to content

Provide a way to publish Python packages #99

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

Closed
calder opened this issue May 15, 2018 · 7 comments
Closed

Provide a way to publish Python packages #99

calder opened this issue May 15, 2018 · 7 comments
Labels
Can Close? Will close in 30 days if there is no new activity type: feature request untriaged

Comments

@calder
Copy link
Contributor

calder commented May 15, 2018

Add a rule for building Python packages for distribution via PyPi. See https://github.com/horia141/bazel-pypi-package for an initial defunct attempt this.

@calder calder changed the title pip_export Add pip_export rule May 15, 2018
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days.
Collaborators can add an assignee to keep this open indefinitely. Thanks for your contributions to rules_python!

@github-actions github-actions bot added the Can Close? Will close in 30 days if there is no new activity label Apr 14, 2021
@rkhir
Copy link

rkhir commented May 3, 2021

Hello, is there an update on this issue? Or perhaps an alternative solution to publish Python packages?

@github-actions github-actions bot removed the Can Close? Will close in 30 days if there is no new activity label May 3, 2021
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days.
Collaborators can add an assignee to keep this open indefinitely. Thanks for your contributions to rules_python!

@github-actions github-actions bot added the Can Close? Will close in 30 days if there is no new activity label Nov 13, 2021
@github-actions
Copy link

This issue was automatically closed because it went 30 days without a reply since it was labeled "Can Close?"

@alexeagle alexeagle reopened this Jan 25, 2023
@alexeagle alexeagle changed the title Add pip_export rule Provide a way to publish Python packages Jan 25, 2023
@alexeagle
Copy link
Contributor

We now need this for rules_python itself, as we want to publish the runfiles library as a wheel to pypi.
I tried the simple thing of using twine via https://github.com/pypa/gh-action-pypi-publish but it failed our release https://github.com/bazelbuild/rules_python/actions/runs/4001340558/jobs/6867466794

In any event, I think this isn't a good solution because it's non-hermetic - you need python and twine and other stuff on the environment where you publish the wheel. I think we need a proper target that can be used with bazel run that does the publish, assuming nothing about the machine where it's run.

alexeagle added a commit that referenced this issue Jan 25, 2023
This is a pre-factoring to allow py_wheel to become a macro which produces a py_wheel rule, in addition to a publishing target.

Part of #99
alexeagle added a commit that referenced this issue Jan 25, 2023
This is a pre-factoring to allow py_wheel to become a macro which produces a py_wheel rule, in addition to a publishing target.

Part of #99
f0rmiga pushed a commit that referenced this issue Jan 25, 2023
This is a pre-factoring to allow py_wheel to become a macro which produces a py_wheel rule, in addition to a publishing target.

Part of #99
alexeagle added a commit that referenced this issue Jan 25, 2023
This gives us the place to insert other targets produced by it, such as a publishing target.

Part of #99
alexeagle added a commit that referenced this issue Jan 25, 2023
This gives us the place to insert other targets produced by it, such as a publishing target.

Part of #99
alexeagle added a commit that referenced this issue Jan 25, 2023
This gives us the place to insert other targets produced by it, such as a publishing target.

Part of #99
alexeagle added a commit that referenced this issue Jan 25, 2023
This gives us the place to insert other targets produced by it, such as a publishing target.

Part of #99
alexeagle added a commit that referenced this issue Jan 25, 2023
This gives us the place to insert other targets produced by it, such as a publishing target.

Part of #99
@github-actions
Copy link

This issue was automatically closed because it went 30 days without a reply since it was labeled "Can Close?"

@alexeagle alexeagle reopened this Feb 24, 2023
@alexeagle
Copy link
Contributor

0.18.2 should be released today which finally creates a [name].publish target on py_wheel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Can Close? Will close in 30 days if there is no new activity type: feature request untriaged
Projects
None yet
Development

No branches or pull requests

5 participants