Mercurial > hg > configuration
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 |
rev | line source |
---|---|
0 | 1 """ |
2 setup packaging script for configuration | |
3 """ | |
4 | |
5 import os | |
6 | |
132 | 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 | 9 |
10 try: | |
11 import json | |
12 except ImportError: | |
13 dependencies.append('simplejson') | |
14 | |
15 # allow use of setuptools/distribute or distutils | |
16 kw = {} | |
17 try: | |
18 from setuptools import setup | |
19 kw['entry_points'] = """ | |
20 [console_scripts] | |
21 configuration-template = configuration.template:main | |
22 """ | |
23 kw['install_requires'] = dependencies | |
24 except ImportError: | |
25 from distutils.core import setup | |
26 kw['requires'] = dependencies | |
27 | |
28 try: | |
29 here = os.path.dirname(os.path.abspath(__file__)) | |
30 description = file(os.path.join(here, 'README.txt')).read() | |
31 except IOError: | |
32 description = '' | |
33 | |
34 | |
35 setup(name='configuration', | |
36 version=version, | |
37 description="multi-level unified configuration", | |
38 long_description=description, | |
39 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers | |
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 | 43 license='MPL', |
44 packages=['configuration'], | |
45 include_package_data=True, | |
46 zip_safe=False, | |
47 **kw | |
48 ) |