-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Ansible py3 #49764
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
Ansible py3 #49764
Conversation
+1 for the removal of @GrahamcOfBorg build ansible_2_7 ansible-lint |
Success on aarch64-linux (full log) Attempted: ansible_2_7, ansible-lint Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: ansible_2_7, ansible-lint Partial log (click to expand)
|
At least it builds successfully with Python 3.6 |
Note on staging-next we've switched to |
@@ -4,13 +4,12 @@ | |||
, ansible | |||
, pytest | |||
, mock | |||
, isPy3k | |||
, python3Packages |
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.
Please never do this for packages called from python-packages.nix
!
Where is this package even used?
@@ -1,6 +1,6 @@ | |||
{ stdenv, fetchFromGitHub, pythonPackages, ansible }: | |||
{ stdenv, fetchFromGitHub, python3Packages, ansible }: |
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.
You might want to replace python3Packages
by python3
...
@@ -11,9 +11,9 @@ pythonPackages.buildPythonPackage rec { | |||
sha256 = "0cnfgxh5m7alzm811hc95jigbca5vc1pf8fjazmsakmhdjyfbpb7"; | |||
}; | |||
|
|||
propagatedBuildInputs = with pythonPackages; [ pyyaml six ] ++ [ ansible ]; | |||
propagatedBuildInputs = with python3Packages; [ pyyaml six ] ++ [ ansible ]; |
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.
... and ansible
by ansible.override { python3 = python3; }
.
That way, both are using the same set of python packages.
cc @Lassulus |
@Mic92 Shouldn't this go into the release notes? ansible_2_4 was dropped and the change to Python 3 introduced some potential incompatibilites (I see them myself) |
I guess mentioning the python3 switch is worth a changelog line. |
Why are |
Sounds like a sane thing to do. |
Added a note here that one of my PRs depend on this one moving to |
So what about this? I'd really love to have these features |
|
That's absolutely possible by adding e.g.
to |
Bumping this up because I really need it (currently pinning ansible manually to use python 3). |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)This PR should make #44413 obsolete.
closes #44413
I guess I need to provide an update to the release notes for 19.03, but I would first like to get some feedback it this change has the chance to get merged.
cc @jgeerds @joamaki @c0bw3b