Release HOWTO
=============

To make a release:

1. Update release date/version in NEWS.rst and pyproject.toml
2. Run ``./check``
3. Run ``./test``
4. Build the package: ``uv build``
5. Publish to PyPI: ``uv publish``
6. Increase version in pyproject and add -alpha (for next release)

Publishing to PyPI
==================

uv can publish to PyPI using either a token or credentials.

Option 1: Using a PyPI token
----------------------------

Set the token as an environment variable:

.. code-block:: bash

    export UV_HTTP_TOKEN=your-pypi-token
    uv publish

Or inline:

.. code-block:: bash

    UV_HTTP_TOKEN=your-token uv publish

Option 2: Using ~/.pypirc
--------------------------

Create ``~/.pypirc`` with your token:

.. code-block:: ini

    [pypi]
    username = __token__
    password = <your-pypi-token>

Then simply run:

.. code-block:: bash

    uv publish

Option 3: Build first, then publish
-----------------------------------

If you want to verify the build before publishing:

.. code-block:: bash

    uv build
    uv publish --username __token__ --password <your-token>

Testing
=======

Uses pytest http://pytest.org

::

    ./test
