
timex is a datetime processing library allowing you to write time expressions in a DLS as strings. Splitting this out from Winchester as a separate library, since it could be useful elsewhere.
38 lines
1.1 KiB
Python
38 lines
1.1 KiB
Python
import os
|
|
from pip.req import parse_requirements
|
|
from setuptools import setup, find_packages
|
|
|
|
|
|
def read(fname):
|
|
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
|
|
|
|
|
req_file = os.path.join(os.path.dirname(__file__), "requirements.txt")
|
|
install_reqs = [str(r.req) for r in parse_requirements(req_file)]
|
|
|
|
|
|
setup(
|
|
name='timex',
|
|
version='0.10.0',
|
|
author='Monsyne Dragon',
|
|
author_email='mdragon@rackspace.com',
|
|
description=("A time expressions library implementing a mini-language "
|
|
"for manipulating datetimes"),
|
|
license='Apache License (2.0)',
|
|
keywords='datetime manipulation transformation DSL',
|
|
packages=find_packages(exclude=['tests']),
|
|
classifiers=[
|
|
'Development Status :: 3 - Alpha',
|
|
'License :: OSI Approved :: Apache Software License',
|
|
'Operating System :: POSIX :: Linux',
|
|
'Programming Language :: Python :: 2.6',
|
|
'Programming Language :: Python :: 2.7',
|
|
],
|
|
url='https://github.com/StackTach/timex',
|
|
scripts=[],
|
|
long_description=read('README.md'),
|
|
install_requires=install_reqs,
|
|
|
|
zip_safe=False
|
|
)
|