~malept/python-jsutils/trunk

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Mark Lee
  • Date: 2009-04-17 23:06:08 UTC
  • Revision ID: bzr@lazymalevolence.com-20090417230608-5v3j10i315w2tteo
Initial commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
#
 
3
# Copyright 2009 Mark Lee <python-jsutils@lazymalevolence.com>
 
4
#
 
5
# Licensed under the Apache License, Version 2.0 (the "License");
 
6
# you may not use this file except in compliance with the License.
 
7
# You may obtain a copy of the License at
 
8
#
 
9
#     http://www.apache.org/licenses/LICENSE-2.0
 
10
#
 
11
# Unless required by applicable law or agreed to in writing, software
 
12
# distributed under the License is distributed on an "AS IS" BASIS,
 
13
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
14
# See the License for the specific language governing permissions and
 
15
# limitations under the License.
 
16
 
 
17
from distutils.core import setup
 
18
try:
 
19
    from sphinx.setup_command import BuildDoc
 
20
    cmdclass = {'build_sphinx': BuildDoc}
 
21
except ImportError:
 
22
    cmdclass = {}
 
23
 
 
24
longdesc = '''\
 
25
A Python interface to JavaScript-related utilities, which are also
 
26
written in JavaScript. This includes Douglas Crockford's `JSLint`_ and Dean
 
27
Edwards's `Packer`_.
 
28
 
 
29
.. _JSLint: http://www.jslint.com/
 
30
.. _Packer: http://dean.edwards.name/packer/
 
31
 
 
32
This depends on `python-spidermonkey`_ (> 0.0.5), found on PyPI.
 
33
 
 
34
.. _python-spidermonkey: http://pypi.python.org/pypi/python-spidermonkey
 
35
'''
 
36
 
 
37
setup(name='JavaScript Utilities for Python',
 
38
      version='0.1',
 
39
      author='Mark Lee',
 
40
      author_email='python-jsutils@lazymalevolence.com',
 
41
      license='Apache License, Version 2.0',
 
42
      url='https://launchpad.net/python-jsutils',
 
43
      description='A Python interface to JavaScript-related utilities.',
 
44
      long_description=longdesc,
 
45
      classifiers=[
 
46
          'Development Status :: 4 - Beta',
 
47
          'Intended Audience :: Developers',
 
48
          'License :: OSI Approved :: Apache Software License',
 
49
          'Programming Language :: JavaScript',
 
50
          'Programming Language :: Python',
 
51
          'Topic :: Software Development'],
 
52
      packages=['javascript'],
 
53
      scripts=['scripts/jslint', 'scripts/packer'],
 
54
      cmdclass=cmdclass)