annotate setup.py @ 0:4b51bcbcdb15

initial stub
author Jeff Hammel <k0scist@gmail.com>
date Tue, 15 Mar 2016 11:29:22 -0700
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 """
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2 setup packaging script for sqlitex
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3 """
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 import os
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
7 version = "0.0"
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
8 dependencies = ['webob']
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
9
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
10 # allow use of setuptools/distribute or distutils
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
11 kw = {}
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
12 try:
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
13 from setuptools import setup
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
14 kw['entry_points'] = """
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
15 [console_scripts]
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
16 sqlitex = sqlitex.api:main
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
17 sqlitex-web = sqlitex.web:main
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
18 """
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
19 kw['install_requires'] = dependencies
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
20 except ImportError:
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
21 from distutils.core import setup
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
22 kw['requires'] = dependencies
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
23
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
24 try:
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
25 here = os.path.dirname(os.path.abspath(__file__))
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
26 description = file(os.path.join(here, 'README.txt')).read()
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
27 except IOError:
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
28 description = ''
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
29
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
30
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
31 setup(name='sqlitex',
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
32 version=version,
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
33 description="sqlite explorer via web",
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
34 long_description=description,
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
35 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
36 author='Jeff Hammel',
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
37 author_email='k0scist@gmail.com',
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
38 url='http://k0s.org/hg/sqlitex',
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
39 license='',
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
40 packages=['sqlitex'],
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
41 include_package_data=True,
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
42 zip_safe=False,
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
43 **kw
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
44 )
4b51bcbcdb15 initial stub
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
45