[Python-modules-commits] r15626 - in packages/beautifulsoup/tags (3 files)
stefanor at users.alioth.debian.org
stefanor at users.alioth.debian.org
Sun Feb 13 15:04:10 UTC 2011
Date: Sunday, February 13, 2011 @ 15:03:46
Author: stefanor
Revision: 15626
[svn-buildpackage] Tagging beautifulsoup 3.1.0.1-2
Added:
packages/beautifulsoup/tags/3.1.0.1-2/
packages/beautifulsoup/tags/3.1.0.1-2/debian/
packages/beautifulsoup/tags/3.1.0.1-2/setup.py
(from rev 15624, packages/beautifulsoup/trunk/setup.py)
Copied: packages/beautifulsoup/tags/3.1.0.1-2/setup.py (from rev 15624, packages/beautifulsoup/trunk/setup.py)
===================================================================
--- packages/beautifulsoup/tags/3.1.0.1-2/setup.py (rev 0)
+++ packages/beautifulsoup/tags/3.1.0.1-2/setup.py 2011-02-13 15:03:46 UTC (rev 15626)
@@ -0,0 +1,65 @@
+from distutils.core import setup
+import unittest
+import warnings
+warnings.filterwarnings("ignore", "Unknown distribution option")
+
+import sys
+# patch distutils if it can't cope with the "classifiers" keyword
+if sys.version < '2.2.3':
+ from distutils.dist import DistributionMetadata
+ DistributionMetadata.classifiers = None
+ DistributionMetadata.download_url = None
+
+from BeautifulSoup import __version__
+
+#Make sure all the tests complete.
+import BeautifulSoupTests
+loader = unittest.TestLoader()
+result = unittest.TestResult()
+suite = loader.loadTestsFromModule(BeautifulSoupTests)
+suite.run(result)
+if not result.wasSuccessful():
+ print "Unit tests have failed!"
+ for l in result.errors, result.failures:
+ for case, error in l:
+ print "-" * 80
+ desc = case.shortDescription()
+ if desc:
+ print desc
+ print error
+ print '''If you see an error like: "'ascii' codec can't encode character...", see\nthe Beautiful Soup documentation:\n http://www.crummy.com/software/BeautifulSoup/documentation.html#Why%20can't%20Beautiful%20Soup%20print%20out%20the%20non-ASCII%20characters%20I%20gave%20it?'''
+ print "This might or might not be a problem depending on what you plan to do with\nBeautiful Soup."
+ if sys.argv[1] == 'sdist':
+ print
+ print "I'm not going to make a source distribution since the tests don't pass."
+ sys.exit(1)
+
+setup(name="BeautifulSoup",
+ version=__version__,
+ py_modules=['BeautifulSoup', 'BeautifulSoupTests'],
+ scripts=[ #'testall.sh', 'to3.sh',
+ ## Whatever, I'll fix this later.
+ #'README', 'CHANGELOG',
+ # 'BeautifulSoup.py.3.diff', 'BeautifulSoupTests.py.3.diff'],
+ ],
+ description="HTML/XML parser for quick-turnaround applications like screen-scraping.",
+ author="Leonard Richardson",
+ author_email = "leonardr at segfault.org",
+ long_description="""Beautiful Soup parses arbitrarily invalid SGML and provides a variety of methods and Pythonic idioms for iterating and searching the parse tree.""",
+ classifiers=["Development Status :: 5 - Production/Stable",
+ "Intended Audience :: Developers",
+ "License :: OSI Approved :: Python Software Foundation License",
+ "Programming Language :: Python",
+ "Topic :: Text Processing :: Markup :: HTML",
+ "Topic :: Text Processing :: Markup :: XML",
+ "Topic :: Text Processing :: Markup :: SGML",
+ "Topic :: Software Development :: Libraries :: Python Modules",
+ ],
+ url="http://www.crummy.com/software/BeautifulSoup/",
+ license="BSD",
+ download_url="http://www.crummy.com/software/BeautifulSoup/download/"
+ )
+
+ # Send announce to:
+ # python-announce at python.org
+ # python-list at python.org
More information about the Python-modules-commits
mailing list