annotate setup.py @ 1:99c252285817 default tip

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