forked from AnthonyDiGirolamo/todotxt-machine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
81 lines (63 loc) · 2.36 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
# -*- coding: utf-8 -*-
"""
todotxt-machine
===============
An interactive terminal based todo.txt file editor with an
interface similar to [mutt](http://www.mutt.org/).
Requirements
------------
Python 2.7 or Python 3.3 with readline support.
Documentation
-------------
The documentation for ``todotxt-machine`` is `available on github <https://github.com/AnthonyDiGirolamo/todotxt-machine>`_.
License
-------
``todotxt-machine`` is licensed under a GPLv3 license, see ``LICENSE`` for details.
"""
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import todotxt_machine
import sys
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
NAME = "todotxt-machine"
try:
long_description = open("README.rst").read()
except IOError:
long_description = __doc__
setup(name=NAME,
version=todotxt_machine.version,
author="Anthony DiGirolamo",
author_email="[email protected]",
url="https://github.com/AnthonyDiGirolamo/todotxt-machine",
description="An interactive terminal based todo.txt file editor with an interface similar to mutt",
long_description=long_description,
keywords="todotxt, todo.txt, todo, terminal, urwid, curses, console",
packages=find_packages(exclude=["todotxt_machine/test*"]),
include_package_data=True,
entry_points={
'console_scripts': ['todotxt-machine = todotxt_machine.cli:main']
},
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console :: Curses",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Topic :: Office/Business :: Scheduling",
],
install_requires=['setuptools', 'docopt>=0.6.2', 'urwid>=1.2.1'],
tests_require=['pytest'],
cmdclass={'test': PyTest})