-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
63 lines (58 loc) · 1.58 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
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from ast import literal_eval
from contextlib import contextmanager
from pathlib import Path
@contextmanager
def opener(filename):
with Path(__file__).parent.joinpath(filename).open() as f:
yield f
with opener('README.rst') as f:
readme = f.read()
with opener('pymato.py') as f:
for line in f:
if line.startswith('__version__'):
version = literal_eval(line.partition('=')[2].strip())
setup(
name='pymato',
version=version,
description='Simple command line pomodoro timer',
long_description=readme,
author='Wayne Werner',
author_email='[email protected]',
license='MIT',
url='https://github.com/waynew/pymato',
keywords=[
'console',
'countdown',
'stopwatch',
'terminal',
'timer',
'pomodoro',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console :: Curses',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX',
'Operating System :: Unix',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Utilities',
],
install_requires=[
'pytz',
'tzlocal',
],
py_modules=['pymato'],
entry_points={
'console_scripts': [
'pymato=pymato:main',
],
},
)