Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 77 lines (71 sloc) 2.545 kb
872b31f Added a setup.py to be able to install django-cms with easy_install, pip...
Philipp Bosch authored
1 from setuptools import setup, find_packages
52a79a1 @jezdez Added code to handle all the wonderful media files when creating a sourc...
jezdez authored
2 import os, fnmatch
407a670 @digi604 merge
digi604 authored
3 import cms
aada1b4 Changed setup to copy media files to the django-cms installation directo...
Stavros Korokithakis authored
4
52a79a1 @jezdez Added code to handle all the wonderful media files when creating a sourc...
jezdez authored
5 media_files = []
6
7 for dirpath, dirnames, filenames in os.walk(os.path.join('cms', 'media')):
8 for filename in filenames:
9 filepath = os.path.join(dirpath, filename)
10 failed = False
11 for pattern in ('*.py', '*.pyc', '*~', '.*', '*.bak', '*.swp*'):
12 if fnmatch.fnmatchcase(filename, pattern):
13 failed = True
14 if failed:
15 continue
16 media_files.append(os.path.join(*filepath.split(os.sep)[1:]))
6fba0e2 @ojii changed setup.py to use the proper classifiers
ojii authored
17
18 if cms.VERSION[-1] == 'final':
6ec0673 @ojii fixed classifier in setup.py
ojii authored
19 CLASSIFIERS = ['Development Status :: 5 - Production/Stable']
6fba0e2 @ojii changed setup.py to use the proper classifiers
ojii authored
20 elif 'beta' in cms.VERSION[-1]:
21 CLASSIFIERS = ['Development Status :: 4 - Beta']
22 else:
23 CLASSIFIERS = ['Development Status :: 3 - Alpha']
24
25 CLASSIFIERS += [
26 'Environment :: Web Environment',
27 'Framework :: Django',
28 'Intended Audience :: Developers',
29 'License :: OSI Approved :: BSD License',
30 'Operating System :: OS Independent',
31 'Programming Language :: Python',
32 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
33 'Topic :: Software Development',
34 'Topic :: Software Development :: Libraries :: Application Frameworks',
35 ]
52a79a1 @jezdez Added code to handle all the wonderful media files when creating a sourc...
jezdez authored
36
872b31f Added a setup.py to be able to install django-cms with easy_install, pip...
Philipp Bosch authored
37 setup(
407a670 @digi604 merge
digi604 authored
38 author="Patrick Lauber",
39 author_email="digi@treepy.com",
1cc8ac1 @ojii fixed setup.py
ojii authored
40 name='django-cms',
41 version=cms.__version__,
872b31f Added a setup.py to be able to install django-cms with easy_install, pip...
Philipp Bosch authored
42 description='An Advanced Django CMS',
927ef43 @ojii python packaging is annoying...
ojii authored
43 long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(),
407a670 @digi604 merge
digi604 authored
44 url='http://www.django-cms.org/',
45 license='BSD License',
46 platforms=['OS Independent'],
6fba0e2 @ojii changed setup.py to use the proper classifiers
ojii authored
47 classifiers=CLASSIFIERS,
8a56786 @ojii Switched to classy tags for readability and sanity
ojii authored
48 install_requires=[
49 'Django>=1.2',
b467f47 @FrankBie classytags 0.3.2 produces endless recursions, in 0.3.3 this is fixed
FrankBie authored
50 'django-classy-tags>=0.3.3',
ace75c0 @chrisglass Added dependency on South to setup.py
chrisglass authored
51 'south>=0.7.2',
cd9dae5 @ojii Fixed some issues caused by the switch away from a shipped MPTT to djang...
ojii authored
52 'django-mptt>=0.4.2',
ef8825f @ojii changed classytags and sekizai requirements to 0.3.2 and 0.4.2 respectiv...
ojii authored
53 'django-sekizai>=0.4.2',
407a670 @digi604 merge
digi604 authored
54 ],
d0dd166 @ojii Fixed failing tests
ojii authored
55 packages=find_packages(exclude=["testdata","testdata.*"]),
56 include_package_data=True,
57 # package_data={
58 # 'cms': [
59 # 'templates/admin/*.html',
60 # 'templates/admin/cms/mail/*.html',
61 # 'templates/admin/cms/mail/*.txt',
62 # 'templates/admin/cms/page/*.html',
63 # 'templates/admin/cms/page/*/*.html',
64 # 'templates/cms/*.html',
65 # 'templates/cms/*/*.html',
66 # 'plugins/*/templates/cms/plugins/*.html',
67 # 'plugins/*/templates/cms/plugins/*/*.html',
68 # 'plugins/*/templates/cms/plugins/*/*.js',
69 # 'locale/*/LC_MESSAGES/*',
70 # ] + media_files,
71 # 'menus': [
72 # 'templates/menu/*.html',
73 # ],
74 # },
407a670 @digi604 merge
digi604 authored
75 zip_safe = False
872b31f Added a setup.py to be able to install django-cms with easy_install, pip...
Philipp Bosch authored
76 )
Something went wrong with that request. Please try again.