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.ansible-lint: 5.0.2 -> 5.0.8 #122442
Conversation
Result of 2 packages failed to build:
Note that build failures may predate this PR, and could be nondeterministic or hardware dependent. Result of 2 packages failed to build:
Note that build failures may predate this PR, and could be nondeterministic or hardware dependent. |
@GrahamcOfBorg build ansible-lint |
Missing As you are on darwin the tests are disabled over there, maybe check if that is still necessary? |
Also Also And even then I get two test failures:
|
@mweinelt thanks, I didn't take into account that tests are disabled on darwin. I'll double check if that is still needed and in doubt will test on Linux. |
- Add missing test dependencies - Enable tests on darwin again - Adapt list of disabled tests
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.
Test are working now, here are a few improvement ideas, if you're interested.
- Enabled and fixed multiple previously disabled tests - Removed unneeded dependencies stdenv and git - Sorted lists - Parallelized the test suite
Many thanks for the suggestions @mweinelt. I also looked closer into the failing tests and could resolve all but two that requires network. I think I found two upstream bugs, but for now I fixed them with postPatch. |
--replace 'os.path.join(root, name)' 'os.path.normpath(os.path.join(root, name))' | ||
# fixes test_custom_kinds | ||
substituteInPlace src/ansiblelint/file_utils.py \ | ||
--replace "if name.endswith('.yaml') or name.endswith('.yml')" "" |
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.
Can you open up issues upstream and reference them here? I think that is all that is left to do.
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.
Yes, I'll do that
FYI: I'm currently updating ansible to 2.10 over in #122670, if you are interested in trying that out! 😉 |
@mweinelt Thanks again for the feedback. I noticed one thing since a couple of versions and wonder if you might have an idea (sorry, a bit off-topic now):
which somehow results in
Not really a big deal but somehow annoying. I tried to dig into it a bit but I did not understand where the |
Whoops. Sorry, I only looked at the latest change and pressed merge. Looking into your question now. |
The reason why the wheel is created and why it has no proper version is that the nativeBuildInputs are missing setuptools-scm. https://github.com/ansible-community/ansible-lint/blob/v5.0.8/pyproject.toml#L1-L8 Also for some reason I missed diff --git a/pkgs/development/python-modules/ansible-lint/default.nix b/pkgs/development/python-modules/ansible-lint/default.nix
index c6d66bc5315..d0df1119baf 100644
--- a/pkgs/development/python-modules/ansible-lint/default.nix
+++ b/pkgs/development/python-modules/ansible-lint/default.nix
@@ -2,7 +2,7 @@
, buildPythonPackage
, isPy27
, fetchPypi
-, python
+, setuptools-scm
, ansible
, enrich
, flaky
@@ -27,7 +27,9 @@ buildPythonPackage rec {
sha256 = "sha256-tnuWKEB66bwVuwu3H3mHG99ZP+/msGhMDMRL5fyQgD8=";
};
- buildInputs = [ python ];
+ nativeBuildInputs = [
+ setuptools-scm
+ ];
propagatedBuildInputs = [
ansible which results in this:
|
Thanks, I'll apply that on the next update. |
Motivation for this change
Various bug fixes and minor changes, see https://github.com/ansible-community/ansible-lint/releases/tag/v5.0.8
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)