From c3caecaeb75434e8383bc52d45a17e802d277c2f Mon Sep 17 00:00:00 2001 From: Eduard Kracmar Date: Mon, 29 Aug 2016 08:58:00 +0200 Subject: [PATCH 01/18] Structure refactoring, splitting to smaller logical files --- setup.py | 7 +- ti/__init__.py | 423 +------------------------------------------- ti/actions.py | 218 +++++++++++++++++++++++ ti/colors.py | 30 ++++ ti/time_tracking.py | 123 +++++++++++++ ti/utils.py | 69 ++++++++ 6 files changed, 449 insertions(+), 421 deletions(-) create mode 100644 ti/actions.py create mode 100644 ti/colors.py create mode 100644 ti/time_tracking.py create mode 100644 ti/utils.py diff --git a/setup.py b/setup.py index 013e357..66fa6d1 100755 --- a/setup.py +++ b/setup.py @@ -29,10 +29,13 @@ def read(*filenames, **kwargs): long_description=read('README.rst', 'CHANGES.rst'), entry_points={ 'console_scripts': [ - 'ti = ti:main', + 'ti = ti.time_tracking:main', ] }, - install_requires=["colorama", "pyyaml"], + install_requires=[ + "colorama", + "PyYAML", + ], setup_requires=["pytest-runner"] if testing else [], tests_require=["pytest", "cram", "pytest-cram"], extras_require={ diff --git a/ti/__init__.py b/ti/__init__.py index 483736f..8c354f8 100755 --- a/ti/__init__.py +++ b/ti/__init__.py @@ -1,46 +1,8 @@ # coding: utf-8 - -""" -ti is a simple and extensible time tracker for the command line. Visit the -project page (http://ti.sharats.me) for more details. - -Usage: - ti (o|on) [