-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
multiple definitions for std:label:python--m-build--v #12613
Comments
Note - it would have been nice if |
@jaraco it accepts URLs as an argument, not just files on disk. So you can still have a one-liner:
|
Thanks @jaraco - a quick acknowledgement here that I've begun reading this bugreport and am investigating. |
I think that we are going to have to reduce the severity level of this warning when loading |
@jayaddison you could consider making it an INFO logging message for now. We should, though, look at adding some logic in A |
Thanks @AA-Turner - agreed. Let's reduce the log severity for now so that this does not fail strict project builds. In terms of resolving the cause of the ambiguous entries: unless you or @jaraco already plan to file an upstream bugreport with I'm not too familiar with |
One subtlety I anticipate about the |
I'd suggest that they preference generating a long-option target where possible, and if not then fall back to the short-option name. E.g. A |
After reading the In other words: it does also produce unambiguous option names, and those could and should be preferred instead for use as reference targets. |
If we are to emit a warning at all, would it not be better for the warning to be emitted at "source", i.e. during the creation of the sphinx/sphinx/util/inventory.py Line 180 in 1743486
(or something domain specific) Obviously the problem with warning when reading the |
I think that makes sense @chrisjsewell, yep. I think I've slightly overloaded myself at the moment, but I should be able to get around to that within the next week or so. For completeness I'll mention that we do have a second warning location currently: when a reference target to an external project resolves ambiguously. I hope that's useful too, because informing people about creation of potentially-mislocated hyperlinks seems important to me. |
Please feel free to report the issue to
I'm not sure this condition is true in general. Yes, it's true for |
…loses #4474." This reverts commit aa41ab5. A fix has been released in 7.4.6 (sphinx-doc/sphinx#12615).
…version 71.0.0 Avasam (2): Rewrite marker evaluation to address two type check failures. Update `Requirement.__contains__` type spec to accept `UnparsedVersion`. Dimitri Papadopoulos (2): Ignore ruff/tryceratops rule TRY003 Fix 92989c2i / #4450 Jason R. Coombs (34): Declare the dependencies and update vendoring routine for setuptools (only) to simply install the dependencies to the _vendor folder. Specify environment-conditional transitive deps. Import dependencies naturally and ensure they're available by appending the vendor dir to sys.path. Re-vendor setuptools packages. Remove importlib_metadata workaround. Remove setuptools.extern Remove check-extern env in tox. Update vendoring routine for pkg_resources to simply install the dependencies to the _vendor folder. Import dependencies naturally and ensure they're available by appending the vendor dir to sys.path. Re-vendor pkg_resources packages. Remove obsolete 'rewrite' functionality from vendored script. Update auto-detect the minimum python version needed for vendored packages. Refresh vendored dependencies. Consolidate vendored packages in the setuptools package. Remove pkg_resources.extern. Clean up references to extern modules. Add news fragment. Suppress type errors around wheel. Fix type error in vendored tool. Fix incorrect type declaration in _python_requires. Fix type errors in pkg_resources, now that packaging types are recognized properly. Suppress coverage errors. Moved the dependencies to a 'core' extra to avoid dangers with cyclic dependencies at build time. Ensure that package data from vendored packages gets installed. Explicitly declare the 'core' extra as 'for informational purposes' Rely on os.path.join and os.path.dirname when adding the vendored path and only add it if it's not already present. Resolve a version from an item, addressing missed `arg-type` check. Pin pytest-ruff on Windows. Move workaround for #3921 to the local section, restoring upstream to match upstream. Exclude pytest-ruff (and thus ruff), which cannot build on cygwin. Bump version: 70.3.0 → 71.0.0 👹 Feed the hobgoblins (delint). Update intersphinx link to point to redirected target. Pin Sphinx to <7.4 as workaround for sphinx-doc/sphinx#12613. Closes #4474. Marco Treglia (1): Rename arguments on _EditableFinder and _EditableNamespaceFinder
@jayaddison Can you clarify why the behavior is to match case-insensitive, especially given that HTML matches them case-sensitive (so users might want to generate legal HTML with labels that vary only by case)? |
@jaraco I'd have to do some code history investigation to give a more confident answer, but I have two theories:
|
…version 71.1.0 Avasam (3): Enforce return types for typed public functions Update mypy to 1.11 Update pyproject.toml Dimitri Papadopoulos Orfanos (2): "preserve" does not require preview any more (jaraco/skeleton#133) Enforce ruff/Perflint rule PERF401 (jaraco/skeleton#132) Jason R. Coombs (9): Rely on pytest defaults for reporting. Revert "Pin Sphinx to <7.4 as workaround for sphinx-doc/sphinx#12613. Closes #4474." Revert "Fix error when integrating with pip (#3823)" 👹 Feed the hobgoblins (delint). Removed lingering unused code around Distribution._patched_dist. Re-enable preview, this time not for one specific feature, but for all features in preview. Bump version: 71.0.3 → 71.0.4 Switch to uv for vendoring. Bump version: 71.0.4 → 71.1.0 Michał Górny (1): Add Python version specifiers to [core] dependencies
Describe the bug
Similar to #12585, but apparently different, when attempting to build setuptools docs, a warning (treated as error) is emitted:
Originally reported in pypa/setuptools#4474 and pypa/build#795, I've traced the issue to Sphinx 7.4 (7.4.2, 7.4.4, and 7.4.5). Downgrading to Sphinx 7.3.7 bypasses the issue.
The warning can also be seen by simply downloading the inventory and parsing it with sphinx.
The label of concern exists twice and varies only by case, which is a meaningful distinction in HTML labels. The labels exist because the build project uses sphinx-argparse-cli and exposes command line parameters that vary only by case.
How to Reproduce
Environment Information
Sphinx extensions
Additional context
No response
The text was updated successfully, but these errors were encountered: