forked from ahawker/crython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
47 lines (37 loc) · 1.13 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
"""
crython
~~~~~~~
Lightweight task scheduler using cron expressions.
:copyright: (c) 2013 Andrew Hawker.
:license: MIT, see LICENSE for more details.
"""
import ast
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version_regex = re.compile(r'__version__\s+=\s+(.*)')
def get_version():
with open('crython/__init__.py', 'r') as f:
return str(ast.literal_eval(version_regex.search(f.read()).group(1)))
setup(
name='crython',
version=get_version(),
author='Andrew Hawker',
author_email='andrew.r.hawker@gmail.com',
url='https://github.com/ahawker/crython',
license='MIT',
description='Lightweight task scheduler using cron expressions.',
long_description=__doc__,
packages=['crython'],
classifiers=(
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7'
)
)