feat: initial release

This commit is contained in:
Lance Edgar 2024-08-27 19:18:35 -05:00
commit 9dfe2a8d6b
24 changed files with 1370 additions and 0 deletions
docs/narr

45
docs/narr/install.rst Normal file
View file

@ -0,0 +1,45 @@
Installation
============
This assumes you already have a :doc:`WuttJamaican app+database
<wuttjamaican:narr/install/index>` setup and working.
Install the Wutta-Continuum package to your virtual environment:
.. code-block:: sh
pip install Wutta-Continuum
Edit your :term:`config file` to enable Wutta-Continuum versioning:
.. code-block:: ini
[wutta_continuum]
enable_versioning = true
.. note::
The above *must* be done via config file; the :term:`settings
table` will not work.
Another edit required to your config file, is to make Alembic aware of
this package for database migrations. You should already have an
``[alembic]`` section, but now must update it like so:
.. code-block:: ini
[alembic]
script_location = wuttjamaican.db:alembic
version_locations = wuttjamaican.db:alembic/versions wutta_continuum.db:alembic/versions
Then (as you would have done previously in
:ref:`wuttjamaican:db-setup`) you can migrate your database to add the
versioning tables:
.. code-block:: sh
cd /path/to/env
bin/alembic -c /path/to/my.conf upgrade heads
And that's it, the versioning/history feature should be setup and working.