annotate setup.py @ 3:5f1e1ac96aa7

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