Skip to content
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-jinja: 0.2.1 -> 1.1.0, Python 3 support #45763

Closed
wants to merge 1 commit into from

Conversation

lopsided98
Copy link
Contributor

Motivation for this change

Updates sphinx-jinja to the latest version, and enables Python 3 support.

Things done

The main issues with Python 3 support were that the tests were run with pytest when they were designed to be run with nose (pytest tried to inject fixtures into function arguments). Also there is an issue where a UTF-8 file is read in the tests without specifying a codec, which requires the locale to be set to UTF-8.

I also removed the blockdiag dependency, because I could not see how it was required. @nand0p why was blockdiag necessary?

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@lopsided98 lopsided98 requested a review from FRidh as a code owner August 29, 2018 19:06
pkgs/top-level/python-packages.nix Outdated Show resolved Hide resolved
@FRidh
Copy link
Member

FRidh commented Aug 29, 2018

Also there is an issue where a UTF-8 file is read in the tests without specifying a codec, which requires the locale to be set to UTF-8.

That's described in the Nixpkgs manual.

@lopsided98
Copy link
Contributor Author

I moved the package to its own file.

@Mic92
Copy link
Member

Mic92 commented Sep 3, 2018

@GrahamcOfBorg build sphinx-jinja

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: sphinx-jinja

Partial log (click to expand)

Cannot nix-instantiate `sphinx-jinja' because:
error: attribute 'sphinx-jinja' in selection path 'sphinx-jinja' not found

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: sphinx-jinja

Partial log (click to expand)

Cannot nix-instantiate `sphinx-jinja' because:
error: attribute 'sphinx-jinja' in selection path 'sphinx-jinja' not found

@GrahamcOfBorg
Copy link

No attempt on x86_64-linux (full log)

The following builds were skipped because they don't evaluate on x86_64-linux: sphinx-jinja

Partial log (click to expand)

Cannot nix-instantiate `sphinx-jinja' because:
error: attribute 'sphinx-jinja' in selection path 'sphinx-jinja' not found

@lopsided98
Copy link
Contributor Author

Superseded by #45890

@lopsided98 lopsided98 closed this Oct 12, 2018
@lopsided98 lopsided98 deleted the sphinx-jinja-update branch October 12, 2018 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants