jenkins-bot has submitted this change and it was merged.

Change subject: Move __version__ into cmv/__init__.py
......................................................................


Move __version__ into cmv/__init__.py

So the script can output it in the future.

Change-Id: I368af7c994971c8bb517644fa5a3e9ec1736ac64
---
M commit_message_validator/__init__.py
M setup.py
2 files changed, 5 insertions(+), 1 deletion(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/commit_message_validator/__init__.py 
b/commit_message_validator/__init__.py
index 47b4187..bc0ba0a 100755
--- a/commit_message_validator/__init__.py
+++ b/commit_message_validator/__init__.py
@@ -25,6 +25,8 @@
 import re
 import subprocess
 
+__version__ = '0.2.0-alpha'
+
 
 def line_errors(lineno, line):
     """Check a commit message line to see if it has errors.
diff --git a/setup.py b/setup.py
index 65d37fa..1eb01a9 100644
--- a/setup.py
+++ b/setup.py
@@ -1,9 +1,11 @@
 #!/usr/bin/env python3
 from setuptools import setup
 
+from commit_message_validator import __version__
+
 setup(
     name='commit-message-validator',
-    version='0.1.0',
+    version=__version__,
     author='Bryan Davis',
     author_email='[email protected]',
     url='https://www.mediawiki.org/wiki/Gerrit/Commit_message_guidelines',

-- 
To view, visit https://gerrit.wikimedia.org/r/303749
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I368af7c994971c8bb517644fa5a3e9ec1736ac64
Gerrit-PatchSet: 1
Gerrit-Project: integration/commit-message-validator
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Paladox <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to