forked from luispedro/django-gitcms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (50 loc) · 1.7 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# -*- coding: utf-8 -*-
# Copyright (C) 2008-2010, Luis Pedro Coelho <lpc@cmu.edu>
# vim: set ts=4 sts=4 sw=4 expandtab smartindent:
# Licence : Affero GPL v3 or later
from __future__ import division
from sys import exit
try:
import setuptools
except:
print '''
setuptools not found. Please install it.
On linux, the package is often called python-setuptools'''
exit(1)
execfile('gitcms/gitcms_version.py')
requires = [
'django',
'pyyaml',
'docutils',
'pygments',
]
long_description = file('README.rst').read()
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Other Environment',
'Framework :: Django',
'Programming Language :: Python',
'License :: OSI Approved :: GNU Affero General Public License v3',
]
package_dir = {}
package_data = {}
for subpackage in ('conferences', 'blog', 'pages', 'menus', 'books', 'publications'):
package_dir['gitcms.' + subpackage] = 'gitcms/' + subpackage
package_data['gitcms.' + subpackage] = ['templates/%s/*.html' % subpackage]
setuptools.setup(name = 'django-gitcms',
version = __version__,
description = 'Django Git CMS: A django based git-backed content management system',
long_description = long_description,
author = 'Luis Pedro Coelho',
author_email = 'lpc@cmu.edu',
license = 'MIT',
platforms = ['Any'],
classifiers = classifiers,
url = 'http://luispedro.org/software/git-cms',
packages = setuptools.find_packages(exclude=['tests', 'example-website']),
package_dir = package_dir,
package_data = package_data,
scripts = ['bin/django-gitcms-load-content'],
test_suite = 'nose.collector',
requires = requires,
)