Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 68 lines (61 sloc) 2.231 kb
#!/usr/bin/env python
import os
from distutils.core import setup
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
except ImportError:
print "Sphinx not installed--needed to build documentation"
# default cmdclass to None to avoid
cmdclass = {}
# Figure out the version; this could be done by importing the
# module, though that requires Django to be already installed,
# which may not be the case when processing a pip requirements
# file, for example.
import re
here = os.path.dirname(os.path.abspath(__file__))
version_re = re.compile(
r'__version__ = (\(.*?\))')
fp = open(os.path.join(here, 'django_assets', ''))
version = None
for line in fp:
match =
if match:
version = eval(
raise Exception("Cannot find version in")
def find_packages(root):
# so we don't depend on setuptools; from the Storm ORM
packages = []
for directory, subdirectories, files in os.walk(root):
if '' in files:
packages.append(directory.replace(os.sep, '.'))
return packages
name = 'django-assets',
version=".".join(map(str, version)),
description = 'Media asset management for the Django web framework.',
long_description = 'Merges, minifies and compresses Javascript and '
'CSS files, supporting a variety of different filters, including '
'YUI, jsmin, jspacker or CSS tidy. Also supports URL rewriting '
'in CSS files.',
author = 'Michael Elsdoerfer',
author_email = '',
license = 'BSD',
url = '',
classifiers = [
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries',
packages = find_packages('django_assets'),
Jump to Line
Something went wrong with that request. Please try again.