-
Notifications
You must be signed in to change notification settings - Fork 40
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
feat: vendor hcloud python dependency #244
Conversation
1331134
to
478696c
Compare
@jooola so I looked into this PR and have a few points to make:
|
Oh nice, I didn't know about In addition, in the README I read: "This tool has no stability promises -- it has only one intended user: pip" So I think I'd prefer to stay away from this tool, and use a simple script with no dependency. I am not sure to understand what "this" is referring to. Could you elaborate please? |
f830de4
to
21d9529
Compare
This==your vendoring check. |
It's integrated somewhere in
True, though this is solvable by pinning it to a precise version that works for you. |
Here's some calls: https://github.com/pypa/pip/blob/b88adde/noxfile.py#L198-L243. Here's some docs: https://github.com/pypa/pip/tree/b88adde/src/pip/_vendor#automatic-vendoring |
ae1776e
to
143a2ab
Compare
@webknjaz I appreciate the links, but we will not be using the Regarding the pre-commit point (1.), I prefer to move the discussion to a separate issue, so we don't mix everything up. We can always remove this pre-commit hook in the future. |
Hi @resmo @felixfontein, if you find some time, could I have a small review please? This PR should fix #211 #217 #218 |
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.
🥳 Works for me!
* chore: ignore venv directories * chore: ignore integration test generated inventory * feat: vendor hcloud package * import https://github.com/hetznercloud/hcloud-python * use vendored hcloud in modules * update integration test requirements * make vendor script self contained * chore: add check-hcloud-vendor pre-commit hook * pin hcloud version to v.1.24.0 * move vendored __version__.py file to _version.py * update comment about galaxy-importer filename lint
* chore: ignore venv directories * chore: ignore integration test generated inventory * feat: vendor hcloud package * import https://github.com/hetznercloud/hcloud-python * use vendored hcloud in modules * update integration test requirements * make vendor script self contained * chore: add check-hcloud-vendor pre-commit hook * pin hcloud version to v.1.24.0 * move vendored __version__.py file to _version.py * update comment about galaxy-importer filename lint
* chore: ignore venv directories * chore: ignore integration test generated inventory * feat: vendor hcloud package * import https://github.com/hetznercloud/hcloud-python * use vendored hcloud in modules * update integration test requirements * make vendor script self contained * chore: add check-hcloud-vendor pre-commit hook * pin hcloud version to v.1.24.0 * move vendored __version__.py file to _version.py * update comment about galaxy-importer filename lint
SUMMARY
This PR vendors the hcloud python dependency inside the ansible collection.
Fixes #211
Fixes #217
Fixes #218
ISSUE TYPE
COMPONENT NAME
module_utils