diff options
author | Juergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com> | 2017-04-04 11:04:27 +0200 |
---|---|---|
committer | Juergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com> | 2017-04-04 11:04:27 +0200 |
commit | 7fbbbdadb7720675b04595378a167df2d164cd49 (patch) | |
tree | 74cf3131d5f3408a2f80ca30a91592d1599bf1d8 | |
parent | e8ab41af5a02a1e9e9095b2b64da1322c60250f2 (diff) | |
download | qtivi-qface-7fbbbdadb7720675b04595378a167df2d164cd49.tar.gz |
QFace guide uses now central version information from __about__.py
-rwxr-xr-x | cli.py | 5 | ||||
-rw-r--r-- | docs/conf.py | 20 | ||||
-rw-r--r-- | qface/__about__.py | 1 |
3 files changed, 19 insertions, 7 deletions
@@ -167,12 +167,13 @@ def uninstall(): @cli.command() def upload(): + Path('build').rmtree_p() dist = Path('dist') - if dist.exists(): - dist.rmdir_p() + dist.rmtree_p() dist.makedirs_p() sh('python3 setup.py bdist_wheel') sh('twine upload dist/*') + Path('build').rmtree_p() @cli.command() diff --git a/docs/conf.py b/docs/conf.py index e7aa601..53e111b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -20,6 +20,16 @@ import os import sys +__title__ = '' +__version__ = '' +__summary__ = '' +__uri__ = '' +__author__ = '' +__author_email__ = '' +__copyright__ = '' +exec(open('../qface/__about__.py').read()) + + here = os.path.dirname(__file__) sys.path.insert(0, os.path.join(here, '..')) @@ -60,18 +70,18 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = 'QFace' -copyright = '2016, JRyannel' -author = 'JRyannel' +project = __title__ +copyright = __copyright__ +author = __author__ # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = '1.0.0' +version = __version__ # The full version, including alpha/beta/rc tags. -release = '1.0.0a5' +release = __version__ # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/qface/__about__.py b/qface/__about__.py index f3a9be8..6c54abd 100644 --- a/qface/__about__.py +++ b/qface/__about__.py @@ -12,3 +12,4 @@ __uri__ = "https://pelagicore.github.io/qface/" __version__ = "1.1" __author__ = "JRyannel" __author_email__ = "qface-generator@googlegroups.com" +__copyright__ = "2017 Pelagicore" |