forked from justquick/django-mx-datetime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
35 lines (31 loc) · 1.23 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
import os
from distutils.core import setup
from djmx import __version__
def read_file(filename):
"""Read a file into a string"""
path = os.path.abspath(os.path.dirname(__file__))
filepath = os.path.join(path, filename)
try:
return open(filepath).read()
except IOError:
return ''
setup(name='django-mx-datetime',
version=__version__,
description='Provides date/time/datetime related fields using mx.DateTime for Django databases',
long_description=read_file('README.md'),
author='Justin Quick',
author_email='[email protected]',
url='http://github.com/justquick/django-mx-datetime',
packages=['djmx', 'djmx.runtests'],
install_requires=read_file('requirements.txt'),
zip_safe=False,
classifiers=['Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Database'],
)