From 3f7632ac3cee0b7fd45be7d4a4031555d2b540f7 Mon Sep 17 00:00:00 2001 From: scls19fr Date: Wed, 30 Oct 2019 16:06:27 +0100 Subject: [PATCH 1/2] Fix long description --- README.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.rst b/README.rst index 083bb39e..9d8c155d 100644 --- a/README.rst +++ b/README.rst @@ -42,7 +42,7 @@ To import this library, use: >>> import semver Working with the library is quite straightforward. To turn a version string into the -different parts, use the :func:`semver.parse` function: +different parts, use the `semver.parse` function: .. code-block:: python @@ -59,10 +59,10 @@ different parts, use the :func:`semver.parse` function: 'build.5' To raise parts of a version, there are a couple of functions available for -you. The :func:`semver.parse_version_info` function converts a version string -into a :class:`semver.VersionInfo` class. The function -:func:`semver.VersionInfo.bump_major` leaves the original object untouched, but -returns a new :class:`semver.VersionInfo` instance with the raised major part: +you. The `semver.parse_version_info` function converts a version string +into a `semver.VersionInfo` class. The function +`semver.VersionInfo.bump_major` leaves the original object untouched, but +returns a new `semver.VersionInfo` instance with the raised major part: .. code-block:: python @@ -77,7 +77,7 @@ It is allowed to concatenate different "bump functions": >>> ver.bump_major().bump_minor() VersionInfo(major=4, minor=0, patch=1, prerelease=None, build=None) -To compare two versions, semver provides the :func:`semver.compare` function. +To compare two versions, semver provides the `semver.compare` function. The return value indicates the relationship between the first and second version: From 1ef1a7c8540c340923ac39c8ce229cd1c43326fb Mon Sep 17 00:00:00 2001 From: scls19fr Date: Wed, 30 Oct 2019 16:12:56 +0100 Subject: [PATCH 2/2] Fix release procedure --- release-procedure.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/release-procedure.md b/release-procedure.md index fca90b93..17708175 100644 --- a/release-procedure.md +++ b/release-procedure.md @@ -19,14 +19,7 @@ Release procedure * Add eventually new contributor(s) to [CONTRIBUTORS](https://github.com/k-bx/python-semver/blob/master/CONTRIBUTORS) -* Tag commit and push to github using command line interface - -```bash -git tag -a x.x.x -m 'Version x.x.x' -git push python-semver master --tags -``` - -or using GitHub web interface available at https://github.com/k-bx/python-semver/releases +* Ensure that long description (ie [README.rst](https://github.com/k-bx/python-semver/blob/master/README.rst)) can be correctly rendered by Pypi using `restview --long-description` * Upload to PyPI @@ -37,3 +30,12 @@ twine upload dist/* ``` * Go to https://pypi.org/project/semver/ to verify that new version is online and page is rendered correctly + +* Tag commit and push to github using command line interface + +```bash +git tag -a x.x.x -m 'Version x.x.x' +git push python-semver master --tags +``` + +or using GitHub web interface available at https://github.com/k-bx/python-semver/releases