-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ROCKS-987/docs-live-improvements
- Loading branch information
Showing
18 changed files
with
103 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
.. include:: /common/craft-parts/explanation/filesets.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
.. include:: /common/craft-parts/explanation/how_parts_are_built.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,6 @@ the motivations behind its development. | |
rocks | ||
pebble | ||
lifecycle-layer | ||
filesets | ||
parts | ||
lifecycle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
.. include:: /common/craft-parts/explanation/lifecycle.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
.. include:: /common/craft-parts/explanation/parts.rst |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ Rockcraft's components, commands and keywords. | |
rockcraft.yaml | ||
commands | ||
plugins | ||
parts_steps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
.. include:: /common/craft-parts/reference/parts_steps.rst | ||
|
||
.. include:: /common/craft-parts/step_execution_environment.rst | ||
|
||
.. include:: /common/craft-parts/step_output_directories.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,6 @@ Rockcraft. | |
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
plugins/dump_plugin | ||
plugins/python_plugin | ||
plugins/rust_plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
.. include:: /common/craft-parts/dump_plugin.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,33 @@ | ||
|
||
.. include:: /common/craft-parts/python_plugin.rst | ||
:end-before: .. _python-details-begin: | ||
|
||
Dependencies | ||
------------ | ||
|
||
Since none of the bases that are available for rocks contain a default Python | ||
installation, including a Python interpreter in Rockcraft projects is mandatory. | ||
The plugin also requires the ``venv`` module to create the virtual environment | ||
where Python packages are installed at build time. | ||
|
||
The easiest way to do this is to include the ``python3-venv`` package in the | ||
``stage-packages`` of the part that uses the Python plugin. This will pull in | ||
the default Python interpreter for the ``build-base``, like Python 3.10 for | ||
Ubuntu 22.04. However, other versions can be used by explicitly declaring them - | ||
here's an example that uses ``python3.12-venv`` from the Deadsnakes ppa: | ||
|
||
.. code-block:: yaml | ||
package-repositories: | ||
- type: apt | ||
ppa: deadsnakes/ppa | ||
priority: always | ||
parts: | ||
my-part: | ||
plugin: python | ||
source: . | ||
stage-packages: [python3.12-venv] | ||
.. include:: /common/craft-parts/python_plugin.rst | ||
:start-after: .. _python-details-end: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters