-
Notifications
You must be signed in to change notification settings - Fork 71
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
docs: add howto guides for switching from the charm plugin #1967
base: main
Are you sure you want to change the base?
Conversation
This adds howto guides to switch from the charm plugin to the python and poetry plugins.
95567bd
to
1347d86
Compare
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.
Very clear!
Gave this a go here: jnsgruk/zinc-k8s-operator#288 Might be worth including a section about using I guess they could also use Edit: lots of failed integration tests when I changed to this; will investigate. |
Heh. The python plugin doesn't seem to have included any
Edit: switched to the
Alas, no dice on deploying, though...
|
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.
Thanks for putting these together!
docs/howto/charm-to-poetry.rst
Outdated
@@ -0,0 +1,107 @@ | |||
.. _howto-migrate-to-poetry: | |||
|
|||
Migrate from the ``charm`` plugin to Poetry |
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.
For consistency with existing docs and docs best practices, we should use the form Charm plugin
and Python plugin
.
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.
Changed!
docs/howto/charm-to-python.rst
Outdated
Migrate from the ``charm`` plugin to the ``python`` plugin | ||
========================================================== | ||
|
||
The ``python`` Charmcraft plugin offers a faster, stricter means of packing an operator |
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.
Charmcraft plugin
Do we need to be this specific here? "Python Charmcraft plugin" tripped me up as a phrase.
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, because it works slightly differently from the Rockcraft plugin, the Snapcraft plugin, etc.
Co-authored-by: Michael DuBelko <michael.dubelko@gmail.com>
Select compatible versions of ``pip`` and ``poetry`` | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
The ``poetry`` plugin requires at least pip 22.3, released in October 2022. If the |
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 ``poetry`` plugin requires at least pip 22.3, released in October 2022. If the | |
The Poetry plugin requires at least `pip 22.3 | |
<https://pypi.org/project/pip/22.3>`_, released in October 2022. If the |
Include extra files | ||
------------------- | ||
|
||
A ``poetry`` plugin only includes the contents of the ``src`` and ``lib`` directories |
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.
A ``poetry`` plugin only includes the contents of the ``src`` and ``lib`` directories | |
A Poetry plugin only includes the contents of the ``src`` and ``lib`` directories |
Migrate from the Charm plugin to the Python plugin | ||
================================================== | ||
|
||
The Python Charmcraft plugin offers a faster, stricter means of packing an operator |
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 Charmcraft plugin offers a faster, stricter means of packing an operator | |
The Python plugin in Charmcraft offers a faster, stricter means of packing an operator |
This adds howto guides to switch from the charm plugin to the python and poetry plugins.