From e03e046088f14f02752facdbe9c3f26186a32d26 Mon Sep 17 00:00:00 2001 From: hfuecks Date: Sun, 10 Dec 2006 21:57:13 +0000 Subject: [PATCH] Add setup attempt --- setup.py | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100755 setup.py diff --git a/setup.py b/setup.py new file mode 100755 index 0000000..6cdeea9 --- /dev/null +++ b/setup.py @@ -0,0 +1,51 @@ +from distutils.core import setup + +# From inspecting Mark Pilgrims feedparser... +# patch distutils if it can't cope with the "classifiers" or "download_url" +# keywords (prior to python 2.3.0). +from distutils.dist import DistributionMetadata +if not hasattr(DistributionMetadata,'classifiers'): + DistributionMetadata.classifiers = None + +setup( + name = 'apachelog', + version = '1.0', + description = 'Access log parser in python, ported from '\ + 'Peter Hickman\'s Apache::LogRegex Perl moduleUniversal.', + long_description = """\ +Apache Log Parser +----------------- + +Parser for extracting fields from a single line of an Apache +access.log (should work for other servers conforming to the +Common Log Format). + +Create the parser with the log format from your server .conf +file, parse lines to get dict corresponding to fields defined +in the log format. + + +""", + author='Harry Fuecks', + author_email = 'hfuecks@gmail.com', + url = 'http://code.google.com/p/apachelog', + license = "Artistic License / GPLv2", + platforms = ['POSIX', 'Windows'], + keywords = ['apache', 'log', 'parser'], + classifiers = [ + "Development Status :: 4 - Beta", + "Environment :: Console", + "Environment :: Web Environment", + "Intended Audience :: Developers", + "Intended Audience :: System Administrators", + "License :: OSI Approved :: Artistic License", + "License :: OSI Approved :: GNU General Public License (GPL)", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Topic :: Internet :: Log Analysis", + "Topic :: System :: Logging", + "Topic :: Software Development :: Libraries :: Python Modules", + "Topic :: Text Processing", + ], + py_modules = ['apachelog',] + ) -- 2.26.2