From dd26f2dce85ba22e9d0aa3211064d0882c4b93f9 Mon Sep 17 00:00:00 2001 From: Bastian Venthur Date: Sat, 17 Feb 2018 10:53:11 +0100 Subject: [PATCH] Bumped version, wrapped main --- CHANGELOG.md | 5 +++++ gscholar/__init__.py | 2 +- gscholar/__main__.py | 4 +++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2879da7..2f75e5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## [1.6.1] - 2018-02-17 + +* Include Changelog and LICENSE files in source distribution +* Wrapped main script in proper main test + ## [1.6.0] - 2018-01-21 * Fixed unicode error in Python3 during pdf renaming diff --git a/gscholar/__init__.py b/gscholar/__init__.py index 1ab1b23..dc03f39 100644 --- a/gscholar/__init__.py +++ b/gscholar/__init__.py @@ -2,4 +2,4 @@ from gscholar.gscholar import * -__VERSION__ = '1.6.0' +__VERSION__ = '1.6.1' diff --git a/gscholar/__main__.py b/gscholar/__main__.py index 24875c5..80e2964 100644 --- a/gscholar/__main__.py +++ b/gscholar/__main__.py @@ -14,6 +14,7 @@ level=logging.WARNING ) + def main(): usage = 'Usage: %prog [options] {pdf | "search terms"}' parser = optparse.OptionParser(usage) @@ -75,6 +76,7 @@ def main(): gs.rename_file(args, biblist[0]) -main() +if __name__ == '__main__': + main() # vim: set filetype=python