pytty

changeset 16:0c4060d7c478

setup.py now uses __doc__ and __credits__ from package source. Fixed indentation for 4 spaces vs 2
author Arc Riley <arcriley@gmail.com>
date Tue, 13 Dec 2011 11:50:05 -0500
parents 977c9604d58a
children c9c57104c858
files setup.py
diffstat 1 files changed, 40 insertions(+), 57 deletions(-) [+]
line diff
     1.1 --- a/setup.py	Tue Dec 13 11:20:58 2011 -0500
     1.2 +++ b/setup.py	Tue Dec 13 11:50:05 2011 -0500
     1.3 @@ -1,65 +1,48 @@
     1.4  #!/usr/bin/env python
     1.5  
     1.6 -''' PyTTY - Python serial access package '''
     1.7  
     1.8 -__credits__ = '''Copyright (C) 2010 Arc Riley
     1.9 -
    1.10 -    This program is free software; you can redistribute it and/or modify
    1.11 -    it under the terms of the GNU Lesser General Public License as published
    1.12 -    by the Free Software Foundation, either version 3 of the License, or
    1.13 -    (at your option) any later version.
    1.14 -
    1.15 -    This program is distributed in the hope that it will be useful,
    1.16 -    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.17 -    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.18 -    GNU Affero General Public License for more details.
    1.19 -
    1.20 -    You should have received a copy of the GNU Lesser General Public License
    1.21 -    along with this program; if not, see http://www.gnu.org/licenses
    1.22 -'''
    1.23 -
    1.24 -from src import __author__, __version__
    1.25 +from src import __author__, __credits__, __doc__, __version__
    1.26  import sys
    1.27  from distutils.core import setup
    1.28  
    1.29 +
    1.30  if __name__ == '__main__' : setup(
    1.31 -  #
    1.32 -  #############################################################################
    1.33 -  #
    1.34 -  # PyPI settings (for pypi.python.org)
    1.35 -  #
    1.36 -  name             = 'PyTTY',                    # Name of project, not module
    1.37 -  version          = __version__.split()[0],     # Release version or "Trunk"
    1.38 -  description      = 'Python serial access package',
    1.39 -  long_description = ''' ''',                              
    1.40 -  maintainer       = 'Arc Riley',
    1.41 -  maintainer_email = 'arcriley@gmail.org',
    1.42 -  url              = 'http://pypi.python.org/pypi/PyTTY',
    1.43 -  download_url     = 'http://pypi.python.org/packages/source/P/PyTTY/PyTTY-0.2.tar.gz',
    1.44 -  license          = 'GNU Lesser General Public License version 3 (LGPLv3)',
    1.45 -  classifiers      = [
    1.46 -    'Development Status :: 3 - Alpha',
    1.47 -    'Intended Audience :: Developers',
    1.48 -    'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
    1.49 -    'Natural Language :: English',
    1.50 -    'Operating System :: POSIX',
    1.51 -    'Programming Language :: Python :: 2.6',
    1.52 -    'Programming Language :: Python :: 2.7',
    1.53 -    'Programming Language :: Python :: 3',
    1.54 -    'Programming Language :: Python :: 3.1',
    1.55 -    'Programming Language :: Python :: 3.2',
    1.56 -    'Topic :: Communications',
    1.57 -    'Topic :: Terminals :: Serial',
    1.58 -  ],
    1.59 -  #
    1.60 -  #############################################################################
    1.61 -  #
    1.62 -  # Package settings
    1.63 -  #
    1.64 -  packages         = ['pytty',
    1.65 -  ],
    1.66 -  package_dir      = {'pytty' : 'src',
    1.67 -  },
    1.68 -  #
    1.69 -  #############################################################################
    1.70 +    #
    1.71 +    ###########################################################################
    1.72 +    #
    1.73 +    # PyPI settings (for pypi.python.org)
    1.74 +    #
    1.75 +    name             = 'PyTTY',                   # Name of project, not module
    1.76 +    version          = __version__.split()[0],
    1.77 +    description      = __doc__.splitlines()[0],
    1.78 +    long_description = '\n'.join(__doc__.splitlines()[2:]),
    1.79 +    maintainer       = 'Arc Riley',
    1.80 +    maintainer_email = 'arcriley@gmail.org',
    1.81 +    url              = 'http://www.pytty.org/',
    1.82 +    download_url     = 'http://pypi.python.org/pypi/PyTTY',
    1.83 +    license          = 'GNU Lesser General Public License version 3 (LGPLv3)',
    1.84 +    classifiers      = [
    1.85 +        'Development Status :: 3 - Alpha',
    1.86 +        'Intended Audience :: Developers',
    1.87 +        'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
    1.88 +        'Natural Language :: English',
    1.89 +        'Operating System :: POSIX',
    1.90 +        'Programming Language :: Python :: 2.6',
    1.91 +        'Programming Language :: Python :: 2.7',
    1.92 +        'Programming Language :: Python :: 3',
    1.93 +        'Programming Language :: Python :: 3.1',
    1.94 +        'Programming Language :: Python :: 3.2',
    1.95 +        'Programming Language :: Python :: Implementation :: CPython',
    1.96 +        'Topic :: Communications',
    1.97 +        'Topic :: Terminals :: Serial',
    1.98 +    ],
    1.99 +    #
   1.100 +    ###########################################################################
   1.101 +    #
   1.102 +    # Package settings
   1.103 +    #
   1.104 +    packages         = ['pytty'],
   1.105 +    package_dir      = {'pytty' : 'src'},
   1.106 +    #
   1.107 +    ###########################################################################
   1.108  )