Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (38 sloc) 1.596 kb
from setuptools import setup
import os
README_FILE = open('README')
try:
LONG_DESCRIPTION = README_FILE.read()
finally:
README_FILE.close()
ROOT_DIR = os.path.dirname(os.path.realpath(__file__))
DATA_DIR = os.path.join(ROOT_DIR, 'django_startproject', 'project_template')
STARTPROJECT_DATA = []
for path, dirs, filenames in os.walk(DATA_DIR):
# Ignore directories that start with '.'
for i, dir in enumerate(dirs):
if dir.startswith('.'):
del dirs[i]
path = path[len(DATA_DIR) + 1:]
STARTPROJECT_DATA.append(os.path.join('project_template', path, '*.*'))
# Get files starting with '.' too (they are excluded from the *.* glob).
STARTPROJECT_DATA.append(os.path.join('project_template', path, '.*'))
setup(name='django-startproject',
version='1.0a',
author='Lincoln Loop',
author_email='info@lincolnloop.com',
description=('Create a Django project layout based on Lincoln Loop '
'best practices.'),
long_description=LONG_DESCRIPTION,
packages=['django_startproject'],
package_data={'django_startproject': STARTPROJECT_DATA},
scripts=['bin/django-startproject.py'],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'])
Jump to Line
Something went wrong with that request. Please try again.