-
-
Notifications
You must be signed in to change notification settings - Fork 14.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
sphinx: 5.3.0 -> 7.0.1 #244625
sphinx: 5.3.0 -> 7.0.1 #244625
Conversation
ae0a543
to
42a6ba4
Compare
# | ||
SETUPTOOLS_NSPKG_PTH_FILES="$(find "$out/lib" -type f -name '*-nspkg.pth')" | ||
if [[ -n "$SETUPTOOLS_NSPKG_PTH_FILES" ]]; then | ||
find "$out/lib" -type f -name '*-nspkg.pth' -delete |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
find "$out/lib" -type f -name '*-nspkg.pth' -delete | |
rm $SETUPTOOLS_NSPKG_PTH_FILES |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Calling find
twice is less efficient, but I did it on purpose just in case the hook finds more than one -nspkg.pth
file. The second find
call handles deletion properly even if there are spaces in the file name. I can also limit the code to only deleting the first file found, or leave a better comment. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we tell find to exit with an error if it can't find files and then delete them right away?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know how to get find
to work that way from reading the man page and testing a few things locally.
pkgs/development/interpreters/python/hooks/setuptools-legacy-namespace-hook.sh
Outdated
Show resolved
Hide resolved
I also tried updating sphinx to 7.1.0, which was released yesterday, but hesitant due to sphinx-doc/sphinx#11514. |
This will also take care of changing the names of |
cceedbd
to
3f1211a
Compare
"test_follows_redirects_on_GET" | ||
"test_connect_to_selfsigned_fails" | ||
] ++ lib.optionals isPyPy [ | ||
disabledTests = lib.optionals isPyPy [ | ||
# PyPy has not __builtins__ which get asserted | ||
# https://doc.pypy.org/en/latest/cpython_differences.html#miscellaneous | ||
"test_autosummary_generate_content_for_module" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ofborg build python3.pkgs.wrapt |
closing in favor of #259350 |
Description of changes
This change also touches all of the
sphinxcontrib-*
packages.We need to do a pass over all of them because, due to pypa/setuptools#3991, any of these packages that use the legacy setuptools namespace package code path need to remove the generated nspkg.pth file so that they play nice with the others that have migrated off of that code path. This logic is currently encapsulated in a setup hook.
As always, I am open to other approaches that solve this problem.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)