Skip to content

Commit

Permalink
docs: add changelog with notes for 1.6.0 (#734)
Browse files Browse the repository at this point in the history
Fixes #724

---------

Co-authored-by: Michael DuBelko <[email protected]>
Co-authored-by: Alex Lowe <[email protected]>
Co-authored-by: Matt Culler <[email protected]>
  • Loading branch information
4 people authored Oct 16, 2024
1 parent 9261dc7 commit 1bc77f7
Show file tree
Hide file tree
Showing 8 changed files with 171 additions and 4 deletions.
3 changes: 3 additions & 0 deletions docs/.wordlist.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
ACR
AMD
amd
ARGS
ASGI
Autotools
Expand Down Expand Up @@ -94,6 +96,7 @@ Podman
ppa
pre
pyfiglet
PPAs
PyPI
reStructuredText
rock's
Expand Down
3 changes: 3 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@
"https://github.com/canonical/pebble#layer-specification",
"https://juju.is/cloud-native-kubernetes-usage-report-2021#selection-criteria-for-container-images",
"https://matrix.to/#/#rocks:ubuntu.com",
# Ignore changelog links to Rockcraft releases, because the changelog entries
# are written before the actual release is tagged.
"https://github.com/canonical/rockcraft/releases/tag/.*",
]

rst_epilog = """
Expand Down
160 changes: 160 additions & 0 deletions docs/reference/changelog.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
:tocdepth: 2

.. Check out the bottom of the page for the release template
Changelog
*********

1.6.0 (2024-Oct-17)
-------------------

Core
====

- Rockcraft 1.6.0 updates Pydantic, the internal library
used to process ``rockcraft.yaml`` files, to a new major version. This change
should not have any user-visible consequences, but please report any issues on
`GitHub <https://github.com/canonical/rockcraft/issues>`_.
- Managed (non-destructive) runs now fail as expected if the build plan is
empty. For example, trying to build a project with only ``amd64`` in its
``platforms`` will now fail when building on a non-amd64
machine.
- ``package-repositories`` entries now support ``series`` and ``pocket`` for
``apt`` repositories, and ``key-id`` for PPAs.

Bases
#####

``bare``
""""""""

- ``bare``-based rocks now have a default ``PATH`` value set on the image,
following the behaviour of ``Pebble`` services.

Plugins
#######

``poetry``
""""""""""

- Add a new plugin for Python projects that use the `Poetry`_ build system.

Extensions
##########

fastapi-framework
"""""""""""""""""

- Add a new ``fastapi-framework`` extension for `FastAPI`_-based projects.

flask-framework
"""""""""""""""

- On ``bare``-based rocks, the extension now uses Chisel slices for the Python
interpreter.
- Add support for the ``[email protected]`` base.

django-framework
""""""""""""""""

- The ``django-framework`` extension is now stable and no longer requires the
``ROCKCRAFT_ENABLE_EXPERIMENTAL_EXTENSIONS`` environment variable.
- Add support for the ``[email protected]`` base.

go-framework
""""""""""""

- Add a new ``go-framework`` extension for Go-based projects.

Command line
============

- Improve reporting of builds that fail because they match multiple platforms.
- Improve error messages for invalid ``rockcraft.yaml`` files.
- The ``pack`` command now supports ``--shell`` and ``--shell-after``, and
correctly handles cases where the packing itself fails and the ``--debug``
argument is passed.
- The ``clean`` command now supports the ``--platform`` argument to filter which
build environments to clean.
- Positional arguments are now correctly displayed on the ``help`` output of
commands.
- The terminal cursor is now hidden during execution.

Init
====

- Add new ``--profile`` argument options for ``go-framework`` and
``fastapi-framework``.

Documentation
=============

- Add :ref:`reference documentation <craft_parts_poetry_plugin>` for the new
``poetry`` plugin.
- Add a :ref:`how-to guide <add_internal_user_to_a_rock>` on adding internal
users to rocks.
- Improve the ``flask-framework``
:ref:`tutorial <build-a-rock-for-a-flask-application>` based on user feedback.
- Add a :ref:`tutorial <build-a-rock-for-a-django-application>` for the
``django-framework`` extension.
- Add a :ref:`tutorial <build-a-rock-for-a-fastapi-application>` for the
``fastapi-framework`` extension.

For a complete list of commits, check out the `1.6.0`_ release on GitHub.


.. _FastAPI: https://fastapi.tiangolo.com
.. _Poetry: https://python-poetry.org

.. _1.6.0: https://github.com/canonical/rockcraft/releases/tag/1.6.0

..
release template:
X.Y.Z (YYYY-MMM-DD)
-------------------

Core
====

# for everything related to the lifecycle of packing a rock

Bases
#####

<[email protected]>
""""""""""""""
(order from newest base to oldest base)

Plugins
#######

<plugin>
""""""""

Extensions
##########

<extension>
"""""""""""

Metadata
########

Sources
#######


Command line
============

# for command line and UX changes

Init
====


Documentation
=============

For a complete list of commits, check out the `X.Y.Z`_ release on GitHub.
1 change: 1 addition & 0 deletions docs/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ Rockcraft's components, commands and keywords.
Extensions <extensions/index>
plugins
parts_steps
changelog
2 changes: 1 addition & 1 deletion docs/reuse/tutorial/setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ choice or simply use one of the already existing editors in your Ubuntu
environment (like ``vi``).

.. _`lxd-docker-connectivity-issue`: https://documentation.ubuntu.com/lxd/en/latest/howto/network_bridge_firewalld/#prevent-connectivity-issues-with-lxd-and-docker
.. _`install-multipass`: https://multipass.run/docs/how-to-install-multipass
.. _`install-multipass`: https://multipass.run/docs/install-multipass
2 changes: 1 addition & 1 deletion docs/tutorial/django.rst
Original file line number Diff line number Diff line change
Expand Up @@ -429,4 +429,4 @@ your changes are not taking effect (e.g. the ``/time/``
``rockcraft pack``.

.. _`lxd-docker-connectivity-issue`: https://documentation.ubuntu.com/lxd/en/latest/howto/network_bridge_firewalld/#prevent-connectivity-issues-with-lxd-and-docker
.. _`install-multipass`: https://multipass.run/docs/how-to-install-multipass
.. _`install-multipass`: https://multipass.run/docs/install-multipass
2 changes: 1 addition & 1 deletion docs/tutorial/fastapi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -418,4 +418,4 @@ your changes are not taking effect (e.g. the ``/time``
``rockcraft pack``.

.. _`lxd-docker-connectivity-issue`: https://documentation.ubuntu.com/lxd/en/latest/howto/network_bridge_firewalld/#prevent-connectivity-issues-with-lxd-and-docker
.. _`install-multipass`: https://multipass.run/docs/how-to-install-multipass
.. _`install-multipass`: https://multipass.run/docs/install-multipass
2 changes: 1 addition & 1 deletion docs/tutorial/flask.rst
Original file line number Diff line number Diff line change
Expand Up @@ -415,4 +415,4 @@ your changes are not taking effect (e.g. the ``/time``
``rockcraft pack``.

.. _`lxd-docker-connectivity-issue`: https://documentation.ubuntu.com/lxd/en/latest/howto/network_bridge_firewalld/#prevent-connectivity-issues-with-lxd-and-docker
.. _`install-multipass`: https://multipass.run/docs/how-to-install-multipass
.. _`install-multipass`: https://multipass.run/docs/install-multipass

0 comments on commit 1bc77f7

Please sign in to comment.