Skip to content

Commit

Permalink
Merge pull request #40 from zalando-incubator/fix-releasing
Browse files Browse the repository at this point in the history
Fix Read The Docs integration
  • Loading branch information
Thibaut Le Page committed Mar 5, 2019
2 parents cf130f8 + c9595e3 commit 680f435
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 7 deletions.
29 changes: 29 additions & 0 deletions docs/Versioning.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ unlikely to be fixed if they don't exist in the most recent release.

For all available releases, see the `releases page`_.

.. contents::
:local:

.. _releases page: https://github.com/zalando-incubator/Transformer/releases

Release process
Expand Down Expand Up @@ -39,6 +42,32 @@ The identifier of the new release must follow the :samp:`v{X}.{Y}.{Z}` format

In doubt, please refer to SemVer_, which is the source of these guidelines.

Update pyproject.toml
'''''''''''''''''''''

In :file:`pyproject.toml`, update the ``version`` value to ``X.Y.Z``.

.. code-block:: diff
[tool.poetry]
name = "har-transformer"
- version = "A.B.C"
+ version = "X.Y.Z"
Update the Sphinx config
''''''''''''''''''''''''

In :file:`docs/conf.py`, update the ``version`` and ``release`` values:

.. code-block:: diff
# The short X.Y version
- version = "A.B"
+ version = "X.Y"
# The full version, including alpha/beta/rc tags
- release = "A.B.C"
+ release = "X.Y.Z"
Update the changelog
''''''''''''''''''''

Expand Down
9 changes: 2 additions & 7 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,16 @@
# import sys
# sys.path.insert(0, os.path.abspath('.'))

import transformer
import packaging.version

# -- Project information -----------------------------------------------------

project = "Transformer"
copyright = "2019, Zalando"
author = "the Zalando maintainers"

_version = packaging.version.parse(transformer.__version__)

# The short X.Y version
version = ".".join(str(x) for x in _version.release[:2])
version = "1.0"
# The full version, including alpha/beta/rc tags
release = transformer.__version__
release = "1.0.2"


# -- General configuration ---------------------------------------------------
Expand Down

0 comments on commit 680f435

Please sign in to comment.