Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 82 lines (76 sloc) 2.698 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:]))
6fba0e2 @ojii changed setup.py to use the proper classifiers
ojii authored
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 ]
52a79a1 @jezdez Added code to handle all the wonderful media files when creating a so…
jezdez authored
36
872b31f Added a setup.py to be able to install django-cms with easy_install, …
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, …
Philipp Bosch authored
42 description='An Advanced Django CMS',
407a670 @digi604 merge
digi604 authored
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'],
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',
50 'django-classy-tags>=0.2.2',
cac1548 @chrisglass Added dependency to PIL 1.1.6 in setup.py
chrisglass authored
51 'PIL>=1.1.6',
ace75c0 @chrisglass Added dependency on South to setup.py
chrisglass authored
52 'south>=0.7.2',
407a670 @digi604 merge
digi604 authored
53 ],
c7fc3d1 @ojii Djanog-CMS 2.1.0 Release Candidate 1
ojii authored
54 packages=find_packages(exclude=["example", "example.*","testdata","testdata.*"]),
52a79a1 @jezdez Added code to handle all the wonderful media files when creating a so…
jezdez authored
55 package_data={
56 'cms': [
57 'templates/admin/*.html',
58 'templates/admin/cms/mail/*.html',
59 'templates/admin/cms/mail/*.txt',
60 'templates/admin/cms/page/*.html',
61 'templates/admin/cms/page/*/*.html',
62 'templates/cms/*.html',
63 'templates/cms/*/*.html',
64 'plugins/*/templates/cms/plugins/*.html',
65 'plugins/*/templates/cms/plugins/*/*.html',
66 'plugins/*/templates/cms/plugins/*/*.js',
a63a2de @digi604 beta2
digi604 authored
67 'locale/*/LC_MESSAGES/*',
52a79a1 @jezdez Added code to handle all the wonderful media files when creating a so…
jezdez authored
68 ] + media_files,
69 'example': [
a63a2de @digi604 beta2
digi604 authored
70 'media/css/*.css',
71 'media/img/*.jpg',
52a79a1 @jezdez Added code to handle all the wonderful media files when creating a so…
jezdez authored
72 'templates/*.html',
73 'sampleapp/media/sampleapp/img/gift.jpg',
74 'sampleapp/templates/sampleapp/*.html',
ef5a2c7 Added the templates directory of the menu module to the list of packa…
Jonathan Stoppani authored
75 ],
76 'menus': [
77 'templates/menu/*.html',
78 ],
52a79a1 @jezdez Added code to handle all the wonderful media files when creating a so…
jezdez authored
79 },
407a670 @digi604 merge
digi604 authored
80 zip_safe = False
872b31f Added a setup.py to be able to install django-cms with easy_install, …
Philipp Bosch authored
81 )
Something went wrong with that request. Please try again.