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

allow to specify python dependencies in collections #62733

Closed
evgeni opened this issue Sep 23, 2019 · 3 comments
Closed

allow to specify python dependencies in collections #62733

evgeni opened this issue Sep 23, 2019 · 3 comments
Labels
affects_2.10 This issue/PR affects Ansible v2.10 feature This issue/PR relates to a feature request. support:core This issue/PR relates to code supported by the Ansible Engineering Team.

Comments

@evgeni
Copy link
Contributor

evgeni commented Sep 23, 2019

SUMMARY

Currently, Ansible Collections can only define dependencies on other collections (by using the dependencies keyword in galaxy.yml), which I think is the right thing to do at the ansible-galaxy collection install step.

However it would be useful to be able to define/document dependencies on Python libraries (like you can in the requirements keyword of an Ansible module).

The solution might be just documenting/using a requirements.txt like regular Python libraries do, but we should decide that as a project.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

lib/ansible/galaxy/collection.py

@ansibot
Copy link
Contributor

ansibot commented Sep 23, 2019

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibot ansibot added affects_2.10 This issue/PR affects Ansible v2.10 feature This issue/PR relates to a feature request. needs_triage Needs a first human triage before being processed. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Sep 23, 2019
@samdoran samdoran removed the needs_triage Needs a first human triage before being processed. label Oct 1, 2019
@samdoran
Copy link
Contributor

samdoran commented Oct 1, 2019

We have no plans to implement this feature at this time. Documenting this in the collection is the best solution. We cannot make assumptions about how packages are managed and installed, especially since modules can be written in languages other than Python.

To discuss this further, please reach out on IRC or the mailing list:

   * IRC: #ansible-devel on irc.freenode.net  
   * mailing list: https://groups.google.com/forum/#!forum/ansible-devel

@samdoran samdoran closed this as completed Oct 1, 2019
@evgeni
Copy link
Contributor Author

evgeni commented Oct 1, 2019

Oh yeah, I didn't expect ansible to manage these dependencies. Just looking for a way to express them in a better way than text in the readme.

@ansible ansible locked and limited conversation to collaborators Nov 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.10 This issue/PR affects Ansible v2.10 feature This issue/PR relates to a feature request. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

No branches or pull requests

3 participants