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