1. Michael Schurter
  2. PyMOTW

Source

PyMOTW / setup.py.in

#!/usr/bin/env python
#
# Copyright 2007 Doug Hellmann.
#
#
#                         All Rights Reserved
#
# Permission to use, copy, modify, and distribute this software and
# its documentation for any purpose and without fee is hereby
# granted, provided that the above copyright notice appear in all
# copies and that both that copyright notice and this permission
# notice appear in supporting documentation, and that the name of Doug
# Hellmann not be used in advertising or publicity pertaining to
# distribution of the software without specific, written prior
# permission.
#
# DOUG HELLMANN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
# NO EVENT SHALL DOUG HELLMANN BE LIABLE FOR ANY SPECIAL, INDIRECT OR
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
# OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#

"""

"""

__module_id__ = "$Id: setup.py 1054 2007-09-20 19:43:45Z dhellmann $"

#
# Import system modules
#
from distutils.core import setup
import glob
import os

#
# Import local modules
#


#
# Module
#

PROJECT = 'PyMOTW'

# Find the list of sub-packages
packages = [ PROJECT ]
for candidate in glob.glob('%s/*/__init__.py' % PROJECT):
    parts = os.path.split(candidate)
    packages.append(parts[0].replace('/', '.'))

# Use a variable for the long description
readme = '''Python Module of the Week
=========================

PyMOTW is a series of blog posts written by `Doug Hellmann <http://www.doughellmann.com/>`_.  It was started as a way to build the habit of writing something on a regular basis.  The focus of the series is building a set of example code for the modules in the `Python <http://www.python.org/>`_ standard library.

:Project Home Page: http://www.doughellmann.com/PyMOTW/

Complete documentation for the standard library can be found on the Python web site at http://docs.python.org/lib/contents.html.

Subscribe
=========

As new articles are written, they are posted to `my blog <http://blog.doughellmann.com/>`_.  Updates are available by `RSS <http://feeds.feedburner.com/PyMOTW>`_ and `email <http://www.feedburner.com/fb/a/emailverifySubmit?feedId=806224&amp;loc=en_US>`_.

Translations and Other Versions
===============================

`Ernesto Rico Schmidt <http://denklab.org/>`_ provides a Spanish translation that follows the English version posts. Ernesto is in Bolivia, and is translating these examples as a way to contribute to the members of the `Bolivian Free Software <http://www.softwarelibre.org.bo/>`_ community who use Python.   The full list of articles available in Spanish can be found at http://denklab.org/articles/category/pymotw/, and of course there is an `RSS feed <http://denklab.org/feeds/articles/category/pymotw/>`_.

Gerard Flanagan is working on a "Python compendium" called `The Hazel Tree <http://www.thehazeltree.org/>`_.  He is converting a collection of old and new of Python-related reference material into reStructuredText and then building a single searchable repository from the results.  I am very pleased to have PyMOTW included with works from authors like Mark Pilgrim, Fredrik Lundh, Andrew Kuchling, and a growing list of others.

Copyright and Licensing
=======================

All of the prose from the Python Module of the Week is licensed under a `Creative Commons Attribution, Non-commercial, Share-alike 3.0 <http://creativecommons.org/licenses/by-nc-sa/3.0/us/>`_ license.  You are free to share and create derivative works from it.  If you post the material online, you must give attribution and link to the PyMOTW home page (http://www.doughellmann.com/PyMOTW/).  You may not use this work for commercial purposes.  If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

The source code included here is copyright Doug Hellmann and licensed under the BSD license.
'''

setup (
    name = PROJECT,
    version = 'VERSION',

    description = 'Python Module of the Week Examples: MODULE',
    long_description = readme,

    author = 'Doug Hellmann',
    author_email = 'doug.hellmann@gmail.com',

    url = 'http://www.doughellmann.com/PyMOTW/',
    download_url = 'http://www.doughellmann.com/downloads/%s-%s.tar.gz' % (PROJECT, 'VERSION'),

    classifiers = [ 'Development Status :: 5 - Production/Stable',
                    'Environment :: Console',
                    'Intended Audience :: Developers',
                    'Intended Audience :: Education',
                    'License :: OSI Approved :: BSD License',
                    'Operating System :: POSIX',
                    'Programming Language :: Python',
                    'Topic :: Software Development',
                    ],

    platforms = ('Any',),
    keywords = ('python', 'PyMOTW', 'documentation'),

    packages = packages,

    package_dir = { 'PyMOTW':'PyMOTW' },
    )