Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 71 lines (67 sloc) 2.457 kB
872b31f Added a setup.py to be able to install django-cms with easy_install, …
Philipp Bosch authored
1 from setuptools import setup, find_packages
52a79a1 @jezdez Added code to handle all the wonderful media files when creating a so…
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 dire…
Stavros Korokithakis authored
4
52a79a1 @jezdez Added code to handle all the wonderful media files when creating a so…
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:]))
17
872b31f Added a setup.py to be able to install django-cms with easy_install, …
Philipp Bosch authored
18 setup(
407a670 @digi604 merge
digi604 authored
19 author="Patrick Lauber",
20 author_email="digi@treepy.com",
872b31f Added a setup.py to be able to install django-cms with easy_install, …
Philipp Bosch authored
21 name='django-cms',
407a670 @digi604 merge
digi604 authored
22 version=cms.__version__,
872b31f Added a setup.py to be able to install django-cms with easy_install, …
Philipp Bosch authored
23 description='An Advanced Django CMS',
407a670 @digi604 merge
digi604 authored
24 long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
25 url='http://www.django-cms.org/',
26 license='BSD License',
27 platforms=['OS Independent'],
28 classifiers=[
29 'Development Status :: 5 - Production/Stable',
30 'Environment :: Web Environment',
31 'Framework :: Django',
32 'Intended Audience :: Developers',
33 'License :: OSI Approved :: BSD License',
34 'Operating System :: OS Independent',
35 'Programming Language :: Python',
36 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
37 'Topic :: Software Development',
38 'Topic :: Software Development :: Libraries :: Application Frameworks',
39 ],
40 requires=[
41 'django (>1.1.0)',
42 ],
21eafef @digi604 fixes #291 example is not installed anymore
digi604 authored
43 packages=find_packages(exclude=["example", "example.*"]),
52a79a1 @jezdez Added code to handle all the wonderful media files when creating a so…
jezdez authored
44 package_data={
45 'cms': [
46 'templates/admin/*.html',
47 'templates/admin/cms/mail/*.html',
48 'templates/admin/cms/mail/*.txt',
49 'templates/admin/cms/page/*.html',
50 'templates/admin/cms/page/*/*.html',
51 'templates/cms/*.html',
52 'templates/cms/*/*.html',
53 'plugins/*/templates/cms/plugins/*.html',
54 'plugins/*/templates/cms/plugins/*/*.html',
55 'plugins/*/templates/cms/plugins/*/*.js',
56 'locale/*/LC_MESSAGES/*'
57 ] + media_files,
58 'example': [
59 'templates/*.html',
60 'store/templates/store/plugins/*.html',
61 'sampleapp/media/sampleapp/img/gift.jpg',
62 'sampleapp/templates/sampleapp/*.html',
63 'categories/templates/categories/*.html',
ef5a2c7 Added the templates directory of the menu module to the list of packa…
Jonathan Stoppani authored
64 ],
65 'menus': [
66 'templates/menu/*.html',
67 ],
52a79a1 @jezdez Added code to handle all the wonderful media files when creating a so…
jezdez authored
68 },
407a670 @digi604 merge
digi604 authored
69 zip_safe = False
872b31f Added a setup.py to be able to install django-cms with easy_install, …
Philipp Bosch authored
70 )
Something went wrong with that request. Please try again.