File: publish.rst

package info (click to toggle)
python-django-guid 3.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 664 kB
  • sloc: python: 1,267; makefile: 16
file content (31 lines) | stat: -rw-r--r-- 1,404 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Publish django-guid
===================

This site is intended for the contributors of ``django-guid``.

Publishing to test-PyPi
-----------------------

Before publishing a new version of the package, it is advisable that you publish a test-package. Among other things, this will flag any possible issues the current interation of the package might have.

Please note, to publish a test-package, you need to have a test-pypi API token.

Using the API token, you can publish a test-package by running:

.. code::

    poetry config repositories.test https://test.pypi.org/legacy/
    poetry config pypi-token.test <api-token>
    poetry publish --build --no-interaction --repository test

Publishing to PyPi
------------------

Publishing ``django-guid`` can be done by creating a github release in the ``django-guid`` repository. Before publishing a release, make sure that the version is consistent in ``django_guid/__init__.py``, ``pyproject.toml`` and in the title of the actual publication. The title of the release should simply be the version number and the release body should contain the changelog for the patch.

Read the docs
-------------

Read the docs documentation can be built locally by entering the ``docs`` folder and writing ``make html``.
It requires that you have installed ``sphinx`` and the theme we're using, which is ``sphinx_rtd_theme``. Both can be
installed through ``pip``.