662bd8a947
* When calculating the next() or previous() valid entry, the module wouldn't "backtrack" enough, and might miss a sooner crontab entry than was found. This has been fixed. * Added the ability to return the timestamp of the future event, instead of just the delta (pass delta=False to .next() or .previous()) * Added a method to test a given timestamp or datetime against a Crontab entry * Special thanks to Manish Dubey github.com/mdubey for the pull request that spawned these features, provided new tests, and prompted the discovery of the bug
26 lines
806 B
Python
26 lines
806 B
Python
#!/usr/bin/env python
|
|
|
|
from distutils.core import setup
|
|
|
|
with open('README') as f:
|
|
long_description = f.read()
|
|
|
|
setup(
|
|
name='crontab',
|
|
version='.16',
|
|
description='Parse and use crontab schedules in Python',
|
|
author='Josiah Carlson',
|
|
author_email='josiah.carlson@gmail.com',
|
|
url='https://github.com/josiahcarlson/parse-crontab',
|
|
packages=['crontab', 'tests'],
|
|
classifiers=[
|
|
'Development Status :: 4 - Beta',
|
|
'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
|
|
'Programming Language :: Python',
|
|
'Programming Language :: Python :: 2.6',
|
|
'Programming Language :: Python :: 2.7',
|
|
'Programming Language :: Python :: 3.2',
|
|
],
|
|
license='GNU LGPL v2.1',
|
|
long_description=long_description,
|
|
)
|