-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
python3.pkgs.sphinxcontrib-openapi: unbreak, switch to cilium fork #188280
Conversation
Hmmh, this still seems to fail to execute, showing a
…that's also visible in the (currently disabled) tests. I need to take a look. |
475bd57
to
84299d3
Compare
I got it to work! Unfortunately, I wasn't able to get the test suite to parse, but considering it's also disabled for all other sphinx-related python packages too, it's probably not too much of an issue. |
This apparently got introduced in cilium/openapi@a1d4fca (so I commented there). We could probably just pin the commit before that instead of undoing the change in a patch but I'd rather see it fixed in |
I sent a PR at cilium/openapi#1. |
84299d3
to
fb779b2
Compare
The prefix for python is |
pkgs/development/python-modules/sphinxcontrib-openapi/default.nix
Outdated
Show resolved
Hide resolved
pkgs/development/python-modules/sphinxcontrib-openapi/default.nix
Outdated
Show resolved
Hide resolved
Yes, I used the python39 prefix in the PR to convey this unbreaks at least the python 3.9 version of the package - meaning if you assemble a python 3.9 environment with sphinx and this PR, you can render docs. Of course, once ikalnytskyi/picobox#55 is fixed, we should relax the version bounds in picobox. Until the tests pass, I don't want to mark picocom as not broken on 3.10. |
9ed219d
to
4474c8e
Compare
Apparently, the python 3.10 fix for picobox is already in master, there just hasn't been a release yet. I Likewise, In both cases, I linked to the issue/comment asking for a release containing the fixes. I'd like to wait until cilium/openapi#1 is merged before merging this PR in, so we can point to the final commit there, too. |
eadc896
to
62867eb
Compare
cilium/openapi#1 has been merged, this PR was updated. This is ready from my side. |
This adds a dependency needed for recent sphinxcontrib-openapi.
This fork uses m2r instead of mdinclude. m2r is unmaintained and incompatible with recent versions of mistune. See - cilium/cilium@b986246 - cilium/openapi@cd829a0 for details.
62867eb
to
4c9c4cf
Compare
sphinx-mdinclude did just release 0.5.2, containing the patch, so I updated the version to this and dropped the patch. |
pname = "picobox"; | ||
version = "2.2.0"; | ||
|
||
disabled = isPy27; |
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.
This should be pythonOlder "3.7"
[Follow-up] @flokli Hi, the PR to upstream the changes from the cilium fork has been merged a few weeks ago (sphinx-contrib/openapi#127), and a new tag has been created for sphinx/openapi (https://github.com/sphinx-contrib/openapi/releases/tag/0.8.0), so you probably want to revert to that source. We probably won't keep the cilium/ fork forever. |
Upstream incorporated the changes present in the cilium fork into their repository, and tagged a new release (0.8.0). We can switch back to the upstream version, rather than the temporary fork. See #188280 (comment)
Description of changes
This fork uses m2r instead of mdinclude.
m2r is unmaintained and incompatible with recent versions of mistune (and old ones are insecure).
See
for details.
This PR also packages
picobox
andsphinx_mdinclude
, which are new dependencies ofsphinxcontrib-openapi
.Due to
picobox
being incompatible with Python 3.10 currently, this only unbreakspython39.pkgs.sphinxcontrib-openapi
, but it's better than not being able to render openapi stuff at all.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/
)nixos/doc/manual/md-to-db.sh
to update generated release notes