Special thanks to David Beitey (http://davidjb.com/) for supplying code and inspiration for this update! All changes are backward compatible. Changelog: * added support for future dates * added optional format_past keyword argument string for custom output * added optional format_future keyword argument string for custom output * added 13 tests to help prevent regressions * Updated the README.rst documentation for better coverage
27 lines
713 B
Python
27 lines
713 B
Python
# installation: easy_install ago
|
|
|
|
from setuptools import setup
|
|
|
|
setup(
|
|
name = 'ago',
|
|
version = '0.0.4',
|
|
description = 'ago: Human readable timedeltas',
|
|
keywords = 'ago human readable time deltas timedelta datetime',
|
|
long_description = open('README.rst').read(),
|
|
|
|
author = 'Russell Ballestrini',
|
|
author_email = 'russell@ballestrini.net',
|
|
url = 'https://bitbucket.org/russellballestrini/ago/src',
|
|
|
|
platforms = ['All'],
|
|
license = 'Public Domain',
|
|
|
|
py_modules = ['ago'],
|
|
include_package_data = True,
|
|
)
|
|
|
|
# setup keyword args: http://peak.telecommunity.com/DevCenter/setuptools
|
|
|
|
# built and uploaded to pypi with this:
|
|
# python setup.py sdist bdist_egg register upload
|
|
|