changeset 724c6072bfc8 in trytond-gis:default
details: https://hg.tryton.org/trytond-gis?cmd=changeset&node=724c6072bfc8
description:
        Publish changelog in the documentation

        issue11805
        review431781003
diffstat:

 CHANGELOG        |  9 +++++++++
 doc/index.rst    |  5 +++++
 doc/releases.rst |  7 +++++++
 setup.py         |  9 ++++++++-
 4 files changed, 29 insertions(+), 1 deletions(-)

diffs (97 lines):

diff -r 930a81e07cca -r 724c6072bfc8 CHANGELOG
--- a/CHANGELOG Sun Oct 16 14:14:13 2022 +0200
+++ b/CHANGELOG Thu Oct 27 13:24:22 2022 +0200
@@ -1,35 +1,44 @@
 Version 6.4.0 - 2022-05-02
+--------------------------
 * Bug fixes (see mercurial logs for details)
 * Use unittest discover
 * Add support for Python 3.10
 * Remove support for Python 3.6
 
 Version 6.2.0 - 2021-11-01
+--------------------------
 * Bug fixes (see mercurial logs for details)
 
 Version 6.0.0 - 2021-05-03
+--------------------------
 * Bug fixes (see mercurial logs for details)
 * Add support for Python 3.9
 
 Version 5.8.0 - 2020-11-02
+--------------------------
 * Bug fixes (see mercurial logs for details)
 * Remove support for Python 3.5
 
 Version 5.6.0 - 2020-05-04
+--------------------------
 * Bug fixes (see mercurial logs for details)
 
 Version 5.4.0 - 2019-11-04
+--------------------------
 * Bug fixes (see mercurial logs for details)
 
 Version 5.2.0 - 2019-05-06
+--------------------------
 * Bug fixes (see mercurial logs for details)
 * Remove support for Python 3.4
 * Add dimension and geometry type in field definition
 
 Version 5.0.0 - 2018-10-01
+--------------------------
 * Bug fixes (see mercurial logs for details)
 * Add support for Python 3.7
 * Remove support for Python 2.7
 
 Version 4.8.0 - 2018-06-01
+--------------------------
 * Initial release
diff -r 930a81e07cca -r 724c6072bfc8 doc/index.rst
--- a/doc/index.rst     Sun Oct 16 14:14:13 2022 +0200
+++ b/doc/index.rst     Thu Oct 27 13:24:22 2022 +0200
@@ -4,3 +4,8 @@
 It adds GIS__ support to Tryton.
 
 __ https://en.wikipedia.org/wiki/Geographic_information_system
+
+.. toctree::
+   :maxdepth: 2
+
+   releases
diff -r 930a81e07cca -r 724c6072bfc8 doc/releases.rst
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/doc/releases.rst  Thu Oct 27 13:24:22 2022 +0200
@@ -0,0 +1,7 @@
+.. _releases-index:
+
+=============
+Release notes
+=============
+
+.. include:: ../CHANGELOG
diff -r 930a81e07cca -r 724c6072bfc8 setup.py
--- a/setup.py  Sun Oct 16 14:14:13 2022 +0200
+++ b/setup.py  Thu Oct 27 13:24:22 2022 +0200
@@ -14,6 +14,13 @@
         'r', encoding='utf-8').read()
 
 
+def readme():
+    content = read('README.rst')
+    content = re.sub(
+        r'(?m)^\.\. toctree::\r?\n((^$|^\s.*$)\r?\n)*', '', content)
+    return content
+
+
 def get_require_version(name):
     if minor_version % 2:
         require = '%s >= %s.%s.dev0, < %s.%s'
@@ -66,7 +73,7 @@
 setup(name=name,
     version=version,
     description='Adds Geographic Information System support to trytond',
-    long_description=read('README.rst'),
+    long_description=readme(),
     author='Tryton',
     author_email='[email protected]',
     url='http://www.tryton.org/',

Reply via email to