annotate setup.py @ 2:2bfc2debcb1c

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