-
Notifications
You must be signed in to change notification settings - Fork 541
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
py_wheel support in bzlmod #1369
Comments
FYI we have it working at pip.parse(
hub_name = "publish_deps",
python_version = "3.10",
requirements_darwin = "@rules_python//tools/publish:requirements_darwin.txt",
requirements_lock = "@rules_python//tools/publish:requirements.txt",
requirements_windows = "@rules_python//tools/publish:requirements_windows.txt",
)
use_repo(pip, "publish_deps_310_twine", #extras ) It would help if this entry was in |
@aignas how can we add this as a test? |
That users have to manually define twine is annoying, but is consistent with workspace. From https://rules-python.readthedocs.io/en/latest/api/packaging.html#py-wheel
So it's OK to still require users add something to MODULE.bazel to make twine work. I'm just talking about bzlmod feature parity; a separate FR so that users don't have to do this themselves makes sense. That said:
I'm not a fan of that, since it's (1) version specific, and (2) I think the "310" part is an internal detail leaking out. The workspace equiv is Is that old code perhaps? I would think |
The code that accepts the |
Implements a test that starts a [`pypiserver`] and checks that the publishing with the new machinery still works. Fixes #1369 [pypiserver]: https://github.com/pypiserver/pypiserver
We don't currently have any tests verifying py_wheel works under bzlmod. I don't think any of us have tried it out ourselves, either.
It should just work. I don't recall it doing anything particularly special, but you never know.
So, at the least, manually verify it works and post the result here. Ideally, add some tests to verify it actually works.
The text was updated successfully, but these errors were encountered: