-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Handle wave of overdue deprecations #4066
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abravalheri
force-pushed
the
deprecations
branch
from
September 28, 2023 17:07
40ed2aa
to
e26bda4
Compare
A search in [`grep.app`](https://grep.app/search?q=%5Erequires%5Cs%2A%3D®exp=true&filter%5Bpath.pattern%5D%5B0%5D=setup.cfg) suggests that `requires` is not utilised in `setup.cfg`, so it should be safe to remove. `license_file` is not fundamental to make distributions work, so it should be safe to remove.
This interface is not super stable/usable yet, so it should be fine to remove.
… and post-pone deprecations for `setup.cfg` regarding hifens instead of underscores and upper-cased fields.
This way we don't have to see `DistutilsOptionError` in the error message.
abravalheri
force-pushed
the
deprecations
branch
from
November 17, 2023 14:06
e26bda4
to
b243818
Compare
Updated to include more overdue deprecations for Oct 2023. |
abravalheri
force-pushed
the
deprecations
branch
from
November 20, 2023 12:51
6553a44
to
b97814a
Compare
abravalheri
commented
Nov 20, 2023
In `pip` docs, the following example is mentioned: > python -m pip wheel --global-option bdist_ext --global-option -DFOO wheel Since both `--global-option` and `--build-option` are supposed to be compatible with `pip` options, we should not prevent this abuse... (Although it is still error prone and the user is responsible for understanding in detail what is going on how this accidentally works).
abravalheri
force-pushed
the
deprecations
branch
from
November 20, 2023 14:57
1f0f66c
to
a5a7505
Compare
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some deprecation warnings have been marked as due. Note that they were announced as deprecated at least a year ago (likely more than 1).
Summary of changes
setup.cfg
that have hyphens instead of underscores or are upper-cased.sdists
published to PyPI so I postponed this change for another year...setuptools._normalization.best_effort_version
can be used internally (this function will try very hard to sanitise the given version string).egg_base
option fromdist_info
.dist_info
is kind of an internal command that was created for the PEP 517 implementation, so we don't have much commitment in providing a public API for it.metadata.requires
fromsetup.cfg
.options.install_requires
grep.app
suggests thatmetadata.requires
is not utilised insetup.cfg
, so it should be safe to remove.metadata.license_file
fromsetup.cfg
.license_file
is not going to break core functionality of files, so it is low stakes.config_settings
--global-option
config_settings
is not very stable/usable. We still have lots of work on that regards...namespace-packages
frompyproject.toml
.implicit namespace packages <PyPUG:guides/packaging-namespace-packages>
(as defined in :pep:420
).project.dynamic
inpyproject.toml
.setup.py
without making the necessary changes topyproject.toml
(as mandated by :pep:612
).@jaraco please let me know if you have any objection/suggestion regarding this.
Pull Request Checklist
newsfragments/
.(See documentation for details)