mschieder@482: #!/usr/bin/env python3 bjoern@116: # -*- coding: utf-8 -*- bjoern@116: # bjoern@376: # (c) 2011, 2014 by Björn Ricks bernhard@414: # (c) 2017 by Intevation GmbH bernhard@414: # bernhard@414: # Author(s): bernhard@414: # * Björn Ricks bernhard@414: # * Bernhard Reiter bjoern@116: # bjoern@116: # A python worklog-alike to log what you have 'getan' (done). bjoern@116: # bjoern@116: # This is Free Software licensed under the terms of GPLv3 or later. bjoern@116: # For details see LICENSE coming with the source of 'getan'. bjoern@116: # bjoern@116: bjoern@380: import glob bjoern@380: import os.path bjoern@380: bjoern@116: from setuptools import setup, find_packages bjoern@116: bjoern@116: import getan bjoern@116: bjoern@380: cur_dir = os.path.dirname(__file__) bjoern@380: scripts_dir = os.path.join(cur_dir, "scripts") bjoern@380: bjoern@375: bjoern@116: def read(fname): bjoern@380: with open(os.path.join(cur_dir, fname)) as f: bjoern@376: return f.read() bjoern@116: bjoern@116: setup(name="getan", bjoern@116: version=getan.__version__, bernhard@421: description="Terminal based time-tracking " bernhard@421: "and reporting tool; comparable to 'worklog'.", bernhard@417: url="https://getan.wald.intevation.org/", bernhard@417: download_url="https://scm.wald.intevation.org/hg/getan/", bernhard@417: maintainer="Bernhard E. Reiter", bernhard@417: maintainer_email="bernhard.reiter@intevation.de", bjoern@375: license="GPLv3+", bjoern@116: long_description=read("README"), bjoern@116: packages=find_packages(), mschieder@482: python_requires='>=3', bjoern@380: package_data={ bjoern@380: "": ["*.txt"], bjoern@381: "getan": ["templates/*"], bjoern@380: }, bernhard@417: install_requires=[ bernhard@417: 'jinja2', bernhard@417: 'urwid>=1.1.2' bernhard@417: ], bjoern@380: scripts=glob.glob(os.path.join(scripts_dir, "*.py")) + bjoern@380: [os.path.join(scripts_dir, "wochenbericht"), bjoern@380: os.path.join(scripts_dir, "convert-projects")], bjoern@375: entry_points={"console_scripts": bjoern@375: ["getan=getan.main:main", bjoern@375: ]}, bjoern@116: classifiers=[ bernhard@417: "Development Status :: 5 - Production/Stable", bjoern@116: "Topic :: Utilities", bjoern@116: "Environment :: Console", bjoern@116: "Intended Audience :: Developers", bjoern@116: "Intended Audience :: End Users/Desktop", bernhard@417: "License :: OSI Approved :: " bernhard@417: "GNU General Public License v3 or later (GPLv3+)", bjoern@116: "Operating System :: POSIX", mschieder@467: "Programming Language :: Python :: 3" bjoern@380: ], bjoern@375: )