Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 59 lines (55 sloc) 1.989 kB
3437fef @miracle2k Added shebang to setup.py.
miracle2k authored
1 #!/usr/bin/env python
2 import os
3b12b17 @miracle2k Update setup.py metadata.
miracle2k authored
3 from setuptools import setup, find_packages
3437fef @miracle2k Added shebang to setup.py.
miracle2k authored
4 try:
09e6c91 @johnpaulett Allow the package to be built without Sphinx being required.
johnpaulett authored
5 from sphinx.setup_command import BuildDoc
3437fef @miracle2k Added shebang to setup.py.
miracle2k authored
6 cmdclass = {'build_sphinx': BuildDoc}
09e6c91 @johnpaulett Allow the package to be built without Sphinx being required.
johnpaulett authored
7 except ImportError:
8 cmdclass = {}
ae633f6 @miracle2k Let setup.py read the version by parsing the file; this means we no l…
miracle2k authored
9
10
11 # Figure out the version; this could be done by importing the
12 # module, though that requires Django to be already installed,
13 # which may not be the case when processing a pip requirements
14 # file, for example.
15 import re
16 here = os.path.dirname(os.path.abspath(__file__))
17 version_re = re.compile(
18 r'__version__ = (\(.*?\))')
3b12b17 @miracle2k Update setup.py metadata.
miracle2k authored
19 fp = open(os.path.join(here, 'src/webassets', '__init__.py'))
ae633f6 @miracle2k Let setup.py read the version by parsing the file; this means we no l…
miracle2k authored
20 version = None
21 for line in fp:
22 match = version_re.search(line)
23 if match:
24 version = eval(match.group(1))
25 break
26 else:
855287a @miracle2k Forgot to update name when copying from virtualenv's setup.py.
miracle2k authored
27 raise Exception("Cannot find version in __init__.py")
ae633f6 @miracle2k Let setup.py read the version by parsing the file; this means we no l…
miracle2k authored
28 fp.close()
3437fef @miracle2k Added shebang to setup.py.
miracle2k authored
29
30
31 setup(
3feb883 @miracle2k We'll be writing this as one word.
miracle2k authored
32 name = 'webassets',
7eecdd8 @miracle2k Based on what was the Django management command, there is now a gener…
miracle2k authored
33 version = ".".join(map(str, version)),
3b12b17 @miracle2k Update setup.py metadata.
miracle2k authored
34 description = 'Media asset management for Python, with glue code for '+\
35 'various web frameworks',
3437fef @miracle2k Added shebang to setup.py.
miracle2k authored
36 long_description = 'Merges, minifies and compresses Javascript and '
37 'CSS files, supporting a variety of different filters, including '
38 'YUI, jsmin, jspacker or CSS tidy. Also supports URL rewriting '
39 'in CSS files.',
40 author = 'Michael Elsdoerfer',
3b12b17 @miracle2k Update setup.py metadata.
miracle2k authored
41 author_email = 'michael@elsdoerfer.com',
3437fef @miracle2k Added shebang to setup.py.
miracle2k authored
42 license = 'BSD',
a6d27ef @miracle2k Fix url in setup.py file.
miracle2k authored
43 url = 'http://github.com/miracle2k/webassets/',
3437fef @miracle2k Added shebang to setup.py.
miracle2k authored
44 classifiers = [
45 'Development Status :: 3 - Alpha',
46 'Environment :: Web Environment',
47 'Framework :: Django',
48 'Intended Audience :: Developers',
49 'License :: OSI Approved :: BSD License',
50 'Operating System :: OS Independent',
51 'Programming Language :: Python',
52 'Topic :: Internet :: WWW/HTTP',
53 'Topic :: Software Development :: Libraries',
54 ],
7eecdd8 @miracle2k Based on what was the Django management command, there is now a gener…
miracle2k authored
55 entry_points = """[console_scripts]\nwebassets = webassets.script:run\n""",
3b12b17 @miracle2k Update setup.py metadata.
miracle2k authored
56 packages = find_packages('src'),
57 package_dir = {'': 'src'},
7eecdd8 @miracle2k Based on what was the Django management command, there is now a gener…
miracle2k authored
58 cmdclass = cmdclass,
59 )
Something went wrong with that request. Please try again.