summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-04-24 12:26:55 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-04-24 12:26:55 -0400
commit0aa1f28a98eca828dae6e5ea57ec2239a0659677 (patch)
tree57122539c6e4890becf95f0ed870933f78040f98
parent94b241296765404453a2e087d9a888323eb6bbe0 (diff)
downloadb4-0aa1f28a98eca828dae6e5ea57ec2239a0659677.tar.gz
Prepare for 0.4.0 release
It's time to graduate to 0.4.0 with these features. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--README.rst2
-rw-r--r--b4/__init__.py2
-rw-r--r--b4/command.py11
3 files changed, 9 insertions, 6 deletions
diff --git a/README.rst b/README.rst
index 5ffa652..99fa339 100644
--- a/README.rst
+++ b/README.rst
@@ -28,6 +28,8 @@ alias in your .bash_profile::
alias b4="$HOME/path/to/b4/b4.sh"
+Setting up a symlink should also be possible.
+
Support
-------
For support or with any other questions, please email
diff --git a/b4/__init__.py b/b4/__init__.py
index e7f655f..cf67a9b 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -27,7 +27,7 @@ from email import charset
charset.add_charset('utf-8', None)
emlpolicy = email.policy.EmailPolicy(utf8=True, cte_type='8bit', max_line_length=None)
-__VERSION__ = '0.4.0-dev'
+__VERSION__ = '0.4.0'
ATTESTATION_FORMAT_VER = '0.1'
logger = logging.getLogger('b4')
diff --git a/b4/command.py b/b4/command.py
index d5f06dc..39ad3e5 100644
--- a/b4/command.py
+++ b/b4/command.py
@@ -187,11 +187,12 @@ if __name__ == '__main__':
import os
# noinspection PyBroadException
try:
- base = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
- dotgit = os.path.join(base, '.git')
- ecode, short = b4.git_run_command(dotgit, ['rev-parse', '--short', 'HEAD'])
- if ecode == 0:
- b4.__VERSION__ = '%s-%.5s' % (b4.__VERSION__, short.strip())
+ if b4.__VERSION__.find('-dev') > 0:
+ base = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
+ dotgit = os.path.join(base, '.git')
+ ecode, short = b4.git_run_command(dotgit, ['rev-parse', '--short', 'HEAD'])
+ if ecode == 0:
+ b4.__VERSION__ = '%s-%.5s' % (b4.__VERSION__, short.strip())
except Exception as ex:
# Any failures above are non-fatal
pass