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.cmd2: 0.8.0 -> 0.9.1 #41934

Merged
merged 3 commits into from Jul 14, 2018
Merged

pythonPackages.cmd2: 0.8.0 -> 0.9.1 #41934

merged 3 commits into from Jul 14, 2018

Conversation

teto
Copy link
Member

@teto teto commented Jun 13, 2018

Motivation for this change

Many new features in cmd2 (subcommands/argparse support...)

The problem is that cmd2 dropped python support so I think we should keep both python2 compatible version (0.8.X) and the newest one. Is there any example of this ?

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 nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@Mic92
Copy link
Member

Mic92 commented Jun 13, 2018

Ipython does the same:

ipython = if isPy27 then self.ipython_5 else self.ipython_6;

version = "0.1.7";

src = fetchurl {
url = "mirror://pypi/w/wcwidth/${name}.tar.gz";
Copy link
Member

@Mic92 Mic92 Jun 13, 2018

Choose a reason for hiding this comment

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

fetchPypi instead of fetchurl

@teto
Copy link
Member Author

teto commented Jun 14, 2018

done

@teto
Copy link
Member Author

teto commented Jun 14, 2018 via email

@FRidh
Copy link
Member

FRidh commented Jun 14, 2018

name of the package is cmd2; the versions are respectively 0.8 and 0.9 so I believe cmd2_8 is better ?

Yes I just realized after my comment. It's a bit messy in this situation.

@teto teto changed the title [RFC] Cmd2 0.9.1 [RDY] Cmd2 0.9.1 Jun 14, 2018
teto added 2 commits June 15, 2018 03:46
...which is the last one with python2 support until ~ august 2018
@teto
Copy link
Member Author

teto commented Jun 18, 2018

should I move it to staging considering the number of rebuilds (kina impressed, must be the wcwidth change) ?

@Mic92
Copy link
Member

Mic92 commented Jun 19, 2018

No master should be ok.

@FRidh FRidh changed the title [RDY] Cmd2 0.9.1 pythonPackages.cmd2: 0.8.0 -> 0.9.1 Jul 10, 2018
@xeji
Copy link
Contributor

xeji commented Jul 14, 2018

@GrahamcOfBorg build python36Packages.cmd2_9 python36Packages.cmd2_8 python27Packages.cmd2_8

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: python36Packages.cmd2_9, python36Packages.cmd2_8, python27Packages.cmd2_8

Partial log (click to expand)

.......................                                                  [ 60%]
tests/test_parsing.py .................................................. [ 72%]
.................................................................        [ 87%]
tests/test_pyscript.py ........................                          [ 93%]
tests/test_transcript.py ...........................                     [100%]

==================== 407 passed, 10 skipped in 1.72 seconds ====================
/nix/store/gajy9rwljig2x7kq4k7c3h437v00r6xz-python3.6-cmd2-0.9.1
/nix/store/pv2frp0bq8xwa3fi3pxa7dqd7x9vc9vs-python3.6-cmd2-0.8.0
/nix/store/01j34rdk3hjlbbcara52y0986xnds7hv-python2.7-cmd2-0.8.0

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: python36Packages.cmd2_9, python36Packages.cmd2_8, python27Packages.cmd2_8

Partial log (click to expand)

.......................                                                  [ 60%]
tests/test_parsing.py .................................................. [ 72%]
.................................................................        [ 87%]
tests/test_pyscript.py ........................                          [ 93%]
tests/test_transcript.py ...........................                     [100%]

==================== 407 passed, 10 skipped in 7.83 seconds ====================
/nix/store/8ywxh437i4svh6jg9lzak8j4hxxcs4aq-python3.6-cmd2-0.9.1
/nix/store/0py9v84j2q3k4g5f7qmhzp5jari7r6wa-python3.6-cmd2-0.8.0
/nix/store/qf4ngs2xb4pz2qm6bk8hx5idywjbkdvm-python2.7-cmd2-0.8.0

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: python36Packages.cmd2_9, python36Packages.cmd2_8, python27Packages.cmd2_8

Partial log (click to expand)

Installing collected packages: cmd2
Successfully installed cmd2-0.9.1
/private/tmp/nix-build-python3.6-cmd2-0.9.1.drv-0/cmd2-0.9.1
post-installation fixup
strip is /nix/store/7ddbq63v97nk8gkbf7gcsfmby37h6gbl-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/igf8qk59q7jnmy52rc4fgnw2z3brbrs9-python3.6-cmd2-0.9.1/lib
patching script interpreter paths in /nix/store/igf8qk59q7jnmy52rc4fgnw2z3brbrs9-python3.6-cmd2-0.9.1
/nix/store/igf8qk59q7jnmy52rc4fgnw2z3brbrs9-python3.6-cmd2-0.9.1
/nix/store/v406iap6hnmqq5x9shckvvd3xqgjsbiq-python3.6-cmd2-0.8.0
/nix/store/wp1rwm12day9nv6121fxzdqgymipnfp6-python2.7-cmd2-0.8.0

@xeji xeji merged commit 27eb3c2 into NixOS:master Jul 14, 2018
@teto teto deleted the cmd2_0.9.1 branch September 5, 2021 00:56
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

6 participants