Add setup attempt
[apachelog.git] / setup.py
1 from distutils.core import setup
2
3 # From inspecting Mark Pilgrims feedparser...
4 # patch distutils if it can't cope with the "classifiers" or "download_url"
5 # keywords (prior to python 2.3.0).
6 from distutils.dist import DistributionMetadata
7 if not hasattr(DistributionMetadata,'classifiers'):
8     DistributionMetadata.classifiers = None
9     
10 setup(
11     name = 'apachelog',
12     version = '1.0',
13     description = 'Access log parser in python, ported from '\
14     'Peter Hickman\'s Apache::LogRegex Perl moduleUniversal.',
15     long_description = """\
16 Apache Log Parser
17 -----------------
18
19 Parser for extracting fields from a single line of an Apache
20 access.log (should work for other servers conforming to the
21 Common Log Format).
22
23 Create the parser with the log format from your server .conf
24 file, parse lines to get dict corresponding to fields defined
25 in the log format.
26
27
28 """,
29     author='Harry Fuecks',
30     author_email = 'hfuecks@gmail.com',
31     url = 'http://code.google.com/p/apachelog',
32     license = "Artistic License / GPLv2",
33     platforms = ['POSIX', 'Windows'],
34     keywords = ['apache', 'log', 'parser'],
35     classifiers = [
36         "Development Status :: 4 - Beta",
37         "Environment :: Console",
38         "Environment :: Web Environment",
39         "Intended Audience :: Developers",
40         "Intended Audience :: System Administrators",
41         "License :: OSI Approved :: Artistic License",
42         "License :: OSI Approved :: GNU General Public License (GPL)",
43         "Operating System :: OS Independent",
44         "Programming Language :: Python",
45         "Topic :: Internet :: Log Analysis",
46         "Topic :: System :: Logging",
47         "Topic :: Software Development :: Libraries :: Python Modules",
48         "Topic :: Text Processing",
49         ],
50     py_modules = ['apachelog',]
51     )