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

pythonPackages.fire: 0.1.3 -> 0.2.1 #67571

Merged
merged 1 commit into from Sep 10, 2019
Merged

pythonPackages.fire: 0.1.3 -> 0.2.1 #67571

merged 1 commit into from Sep 10, 2019

Conversation

leenaars
Copy link
Contributor

Motivation for this change

Version bump.

Things done
  • 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 nix-review --run "nix-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)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @

@lsix
Copy link
Member

lsix commented Aug 27, 2019

Hi,

Apparently, the python2 version requires enum34 (not documented upstream as far as I can tell):

~ NIX_PATH=nixpkgs=${HOME}/.cache/nix-review/pr-67571-2/nixpkgs nix-shell -p 'python.withPackages (ps: [ ps.fire ])' --command  "python -c 'import fire'"                             
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/nix/store/f04jmfb4cl7qmaqps27phbi98siy6539-python-2.7.16-env/lib/python2.7/site-packages/fire/__init__.py", line 21, in <module>
    from fire.core import Fire
  File "/nix/store/f04jmfb4cl7qmaqps27phbi98siy6539-python-2.7.16-env/lib/python2.7/site-packages/fire/core.py", line 65, in <module>
    from fire import completion
  File "/nix/store/f04jmfb4cl7qmaqps27phbi98siy6539-python-2.7.16-env/lib/python2.7/site-packages/fire/completion.py", line 25, in <module>
    from fire import inspectutils
  File "/nix/store/f04jmfb4cl7qmaqps27phbi98siy6539-python-2.7.16-env/lib/python2.7/site-packages/fire/inspectutils.py", line 22, in <module>
    from fire import docstrings
  File "/nix/store/f04jmfb4cl7qmaqps27phbi98siy6539-python-2.7.16-env/lib/python2.7/site-packages/fire/docstrings.py", line 61, in <module>
    import enum
ImportError: No module named enum

Could you add it as an optional dependency for the python2 version?

@lsix
Copy link
Member

lsix commented Aug 27, 2019

Reported upstream in google/python-fire#191

Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Odd, I was able to run the tests without needing the enum module

nix-review passes on NixOS
diff LGTM (Although, it should apply Isix's fixes)
leaf package

[4 built, 15 copied (10.3 MiB), 1.7 MiB DL]
https://github.com/NixOS/nixpkgs/pull/67571
2 package were build:
python27Packages.fire python37Packages.fire

@leenaars
Copy link
Contributor Author

leenaars commented Sep 10, 2019

Could you add it as an optional dependency for the python2 version?

Added. Thanks for reporting upstream, @lsix

@lsix
Copy link
Member

lsix commented Sep 10, 2019

👍

Just tested the result, all good for me.

Thanks.

@lsix lsix merged commit 9c171d2 into NixOS:master Sep 10, 2019
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

3 participants