Skip to content

Commit

Permalink
Merge pull request #142 from lucc/version
Browse files Browse the repository at this point in the history
Add version option
  • Loading branch information
GuillaumeSeren committed May 20, 2017
2 parents 6f4244e + 45cc3b2 commit d1cf5f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ bin/
include/
lib/
/afew.egg-info
afew/version.py
3 changes: 2 additions & 1 deletion afew/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@
from afew.Settings import user_config_dir, get_filter_chain, \
get_mail_move_rules, get_mail_move_age, get_mail_move_rename
from afew.NotmuchSettings import read_notmuch_settings, get_notmuch_new_query
from afew.version import version

parser = argparse.ArgumentParser()
#parser.add_argument('-V', '--version', action='version', version='TODO')
parser.add_argument('-V', '--version', action='version', version=version)

# the actions
action_group = parser.add_argument_group(
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def get_requires():

setup(
name='afew',
version='1.0.0',
use_scm_version={'write_to': 'afew/version.py'},
setup_requires=['setuptools_scm'],
packages=find_packages(),
test_suite='afew.tests',
package_data={
Expand Down

0 comments on commit d1cf5f6

Please sign in to comment.