Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (32 sloc) 1.042 kb
#!/usr/bin/env python
import os
from setuptools import setup, find_packages
from adrest import version, PROJECT, LICENSE
PACKAGE_DATA = []
for folder in ['templates']:
for root, dirs, files in os.walk(os.path.join(PROJECT, folder)):
for filename in files:
PACKAGE_DATA.append("%s/%s" % (root[len(PROJECT) + 1:], filename))
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except IOError:
return ''
META_DATA = dict(
name=PROJECT,
version=version,
license=LICENSE,
description=read('DESCRIPTION'),
long_description=read('README.rst'),
platforms=('Any'),
author='Kirill Klenov',
author_email='horneds@gmail.com',
url=' http://github.com/klen/adrest',
packages=find_packages(),
package_data = {'': PACKAGE_DATA},
install_requires = ('mimeparse', 'Django>=1.4.0'),
test_suite = 'tests.run_tests',
tests_require = ['pymongo', 'milkman']
)
if __name__ == "__main__":
setup(**META_DATA)
Jump to Line
Something went wrong with that request. Please try again.