forked from benoitc/dj-webmachine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
73 lines (61 loc) · 2.24 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is part of dj-webmachine released under the Apache 2 license.
# See the NOTICE for more information.
from distutils.command.install_data import install_data
import os
import sys
if not hasattr(sys, 'version_info') or sys.version_info < (2, 5, 0, 'final'):
raise SystemExit("Compono requires Python 2.5 or later.")
from setuptools import setup, find_packages
from webmachine import __version__
data_files = []
for root in ('webmachine/media', 'webmachine/templates'):
for dir, dirs, files in os.walk(root):
dirs[:] = [x for x in dirs if not x.startswith('.')]
files = [x for x in files if not x.startswith('.')]
data_files.append((os.path.join('webmachine', dir),
[os.path.join(dir, file_) for file_ in files]))
class install_package_data(install_data):
def finalize_options(self):
self.set_undefined_options('install',
('install_lib', 'install_dir'))
install_data.finalize_options(self)
cmdclass = {'install_data': install_package_data }
setup(
name = 'dj-webmachine',
version = __version__,
description = 'Minimal Django Resource framework.',
long_description = file(
os.path.join(
os.path.dirname(__file__),
'README.rst'
)
).read(),
author = 'Benoit Chesneau',
author_email = 'benoitc@e-engura.org',
license = 'BSD',
url = 'http://github.com/benoitc/dj-webmachine',
classifiers = [
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Operating System :: OS Independent',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries :: Application Frameworks',
],
zip_safe = False,
packages = find_packages(),
include_package_data = True,
data_files = data_files,
cmdclass=cmdclass,
install_requires = [
'setuptools',
'webob'
],
test_suite = 'nose.collector',
)