File tree Expand file tree Collapse file tree 5 files changed +33
-8
lines changed
Expand file tree Collapse file tree 5 files changed +33
-8
lines changed Original file line number Diff line number Diff line change 11.Python
2- bin /
3- include /
4- lib /
5- share /
6- src /
2+ * .swp
3+ * .swo
74* .pyc
5+ * .pyo
6+ /* .egg-info
7+ /.tox
8+ /build
9+ /dist
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ This library is distributed as 'fluent-logger' python package. Please execute th
1313
1414 $ pip install fluent-logger
1515
16+ On Python 2.5, you have to install 'simplejson' in addition.
17+
1618## Configuration
1719
1820Fluent daemon must be lauched with the following configuration:
Original file line number Diff line number Diff line change 44import msgpack
55import socket
66import threading
7- import json
7+
8+ try :
9+ import json
10+ except ImportError :
11+ import simplejson as json
812
913from fluent import sender
1014
Original file line number Diff line number Diff line change 11#!/usr/bin/python
22
3- from distutils .core import setup
43from os import path
54
5+ try :
6+ from setuptools import setup
7+ except ImportError :
8+ from distutils .core import setup
9+
610README = path .abspath (path .join (path .dirname (__file__ ), 'README.md' ))
711desc = 'A Python logging handler for Fluentd event collector'
812
2428 'Programming Language :: Python :: 3' ,
2529 'Development Status :: 4 - Beta' ,
2630 'Intended Audience :: Developers' ,
27- ]
31+ ],
32+ test_suite = 'tests'
2833)
Original file line number Diff line number Diff line change 1+ [tox]
2+ envlist = py25, py26, py27
3+
4+ [testenv]
5+ commands =python setup.py test
6+
7+ [testenv:py25]
8+ deps = simplejson
9+
10+ [testenv:py26]
11+
12+ [testenv:py27]
You can’t perform that action at this time.
0 commit comments