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
Closed
Closed
sphinx: 5.3.0 -> 7.0.1 #244625
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
fb4a272
sphinx: 5.3.0 -> 7.0.1
ncfavier 16d6eb6
setuptools: add hook to delete -nspkg.pth files
tjni 1cc3120
python310Packages.sphinxcontrib-applehelp: 1.0.2 -> 1.0.4
tjni 8e1f9b5
python310Packages.sphinxcontrib-httpdomain: rename from sphinxcontrib…
tjni b3dd023
python310Packages.sphinxcontrib-httpdomain: remove *-nspkg.pth file
tjni fd9b7b1
python310Packages.sphinxcontrib-newsfeed: rename from sphinxcontrib_n…
tjni b5b0936
python310Packages.sphinxcontrib-newsfeed: remove *-nspkg.pth file
tjni 379d1f6
python310Packages.sphinxcontrib-actdiag: remove *-nspkg.pth file
tjni f38f812
python310Packages.sphinxcontrib-apidoc: remove *-nspkg.pth file
tjni bc420b3
python310Packages.sphinxcontrib-bayesnet: remove *-nspkg.pth file
tjni d580661
python310Packages.sphinxcontrib-bibtex: remove *-nspkg.pth file
tjni 6378e24
python310Packages.sphinxcontrib-blockdiag: remove *-nspkg.pth file
tjni b87aeea
python310Packages.sphinxcontrib-confluencebuilder: 2.0.0 -> 2.1.1
tjni a30a761
python310Packages.sphinxcontrib-devhelp: remove *-nspkg.pth file
tjni 2a45827
python310Packages.sphinxcontrib-excel-table: add missing dependencies
tjni 6d5c715
python310Packages.sphinxcontrib-fulltoc: remove *-nspkg.pth file
tjni 51cba80
python310Packages.sphinxcontrib-htmlhelp: 2.0.0 -> 2.0.1
tjni 67a7415
python310Packages.sphinxcontrib-jsmath: remove *-nspkg.pth file
tjni 98405c8
python310Packages.sphinxcontrib-log-cabinet: remove *-nspkg.pth file
tjni 46d825f
python310Packages.sphinxcontrib-mscgen: remove *-nspkg.pth file
tjni c557181
python310Packages.sphinxcontrib-nwdiag: remove *-nspkg.pth file
tjni 3b3f73a
python310Packages.sphinxcontrib-openapi: remove *-nspkg.pth file
tjni 3b1f932
python310Packages.sphinxcontrib-plantuml: remove *-nspkg.pth file
tjni b863da4
python310Packages.sphinxcontrib-programoutput: remove *-nspkg.pth file
tjni 647c05b
python310Packages.sphinxcontrib-qthelp: remove *-nspkg.pth file
tjni 748da09
python310Packages.sphinxcontrib-seqdiag: remove *-nspkg.pth file
tjni ce42bdf
python310Packages.sphinxcontrib-serializinghtml: remove *-nspkg.pth file
tjni 84d5d2a
python310Packages.sphinxcontrib-spelling: no longer use pbr
tjni f6d8049
python310Packages.sphinxcontrib-tikz: remove *-nspkg.pth file
tjni 40cf003
python310Packages.sphinxcontrib-websupport: remove *-nspkg.pth file
tjni f1ba2a1
python310Packages.sphinxcontrib-youtube: 1.2.0 -> 1.3.0
tjni File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
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
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
28 changes: 28 additions & 0 deletions
28
pkgs/development/interpreters/python/hooks/setuptools-legacy-namespace-hook.sh
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Setup hook for setuptools. | ||
echo "Sourcing setuptools-legacy-namespace-hook" | ||
|
||
setuptoolsLegacyNamespaceFixupPhase() { | ||
echo "Executing setuptoolsLegacyNamespaceFixupPhase" | ||
|
||
# We are going to delete every *-nspkg.pth file, which is generated by | ||
# setuptools when a package uses the legacy namespace package code path | ||
# (when using the namespace_packages keyword in setup.{cfg,py}). | ||
# | ||
# These files can cause subtle problems when used alongside packages that | ||
# use a more modern code path that no longer generates those files. See: | ||
# | ||
# https://github.com/pypa/setuptools/discussions/3991 | ||
# | ||
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 | ||
else | ||
echo "No nspkg.pth file is generated anymore. Please remove the setuptoolsLegacyNamespaceHook hook." | ||
exit 1 | ||
fi | ||
|
||
echo "Finished executing setuptoolsLegacyNamespaceFixupPhase" | ||
} | ||
|
||
echo "Using setuptoolsLegacyNamespaceFixupPhase" | ||
preFixupPhases+=" setuptoolsLegacyNamespaceFixupPhase" |
35 changes: 0 additions & 35 deletions
35
...pment/python-modules/sphinx/0001-test-images-Use-normalization-equivalent-character.patch
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,38 +30,38 @@ | |
|
||
# check phase | ||
, cython | ||
, filelock | ||
, html5lib | ||
, pytestCheckHook | ||
, typed-ast | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "sphinx"; | ||
version = "5.3.0"; | ||
version = "7.0.1"; | ||
format = "pyproject"; | ||
|
||
disabled = pythonOlder "3.6"; | ||
disabled = pythonOlder "3.8"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "sphinx-doc"; | ||
repo = pname; | ||
rev = "refs/tags/v${version}"; | ||
hash = "sha256-80bVg1rfBebgSOKbWkzP84vpm39iLgM8lWlVD64nSsQ="; | ||
postFetch = '' | ||
cd $out | ||
mv tests/roots/test-images/testimäge.png \ | ||
tests/roots/test-images/testimæge.png | ||
patch -p1 < ${./0001-test-images-Use-normalization-equivalent-character.patch} | ||
# Change ä to æ in file names, since ä can be encoded multiple ways on different | ||
# filesystems, leading to different hashes on different platforms. | ||
cd "$out"; | ||
mv tests/roots/test-images/{testimäge,testimæge}.png | ||
sed -i 's/testimäge/testimæge/g' tests/{test_build*.py,roots/test-images/index.rst} | ||
''; | ||
hash = "sha256-DUUdHvmuxWw06ycH6qFE2LZ9GTzOqdvdPnye8cvVBOQ="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
flit-core | ||
]; | ||
|
||
propagatedBuildInputs = [ | ||
babel | ||
alabaster | ||
babel | ||
docutils | ||
imagesize | ||
jinja2 | ||
|
@@ -84,67 +84,20 @@ buildPythonPackage rec { | |
importlib-metadata | ||
]; | ||
|
||
__darwinAllowLocalNetworking = true; | ||
|
||
nativeCheckInputs = [ | ||
cython | ||
filelock | ||
html5lib | ||
pytestCheckHook | ||
] ++ lib.optionals (pythonOlder "3.8") [ | ||
typed-ast | ||
]; | ||
|
||
preCheck = '' | ||
export HOME=$(mktemp -d) | ||
export HOME=$TMPDIR | ||
''; | ||
|
||
disabledTests = [ | ||
# requires network access | ||
"test_anchors_ignored" | ||
"test_defaults" | ||
"test_defaults_json" | ||
"test_latex_images" | ||
|
||
# requires imagemagick (increases build closure size), doesn't | ||
# test anything substantial | ||
"test_ext_imgconverter" | ||
|
||
# fails with pygments 2.14 | ||
# TODO remove for sphinx 6 | ||
"test_viewcode" | ||
"test_additional_targets_should_be_translated" | ||
"test_additional_targets_should_not_be_translated" | ||
|
||
# sphinx.errors.VersionRequirementError: The alabaster extension | ||
# used by this project needs at least Sphinx v1.6; it therefore | ||
# cannot be built with this version. | ||
"test_needs_sphinx" | ||
|
||
# Likely due to pygments 2.14 update | ||
# AssertionError: assert '5:11:17\u202fAM' == '5:11:17 AM' | ||
"test_format_date" | ||
] ++ lib.optionals stdenv.isDarwin [ | ||
# Due to lack of network sandboxing can't guarantee port 7777 isn't bound | ||
"test_inspect_main_url" | ||
"test_auth_header_uses_first_match" | ||
"test_linkcheck_allowed_redirects" | ||
"test_linkcheck_request_headers" | ||
"test_linkcheck_request_headers_no_slash" | ||
"test_follows_redirects_on_HEAD" | ||
"test_get_after_head_raises_connection_error" | ||
"test_invalid_ssl" | ||
"test_connect_to_selfsigned_with_tls_verify_false" | ||
"test_connect_to_selfsigned_with_tls_cacerts" | ||
"test_connect_to_selfsigned_with_requests_env_var" | ||
"test_connect_to_selfsigned_nonexistent_cert_file" | ||
"test_TooManyRedirects_on_HEAD" | ||
"test_too_many_requests_retry_after_int_del" | ||
"test_too_many_requests_retry_after_HTTP_date" | ||
"test_too_many_requests_retry_after_without_header" | ||
"test_too_many_requests_user_timeout" | ||
"test_raises_for_invalid_status" | ||
"test_auth_header_no_match" | ||
"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 commentThe reason will be displayed to describe this comment to others. Learn more. Can you update the meta of https://github.com/NixOS/nixpkgs/pull/249230/files#diff-0502dd4cb83cdba6f252045e2ffd96d11d10e86fd251ec96664f10ba7c9f0146R163 here? |
||
|
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
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
12 changes: 8 additions & 4 deletions
12
pkgs/development/python-modules/sphinxcontrib-applehelp/default.nix
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
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
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
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
17 changes: 10 additions & 7 deletions
17
pkgs/development/python-modules/sphinxcontrib-confluencebuilder/default.nix
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
Oops, something went wrong.
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.
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.
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 secondfind
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.