-
Notifications
You must be signed in to change notification settings - Fork 69
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(docs): add python and poetry plugin docs #1940
base: main
Are you sure you want to change the base?
Conversation
b0ebaa0
to
df6780b
Compare
2. It uses :command:`poetry export` to create a ``requirements.txt`` in the project's | ||
build directory. | ||
3. It uses :command:`pip` to install the packages referenced in ``requirements.txt`` | ||
into the virtual environment, without any additional dependencies. |
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.
additional dependencies.
I don't fully understand what "additional" suggests here. Can you elaborate?
4. It copies the ``src`` and ``lib`` directories from your charm project into the | ||
final charm if they exist. |
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.
This might flow better, and avoid implying src && lib
, as:
4. It copies any existing ``src`` and ``lib`` directories from your charm project into the
final charm.
name: my-charm | ||
type: charm | ||
title: My operator charm | ||
summary: A charm that uses the operator framework | ||
description: A charm that uses the operator framework |
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.
I think it would be better if the metadata were germane to the Poetry plugin.
name: my-charm | ||
type: charm | ||
title: My operator charm | ||
summary: A charm that uses the operator framework | ||
description: A charm that uses the operator framework |
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.
Same here. How about we orient these around Python?
The Python plugin can be used for charms written in Python, typically for charms | ||
using the `Operator framework`_. |
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.
The Python plugin can be used for charms written in Python, typically for charms | |
using the `Operator framework`_. | |
The Python plugin builds charms written in Python. It's typically | |
used in conjunction with the `Operator framework`_. |
This plugin creates a Python virtual environment in the ``venv`` directory of your | ||
charm using the version of Python included with your base, using the requirements files | ||
provided in the ``python-requirements`` keyword. |
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.
This plugin creates a Python virtual environment in the ``venv`` directory of your | |
charm using the version of Python included with your base, using the requirements files | |
provided in the ``python-requirements`` keyword. | |
This plugin creates a Python virtual environment in the ``venv`` directory of your | |
charm using the version of Python included with your base and the requirements files | |
provided in the ``python-requirements`` key. |
directory. | ||
2. It uses :command:`pip` to install the required Python packages as configured | ||
in the ``python-requirements``, ``python-constraints`` and ``python-packages`` | ||
keywords. |
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.
keywords. | |
keys. |
2. It uses :command:`pip` to install the required Python packages as configured | ||
in the ``python-requirements``, ``python-constraints`` and ``python-packages`` |
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.
2. It uses :command:`pip` to install the required Python packages as configured | |
in the ``python-requirements``, ``python-constraints`` and ``python-packages`` | |
2. It uses :command:`pip` to install the required Python packages specified | |
by the ``python-requirements``, ``python-constraints`` and ``python-packages`` |
Food for thought. I think it's best if we don't overload "configure".
3. It copies the ``src`` and ``lib`` directories from your charm project into the | ||
final charm if they exist. |
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.
See earlier comment.
This adds documentation for the Python and Poetry plugins.
It builds upon #1939 and requires canonical/craft-parts#872
NOTE: This still needs a craft-parts update for all docs rendering to work properly, but please review what you can ITMT