-
-
Notifications
You must be signed in to change notification settings - Fork 631
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
Deprecate setup_py()
in favour of python_distribution
#12410
Comments
How would this work, technically? As Do we add all possible fields from Adding all fields supported by |
I was wondering the exact same thing. I agree that adding every additional field is unmaintainable. I think an The But then we also hit an awkward part of the Target API: the fields need to be hashable, which is why things like |
But I get the nagging feeling that we simply rename stuff, that way... hmm.. but maybe not so bad after all, if |
On a second thought on the field name for those extra args.. what it would look like when used, I think simply python_distribution(
name="my-distro",
version="1.2.4",
setup={
"classifiers": "Tooling :: CI/CD :: Development",
}
)
# vs
python_distribution(
name="my-distro",
version="1.2.4",
extra_kwargs={
"classifiers": "Tooling :: CI/CD :: Development",
}
) perhaps with a check on what fields are used for |
Or maybe I agree this is a big improvement over having this weird, underdocumented |
This issue is still a good idea I think, but see #14832 as a proposal to make objects less hacky.
I think it's a good idea because right now we are polluting the global namespace with something specific to only -- I think the only blocker to this PR is figuring out how to
|
Personally, I would love to see setup.py just disappear; i don't want a generated setup.py either. With my anti-
So, I see two directions we could take to use this:
Or maybe some combo of modifying the pyproject.toml to add info specified in the BUILD metadata (like dependencies), and sourcing other metadata from the in-worktree copy (like the package name and version). |
As commented by @jsirois, the
setup_py()
construct no longer fulfills its purpose as a standalone construct.#11808 (comment)
This ticket is for deprecating
setup_py()
with new fields directly onpython_distribution()
instead.The text was updated successfully, but these errors were encountered: