-
Notifications
You must be signed in to change notification settings - Fork 29
/
setup.py
60 lines (55 loc) · 2.34 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# -*- python -*-
# pylogsparser - Logs parsers python library
#
# Copyright (C) 2011 Wallix SARL
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation; either version 2.1 of the License, or (at your
# option) any later version.
#
# This library is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this library; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
import os
import glob
from distutils.core import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
data = glob.glob('normalizers/*.xml')
data.extend(glob.glob('normalizers/*.template'))
data.extend(glob.glob('normalizers/*.dtd'))
fr_trans = glob.glob('logsparser/i18n/fr_FR/LC_MESSAGES/normalizer.*')
setup(
name = "pylogsparser",
version = "1.2",
author = "Wallix",
author_email = "opensource@wallix.org",
description = ("A log parser library packaged with a set of ready to use parsers (DHCPd, Squid, Apache, ...)"),
license = "LGPL",
keywords = "log parser xml library python",
url = "http://www.wallix.org/pylogsparser-project/",
package_dir={'logsparser.tests':'tests'},
packages=['logsparser', 'logsparser.tests', 'logsparser.extras'],
data_files=[('share/logsparser/normalizers', data),
('share/logsparser/i18n/fr_FR/LC_MESSAGES/', fr_trans),],
requires=['lxml', 'pytz', 'dateutil'],
long_description=read('README.rst'),
# http://pypi.python.org/pypi?:action=list_classifiers
classifiers=[
"Development Status :: 4 - Beta",
"Topic :: System :: Logging",
"Topic :: Software Development :: Libraries",
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
],
)