Skip to content
This repository
Newer
Older
100644 80 lines (74 sloc) 2.612 kb
872b31fa »
2009-07-25 Added a setup.py to be able to install django-cms with easy_install, …
1 from setuptools import setup, find_packages
52a79a14 »
2010-02-04 Added code to handle all the wonderful media files when creating a so…
2 import os, fnmatch
407a6709 »
2009-10-08 merge
3 import cms
aada1b49 »
2009-09-24 Changed setup to copy media files to the django-cms installation dire…
4
52a79a14 »
2010-02-04 Added code to handle all the wonderful media files when creating a so…
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:]))
6fba0e25 »
2010-05-14 changed setup.py to use the proper classifiers
17
18 if cms.VERSION[-1] == 'final':
19 CLASSIFIERS = ['Development Status :: 5 - Stable']
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 ]
52a79a14 »
2010-02-04 Added code to handle all the wonderful media files when creating a so…
36
872b31fa »
2009-07-25 Added a setup.py to be able to install django-cms with easy_install, …
37 setup(
407a6709 »
2009-10-08 merge
38 author="Patrick Lauber",
39 author_email="digi@treepy.com",
872b31fa »
2009-07-25 Added a setup.py to be able to install django-cms with easy_install, …
40 name='django-cms',
407a6709 »
2009-10-08 merge
41 version=cms.__version__,
872b31fa »
2009-07-25 Added a setup.py to be able to install django-cms with easy_install, …
42 description='An Advanced Django CMS',
407a6709 »
2009-10-08 merge
43 long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
44 url='http://www.django-cms.org/',
45 license='BSD License',
46 platforms=['OS Independent'],
6fba0e25 »
2010-05-14 changed setup.py to use the proper classifiers
47 classifiers=CLASSIFIERS,
407a6709 »
2009-10-08 merge
48 requires=[
49 'django (>1.1.0)',
50 ],
21eafefc »
2010-01-05 fixes #291 example is not installed anymore
51 packages=find_packages(exclude=["example", "example.*"]),
52a79a14 »
2010-02-04 Added code to handle all the wonderful media files when creating a so…
52 package_data={
53 'cms': [
54 'templates/admin/*.html',
55 'templates/admin/cms/mail/*.html',
56 'templates/admin/cms/mail/*.txt',
57 'templates/admin/cms/page/*.html',
58 'templates/admin/cms/page/*/*.html',
59 'templates/cms/*.html',
60 'templates/cms/*/*.html',
61 'plugins/*/templates/cms/plugins/*.html',
62 'plugins/*/templates/cms/plugins/*/*.html',
63 'plugins/*/templates/cms/plugins/*/*.js',
a63a2de6 »
2010-03-23 beta2
64 'locale/*/LC_MESSAGES/*',
65 'docs/*.txt'
52a79a14 »
2010-02-04 Added code to handle all the wonderful media files when creating a so…
66 ] + media_files,
67 'example': [
a63a2de6 »
2010-03-23 beta2
68 'media/css/*.css',
69 'media/img/*.jpg',
52a79a14 »
2010-02-04 Added code to handle all the wonderful media files when creating a so…
70 'templates/*.html',
71 'sampleapp/media/sampleapp/img/gift.jpg',
72 'sampleapp/templates/sampleapp/*.html',
ef5a2c78 »
2010-03-19 Added the templates directory of the menu module to the list of packa…
73 ],
74 'menus': [
75 'templates/menu/*.html',
76 ],
52a79a14 »
2010-02-04 Added code to handle all the wonderful media files when creating a so…
77 },
407a6709 »
2009-10-08 merge
78 zip_safe = False
872b31fa »
2009-07-25 Added a setup.py to be able to install django-cms with easy_install, …
79 )
Something went wrong with that request. Please try again.