-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·99 lines (86 loc) · 2.93 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/usr/bin/env python
# coding: utf-8
#
# Timetra is a time tracking application and library.
# Copyright © 2010-2014 Andrey Mikhaylenko
#
# This file is part of Timetra.
#
# Timetra is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Timetra is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Timetra. If not, see <http://gnu.org/licenses/>.
#
import io
import os
from setuptools import setup, find_packages
with io.open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='ascii') as f:
readme = f.read()
try:
from setuptools.command.easy_install import ScriptWriter
except ImportError:
pass
else:
# monkey-patch script writer template to enable bash completion
# in 'console_scripts' entries
ScriptWriter.template = '# PYTHON_ARGCOMPLETE_OK\n' + ScriptWriter.template
from timetra.diary import __version__
setup(
# overview
name = 'timetra.diary',
description = 'Diary with CLI + YAML',
long_description = readme,
# technical info
version = __version__,
packages = find_packages(),
#provides = ['diary'],
install_requires = [
'argh>=0.22',
'confu>=0.0.1',
'monk>=0.13',
'python-dateutil>=2.1',
'pyyaml>=3.10',
'terminaltables==2.1.0',
],
# usage example: http://stackoverflow.com/a/18879288/68097
extras_require = {
# curses TUI
'curses': [
'urwid>=1.1.1',
],
},
include_package_data = True,
zip_safe = False,
entry_points = {
'console_scripts': [
'timetra-diary=timetra.diary.app:main'
],
},
# copyright
author = 'Andrey Mikhaylenko',
author_email = '[email protected]',
license = 'GNU Lesser General Public License (LGPL), Version 3',
# more info
url = 'https://github.com/neithere/timetra.diary',
download_url = 'https://github.com/neithere/timetra.diary/archive/master.zip',
# categorization
keywords = ('cli command line time tracking timer diary'),
classifiers = [
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
'Programming Language :: Python',
'Topic :: Utilities',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)