annotate setup.py @ 136:b97c454cfa3b

STUB: README.txt
author Jeff Hammel <k0scist@gmail.com>
date Sun, 11 May 2014 08:52:13 -0700
parents af5e83a4763b
children a95e7f218bd2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
1 """
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2 setup packaging script for configuration
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3 """
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
4
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
5 import os
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
6
132
af5e83a4763b STUB: setup.py
Jeff Hammel <k0scist@gmail.com>
parents: 130
diff changeset
7 version = "0.4.2"
97
0c47bcb63048 remove MakeItSo vestiges (for now) and bump version
Jeff Hammel <jhammel@mozilla.com>
parents: 83
diff changeset
8 dependencies = ['PyYAML']
0
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
9
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
10 try:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
11 import json
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
12 except ImportError:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
13 dependencies.append('simplejson')
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
14
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
15 # allow use of setuptools/distribute or distutils
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
16 kw = {}
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
17 try:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
18 from setuptools import setup
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
19 kw['entry_points'] = """
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
20 [console_scripts]
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
21 configuration-template = configuration.template:main
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
22 """
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
23 kw['install_requires'] = dependencies
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
24 except ImportError:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
25 from distutils.core import setup
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
26 kw['requires'] = dependencies
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
27
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
28 try:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
29 here = os.path.dirname(os.path.abspath(__file__))
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
30 description = file(os.path.join(here, 'README.txt')).read()
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
31 except IOError:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
32 description = ''
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
33
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
34
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
35 setup(name='configuration',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
36 version=version,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
37 description="multi-level unified configuration",
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
38 long_description=description,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
39 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
40 author='Jeff Hammel',
130
6b798d23f99f we are under new management
Jeff Hammel <k0scist@gmail.com>
parents: 124
diff changeset
41 author_email='k0scist@gmail.com',
6b798d23f99f we are under new management
Jeff Hammel <k0scist@gmail.com>
parents: 124
diff changeset
42 url='http://k0s.org/hg/configuration',
0
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
43 license='MPL',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
44 packages=['configuration'],
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
45 include_package_data=True,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
46 zip_safe=False,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
47 **kw
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
48 )