aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-07-08 15:13:14 +0000
committerPJ Eby <distutils-sig@python.org>2005-07-08 15:13:14 +0000
commitd399fdec29aa413761eef7a5cd6355ae6b2a96f0 (patch)
treefdca62d3cfe4fccbe3c36b0bcc0c92dda20e806f /setup.py
parentef617190807f0c5387b8151f0c08c6777b1c2b28 (diff)
downloadexternal_python_setuptools-d399fdec29aa413761eef7a5cd6355ae6b2a96f0.tar.gz
external_python_setuptools-d399fdec29aa413761eef7a5cd6355ae6b2a96f0.tar.bz2
external_python_setuptools-d399fdec29aa413761eef7a5cd6355ae6b2a96f0.zip
Partial first draft documentation for setuptools. Split revision history
between setuptools and easy_install docs. Pull project's long_description from the documentation, for a more informative PyPI project page. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041097
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/setup.py b/setup.py
index ca5047b0..40f0029f 100755
--- a/setup.py
+++ b/setup.py
@@ -1,33 +1,34 @@
#!/usr/bin/env python
"""Distutils setup file, used to install or test 'setuptools'"""
+def get_description():
+ # Get our long description from the documentation
+ f = file('setuptools.txt')
+ lines = []
+ for line in f:
+ if not line.strip():
+ break # skip to first blank line
+ for line in f:
+ if line.startswith('.. contents::'):
+ break # read to table of contents
+ lines.append(line)
+ f.close()
+ return ''.join(lines)
+
VERSION = "0.5a7"
-from setuptools import setup, find_packages, Require
+from setuptools import setup, find_packages, Require
setup(
name="setuptools",
version=VERSION,
-
description="Download, build, install, upgrade, and uninstall Python "
"packages -- easily!",
-
author="Phillip J. Eby",
author_email="peak@eby-sarna.com",
license="PSF or ZPL",
- long_description =
- "Setuptools enhances the distutils with support for Python Eggs "
- "(http://peak.telecommunity.com/DevCenter/PythonEggs) and more. Its "
- "'EasyInstall' tool "
- "(http://peak.telecommunity.com/DevCenter/EasyInstall) lets you "
- "download and install (or cleanly upgrade) Python packages on your "
- "system, from source distributions, subversion checkouts, SourceForge "
- "download mirrors, or from Python Eggs. Been looking for a CPAN "
- "clone for Python? When combined with PyPI, this gets pretty darn "
- "close. See the home page and download page for details and docs.",
-
+ long_description = get_description(),
keywords = "CPAN PyPI distutils eggs package management",
url = "http://peak.telecommunity.com/DevCenter/EasyInstall",
-
test_suite = 'setuptools.tests.test_suite',
requires = [
Require('Distutils','1.0.3','distutils',
@@ -38,7 +39,6 @@ setup(
-
packages = find_packages(),
py_modules = ['pkg_resources'],
scripts = ['easy_install.py'],