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

Update pythonPackages.channels and dependencies #25243

Merged
merged 15 commits into from May 2, 2017

Conversation

lsix
Copy link
Member

@lsix lsix commented Apr 26, 2017

Motivation for this change

Sorry for the amount of changes in one PR, updating one component triggered many required related updates.

Some package have invalid syntax for python3 and caused nox-review to failed. I have disabled them for python3, to get nox pass properly.

cc @FRidh

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • 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.

@mention-bot
Copy link

@lsix, thanks for your PR! By analyzing the history of the files in this pull request, we identified @FRidh to be a potential reviewer.

@lsix lsix force-pushed the update_channels branch 2 times, most recently from 378d016 to 83b976c Compare April 26, 2017 15:52
@FRidh
Copy link
Member

FRidh commented Apr 30, 2017

@lsix looks good to me. Could you rebase this?

@lsix
Copy link
Member Author

lsix commented May 2, 2017

@FRidh rebased and conflicts merged !

@FRidh FRidh merged commit 53da833 into NixOS:master May 2, 2017
buildInputs = [ unittest2 mock pytest trollius pytest-asyncio ];
propagatedBuildInputs = [ six twisted txaio ];

disabled = !isPy3k;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are you disallowing python2.7 here? The upstream package claims Python2.7 support. This breaks any python package that depends on 2.7 and autobahn.

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right, this is missplaced. This should be in pytest-asyncio which is python3 only. But the problem will remain, tests cant pass for autobahn for python2. I have opened a PR to fix it and build autobahn for python2 while skiping tests (#25460).

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not that familiar with asyncio, but the upstream package uses trollius, which claims to be a backport of asyncio. Wouldn't that work here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, but tests will run pytest-asyncio, which contains code with python2 incompatible syntax (and incompatible language anyway). This is different from runtime dependencies needed to run autobahn. It might well work with python2 install but we cannot check it with the provided test suite.

I am updating to the recent release of autobahn and fix runtime dependencies.

@lsix lsix mentioned this pull request May 2, 2017
7 tasks
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

5 participants