Mercurial > p > roundup > code
comparison doc/conf.py @ 7468:f100f5fdf6bf
Autmatically get version and release from roundup/__init__.py
Copy code from docs/conf.py that generates the release and version
settings from roundup/__init__.py into website/www/conf.py.
Update RELEASE.txt to remove need to set these manually and annotate a
couple of other documented changes.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 08 Jun 2023 01:02:32 -0400 |
| parents | 3ce81e49e8d4 |
| children | 452a8bd1d826 |
comparison
equal
deleted
inserted
replaced
| 7467:92fb16035d92 | 7468:f100f5fdf6bf |
|---|---|
| 21 import sys | 21 import sys |
| 22 import os | 22 import os |
| 23 | 23 |
| 24 | 24 |
| 25 # Read Roundup version by importing it from parent directory, | 25 # Read Roundup version by importing it from parent directory, |
| 26 # this ensures that 'unkown version' is inserted even if | 26 # this ensures that 'unknown version' is inserted even if |
| 27 # `roundup` is importable from other location in sys.path | 27 # `roundup` is importable from other location in sys.path |
| 28 SYSSAVE = sys.path | 28 SYSSAVE = sys.path |
| 29 DOCROOT = os.path.abspath(os.path.dirname(__file__)) | 29 DOCROOT = os.path.abspath(os.path.dirname(__file__)) |
| 30 sys.path = [os.path.dirname(DOCROOT)] | 30 sys.path = [os.path.dirname(DOCROOT)] |
| 31 try: | 31 try: |
