-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
66 lines (53 loc) · 2.04 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
60
61
62
63
64
65
66
#! coding: utf-8
from distutils.core import setup
import os
version = __import__('cms_chunks').__version__
install_requires = open('requirements.txt').readlines(),
# Compile the list of packages available, because distutils doesn't have
# an easy way to do this.
packages, data_files = [], []
root_dir = os.path.dirname(__file__)
if root_dir:
os.chdir(root_dir)
PACKAGE = 'cms_chunks'
for dirpath, dirnames, filenames in os.walk(PACKAGE):
for i, dirname in enumerate(dirnames):
if dirname in ['.', '..']:
del dirnames[i]
if '__init__.py' in filenames:
pkg = dirpath.replace(os.path.sep, '.')
if os.path.altsep:
pkg = pkg.replace(os.path.altsep, '.')
packages.append(pkg)
elif filenames:
prefix = dirpath[len(PACKAGE) + 1:] # Strip package directory + path separator
for f in filenames:
data_files.append(os.path.join(prefix, f))
setup(
name='django-cms-chunks',
version=version,
author='Leandro Gomez',
author_email='[email protected]',
packages=packages,
package_data={'cms_chunks': data_files},
url='http://github.com/devartis/django-cms-chunks/',
license=open('LICENSE.txt').read(),
description='Edit chunks of your non CMS pages using django-cms',
long_description=open('README.md').read(),
download_url='http://pypi.python.org/packages/source/d/django-cms-chunks/django-cms-chunks-%s.tar.gz' % version,
install_requires=install_requires,
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: Developers',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 2 :: Only',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)
__author__ = 'lgomez'