forked from feincms/feincms
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·91 lines (84 loc) · 2.9 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/env python
import os
from setuptools import setup, find_packages
from setuptools.dist import Distribution
import pkg_resources
add_django_dependency = True
# See issues #50, #57 and #58 for why this is necessary
try:
pkg_resources.get_distribution('Django')
add_django_dependency = False
except pkg_resources.DistributionNotFound:
try:
import django
if django.VERSION[0] >= 1 and django.VERSION[1] >= 1 and django.VERSION[2] >= 1:
add_django_dependency = False
except ImportError:
pass
Distribution({
"setup_requires": add_django_dependency and ['Django >=1.1.1'] or []
})
import feincms
setup(name='FeinCMS',
version=feincms.__version__,
description='Django-based Page CMS and CMS building toolkit.',
long_description=open(os.path.join(os.path.dirname(__file__), 'README')).read(),
author='Matthias Kestenholz',
author_email='[email protected]',
url='https://github.com/matthiask/feincms/',
license='BSD License',
platforms=['OS Independent'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries :: Application Frameworks',
],
install_requires=[
#'Django >=1.1.1' # See https://github.com/matthiask/feincms/issues/closed#issue/50
],
requires=[
#'lxml', # only needed for rich text cleansing
'tagging (>0.2.1)', # please use SVN trunk
'django_mptt (>0.2.1)', # please use the version from https://github.com/matthiask/django-mptt/
],
packages=['feincms',
'feincms.admin',
'feincms.content',
'feincms.content.application',
'feincms.content.contactform',
'feincms.content.file',
'feincms.content.image',
'feincms.content.medialibrary',
'feincms.content.raw',
'feincms.content.richtext',
'feincms.content.rss',
'feincms.content.section',
'feincms.content.table',
'feincms.content.video',
'feincms.contrib',
'feincms.management',
'feincms.management.commands',
'feincms.module',
'feincms.module.blog',
'feincms.module.blog.extensions',
'feincms.module.medialibrary',
'feincms.module.extensions',
'feincms.module.page',
'feincms.module.page.extensions',
'feincms.module.page.templatetags',
'feincms.templatetags',
'feincms.utils',
'feincms.utils.html',
'feincms.views',
'feincms.views.generic',
],
include_package_data=True,
zip_safe=False,
)