[wwwsearch-commits] r19285 - wwwsearch/mechanize/trunk
jjlee at codespeak.net
jjlee at codespeak.net
Mon Oct 31 18:53:10 CET 2005
Author: jjlee
Date: Mon Oct 31 18:53:09 2005
New Revision: 19285
Added:
wwwsearch/mechanize/trunk/setup.py
- copied unchanged from r19284, wwwsearch/mechanize/trunk/setup.py.in
Removed:
wwwsearch/mechanize/trunk/setup.py.in
Log:
Rename setup.py.in --> setup.py
Deleted: /wwwsearch/mechanize/trunk/setup.py.in
==============================================================================
--- /wwwsearch/mechanize/trunk/setup.py.in Mon Oct 31 18:53:09 2005
+++ (empty file)
@@ -1,110 +0,0 @@
-#!/usr/bin/env python
-"""Stateful programmatic web browsing.
-
-Stateful programmatic web browsing, after Andy Lester's Perl module
-WWW::Mechanize.
-
-SVN URL for Python Eggs:
-
-http://codespeak.net/svn/wwwsearch/mechanize/trunk#egg=mechanize-dev
-"""
-
-def unparse_version(tup):
- major, minor, bugfix, state_char, pre = tup
- fmt = "%s.%s.%s"
- args = [major, minor, bugfix]
- if state_char is not None:
- fmt += "%s"
- args.append(state_char)
- if pre is not None:
- fmt += "-pre%s"
- args.append(pre)
- return fmt % tuple(args)
-
-def strToTuple(text):
- if text.startswith("("):
- text = text[1:-1]
- els = [el.strip() for el in text.split(",")]
- newEls = []
- for ii in range(len(els)):
- el = els[ii]
- if el == "None":
- newEls.append(None)
- elif 0 <= ii < 3:
- newEls.append(int(el))
- else:
- if el.startswith("'") or el.startswith('"'):
- el = el[1:-1]
- newEls.append(el)
- return tuple(newEls)
-
-import re
-VERSION_MATCH = re.search(r'__version__ = \((.*)\)', open("mechanize/_mechanize.py").read())
-VERSION_TUPLE_STRING = VERSION_MATCH.group(1)
-VERSION_TUPLE = strToTuple(VERSION_TUPLE_STRING)
-VERSION = unparse_version(VERSION_TUPLE)
-NAME = "mechanize"
-PACKAGE = True
-LICENSE = "BSD"
-PLATFORMS = ["any"]
-ZIP_SAFE = True
-CLASSIFIERS = """\
-Development Status :: 3 - Alpha
-Intended Audience :: Developers
-Intended Audience :: System Administrators
-License :: OSI Approved :: BSD License
-Natural Language :: English
-Operating System :: OS Independent
-Programming Language :: Python
-Topic :: Internet
-Topic :: Internet :: File Transfer Protocol (FTP)
-Topic :: Internet :: WWW/HTTP
-Topic :: Internet :: WWW/HTTP :: Browsers
-Topic :: Internet :: WWW/HTTP :: Indexing/Search
-Topic :: Internet :: WWW/HTTP :: Site Management
-Topic :: Internet :: WWW/HTTP :: Site Management :: Link Checking
-Topic :: Software Development :: Libraries
-Topic :: Software Development :: Libraries :: Python Modules
-Topic :: Software Development :: Testing
-Topic :: Software Development :: Testing :: Traffic Generation
-Topic :: System :: Archiving :: Mirroring
-Topic :: System :: Networking :: Monitoring
-Topic :: System :: Systems Administration
-Topic :: Text Processing :: Markup
-Topic :: Text Processing :: Markup :: HTML
-Topic :: Text Processing :: Markup :: XML
-"""
-
-#-------------------------------------------------------
-# the rest is constant for most of my released packages:
-
-import ez_setup
-ez_setup.use_setuptools()
-
-import setuptools
-
-if PACKAGE:
- packages, py_modules = [NAME], None
-else:
- packages, py_modules = None, [NAME]
-
-doclines = __doc__.split("\n")
-
-setuptools.setup(
- name = NAME,
- version = VERSION,
- license = LICENSE,
- platforms = PLATFORMS,
- classifiers = filter(None, CLASSIFIERS.split("\n")),
- zip_safe = ZIP_SAFE,
- test_suite = "test",
- author = "John J. Lee",
- author_email = "jjl at pobox.com",
- description = doclines[0],
- url = "http://wwwsearch.sourceforge.net/%s/" % NAME,
- download_url = ("http://wwwsearch.sourceforge.net/%s/src/"
- "%s-%s.tar.gz" % (NAME, NAME, VERSION)),
- long_description = "\n".join(doclines[2:]),
- py_modules = py_modules,
- packages = packages,
- )
More information about the wwwsearch-commits
mailing list