summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2013-06-29 01:33:40 +0300
committerAlex Grönholm <alex.gronholm@nextday.fi>2013-06-29 01:33:40 +0300
commit4d18c15814e189518d36fab09e56d2ae5e9e510d (patch)
treed10389d29d363640d9f7a92eceb24124b610003b /setup.py
parent8ce8b1a6ee4739d804f7526ed4dda56611203dbf (diff)
downloadapscheduler-4d18c15814e189518d36fab09e56d2ae5e9e510d.tar.gz
Removed trigger specific methods from Scheduler, making the API more generic
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py20
1 files changed, 12 insertions, 8 deletions
diff --git a/setup.py b/setup.py
index 924dd73..8e702c9 100644
--- a/setup.py
+++ b/setup.py
@@ -1,13 +1,7 @@
# coding: utf-8
import os.path
-try:
- from setuptools import setup
-
- extras = dict(zip_safe=False, test_suite='nose.collector', tests_require=['nose'])
-except ImportError:
- from distutils.core import setup
- extras = {}
+from setuptools import setup, find_packages
import apscheduler
@@ -37,5 +31,15 @@ setup(
],
keywords='scheduling cron',
license='MIT',
- packages=('apscheduler', 'apscheduler.jobstores', 'apscheduler.triggers', 'apscheduler.triggers.cron'),
+ packages=find_packages(),
+ test_suite='nose.collector',
+ tests_require=['nose'],
+ zip_safe=False,
+ entry_points={
+ 'apscheduler.triggers': [
+ 'date = apscheduler.triggers.date:DateTrigger',
+ 'interval = apscheduler.triggers.interval:IntervalTrigger',
+ 'cron = apscheduler.triggers.cron:CronTrigger'
+ ]
+ }
)