Skip to content
This repository
Newer
Older
100644 82 lines (77 sloc) 2.74 kb
872b31fa » Philipp Bosch
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 » jezdez
2010-02-04 Added code to handle all the wonderful media files when creating a so…
2 import os, fnmatch
407a6709 » digi604
2009-10-08 merge
3 import cms
aada1b49 » Stavros Korokithakis
2009-09-24 Changed setup to copy media files to the django-cms installation dire…
4
52a79a14 » jezdez
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 » ojii
2010-05-14 changed setup.py to use the proper classifiers
17
18 if cms.VERSION[-1] == 'final':
6ec0673a » ojii
2011-01-28 fixed classifier in setup.py
19 CLASSIFIERS = ['Development Status :: 5 - Production/Stable']
6fba0e25 » ojii
2010-05-14 changed setup.py to use the proper classifiers
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 » jezdez
2010-02-04 Added code to handle all the wonderful media files when creating a so…
36
872b31fa » Philipp Bosch
2009-07-25 Added a setup.py to be able to install django-cms with easy_install, …
37 setup(
407a6709 » digi604
2009-10-08 merge
38 author="Patrick Lauber",
39 author_email="digi@treepy.com",
1cc8ac1c » ojii
2010-10-18 fixed setup.py
40 name='django-cms',
41 version=cms.__version__,
872b31fa » Philipp Bosch
2009-07-25 Added a setup.py to be able to install django-cms with easy_install, …
42 description='An Advanced Django CMS',
927ef436 » ojii
2011-01-18 python packaging is annoying...
43 long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(),
407a6709 » digi604
2009-10-08 merge
44 url='http://www.django-cms.org/',
45 license='BSD License',
46 platforms=['OS Independent'],
6fba0e25 » ojii
2010-05-14 changed setup.py to use the proper classifiers
47 classifiers=CLASSIFIERS,
8a56786e » ojii
2010-12-08 Switched to classy tags for readability and sanity
48 install_requires=[
49 'Django>=1.2',
50 'django-classy-tags>=0.2.2',
cac1548b » chrisglass
2011-01-07 Added dependency to PIL 1.1.6 in setup.py
51 'PIL>=1.1.6',
ace75c01 » chrisglass
2011-01-10 Added dependency on South to setup.py
52 'south>=0.7.2',
cd9dae52 » ojii
2011-01-30 Fixed some issues caused by the switch away from a shipped MPTT to dj…
53 'django-mptt>=0.4.2',
407a6709 » digi604
2009-10-08 merge
54 ],
c7fc3d16 » ojii
2010-12-24 Djanog-CMS 2.1.0 Release Candidate 1
55 packages=find_packages(exclude=["example", "example.*","testdata","testdata.*"]),
52a79a14 » jezdez
2010-02-04 Added code to handle all the wonderful media files when creating a so…
56 package_data={
57 'cms': [
58 'templates/admin/*.html',
59 'templates/admin/cms/mail/*.html',
60 'templates/admin/cms/mail/*.txt',
61 'templates/admin/cms/page/*.html',
62 'templates/admin/cms/page/*/*.html',
63 'templates/cms/*.html',
64 'templates/cms/*/*.html',
65 'plugins/*/templates/cms/plugins/*.html',
66 'plugins/*/templates/cms/plugins/*/*.html',
67 'plugins/*/templates/cms/plugins/*/*.js',
a63a2de6 » digi604
2010-03-23 beta2
68 'locale/*/LC_MESSAGES/*',
52a79a14 » jezdez
2010-02-04 Added code to handle all the wonderful media files when creating a so…
69 ] + media_files,
70 'example': [
a63a2de6 » digi604
2010-03-23 beta2
71 'media/css/*.css',
72 'media/img/*.jpg',
52a79a14 » jezdez
2010-02-04 Added code to handle all the wonderful media files when creating a so…
73 'templates/*.html',
74 'sampleapp/media/sampleapp/img/gift.jpg',
75 'sampleapp/templates/sampleapp/*.html',
ef5a2c78 » Jonathan Stoppani
2010-03-19 Added the templates directory of the menu module to the list of packa…
76 ],
77 'menus': [
78 'templates/menu/*.html',
79 ],
52a79a14 » jezdez
2010-02-04 Added code to handle all the wonderful media files when creating a so…
80 },
407a6709 » digi604
2009-10-08 merge
81 zip_safe = False
872b31fa » Philipp Bosch
2009-07-25 Added a setup.py to be able to install django-cms with easy_install, …
82 )
Something went wrong with that request. Please try again.