forked from pcdinh/greenclock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (40 loc) · 1.39 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
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup
from greenclock.version import __version__
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload -r pypi')
sys.exit()
VERSION = __version__[:__version__.index('-')]
def long_description():
"""Get the long description from the README"""
return open(os.path.join(sys.path[0], 'README.rst')).read()
setup(
name='greenclock',
packages=['greenclock'],
version=VERSION,
description='A library that provides time-based task scheduling using green threads via gevent.',
license='MIT',
long_description=long_description(),
long_description_content_type="text/x-rst",
install_requires=[
'gevent>=1.4.0',
],
author='Pham Cong Dinh',
author_email='pcdinh@gmail.com',
url='https://github.com/pcdinh/greenclock',
download_url='https://github.com/pcdinh/greenclock/tarball/' + VERSION,
keywords=[
'cron', 'scheduling', 'schedule', 'periodic', 'jobs', 'clockwork', 'gevent'
],
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Natural Language :: English',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)