Skip to content

Commit 949837f

Browse files
committed
Started major rewrite for 1.0
Support all the latest and greatest protocol features Async buffer with disk persistence
1 parent ace80f4 commit 949837f

28 files changed

+1285
-370
lines changed

.coveragerc

-8
This file was deleted.

.github/workflows/build.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: fluent-logger
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
jobs:
8+
build-stable:
9+
runs-on: ${{ matrix.os }}
10+
continue-on-error: false
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os:
15+
- ubuntu-latest
16+
- windows-latest
17+
- macosx-latest
18+
python-version:
19+
- '3.10'
20+
- '3.9'
21+
- '3.8'
22+
- '3.7'
23+
- '3.6'
24+
- 'pypy-3.7'
25+
env:
26+
DEPLOY_PYTHONS: "3.9"
27+
DEPLOY_OSES: "Linux"
28+
TWINE_USERNAME: __token__
29+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
steps:
32+
- shell: bash
33+
if: |
34+
github.event_name == 'push' &&
35+
contains(env.DEPLOY_OSES, runner.os) &&
36+
contains(env.DEPLOY_PYTHONS, matrix.python-version)
37+
run: |
38+
echo "PYB_EXTRA_ARGS=+upload" >> $GITHUB_ENV
39+
- uses: pybuilder/build@master
40+
with:
41+
python-version: ${{ matrix.python-version }}
42+
pyb-extra-args: ${{ env.PYB_EXTRA_ARGS }}
43+
build-stable-summary:
44+
if: success() || failure()
45+
runs-on: ubuntu-latest
46+
name: Build Stable Summary
47+
needs: build-stable
48+
steps:
49+
- name: Check build matrix status
50+
if: needs.build-stable.result != 'success'
51+
run: exit 1

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@
99
/.tox
1010
/build
1111
/dist
12-
.idea/
12+
/.idea
13+
/.pybuilder
14+
__pycache__
15+
/target

.travis.yml

-33
This file was deleted.

COPYING renamed to LICENSE

File renamed without changes.

MANIFEST.in

-4
This file was deleted.

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ Python application.
2424
Requirements
2525
------------
2626

27-
- Python 3.5+
27+
- Python 3.6+
2828
- ``msgpack``
2929
- **IMPORTANT**: Version 0.8.0 is the last version supporting Python 2.6, 3.2 and 3.3
30-
- **IMPORTANT**: Version 0.9.6 is the last version supporting Python 2.7 and 3.4
30+
- **IMPORTANT**: Version 0.9.6 is the last version supporting Python 2.7, 3.4 and 3.5
3131

3232
Installation
3333
------------

build.py

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# -*- coding: utf-8 -*-
2+
from pybuilder.core import use_plugin, init, Author
3+
4+
use_plugin("python.core")
5+
use_plugin("python.unittest")
6+
use_plugin("python.flake8")
7+
use_plugin("python.coverage")
8+
use_plugin("python.coveralls")
9+
use_plugin("python.distutils")
10+
use_plugin("python.pycharm")
11+
use_plugin("copy_resources")
12+
13+
14+
name = "fluent-logger"
15+
summary = "A Python logging handler for FluentD event collector"
16+
17+
authors = [Author("Kazuki Ohta", "[email protected]")]
18+
maintainers = [Author("Arcadiy Ivanov", "[email protected]")]
19+
20+
url = "https://github.com/fluent/fluent-logger-python"
21+
urls = {"Bug Tracker": "https://github.com/fluent/fluent-logger-python/issues",
22+
"Source Code": "https://github.com/fluent/fluent-logger-python",
23+
"Documentation": "https://github.com/fluent/fluent-logger-python"
24+
}
25+
license = "Apache License, Version 2.0"
26+
version = "1.0.0.dev"
27+
28+
requires_python = ">=3.6"
29+
30+
default_task = ["analyze", "publish"]
31+
32+
33+
@init
34+
def set_properties(project):
35+
project.build_depends_on("docker", ">=5.0")
36+
project.build_depends_on("cryptography", ">=2.9.0")
37+
38+
project.set_property("verbose", True)
39+
40+
project.set_property("coverage_break_build", False)
41+
project.get_property("coverage_exceptions").extend(["setup"])
42+
43+
project.set_property("flake8_break_build", True)
44+
project.set_property("flake8_extend_ignore", "E303")
45+
project.set_property("flake8_include_test_sources", True)
46+
project.set_property("flake8_max_line_length", 130)
47+
48+
project.set_property("frosted_include_test_sources", True)
49+
project.set_property("frosted_include_scripts", True)
50+
51+
project.set_property("copy_resources_target", "$dir_dist/fluent")
52+
project.get_property("copy_resources_glob").append("LICENSE")
53+
project.include_file("fluent", "LICENSE")
54+
55+
# PyPy distutils needs os.environ['PATH'] not matter what
56+
# Also Windows needs PATH for DLL loading in all Pythons
57+
project.set_property("integrationtest_inherit_environment", True)
58+
59+
project.set_property("distutils_readme_description", True)
60+
project.set_property("distutils_description_overwrite", True)
61+
project.set_property("distutils_readme_file", "README.rst")
62+
project.set_property("distutils_upload_skip_existing", True)
63+
project.set_property("distutils_setup_keywords", ["fluentd", "logging", "logger", "python"])
64+
65+
project.set_property("distutils_classifiers", [
66+
"Programming Language :: Python",
67+
"Programming Language :: Python :: Implementation :: CPython",
68+
"Programming Language :: Python :: Implementation :: PyPy",
69+
"Programming Language :: Python :: 3",
70+
"Programming Language :: Python :: 3 :: Only"
71+
"Programming Language :: Python :: 3.5",
72+
"Programming Language :: Python :: 3.6",
73+
"Programming Language :: Python :: 3.7",
74+
"Programming Language :: Python :: 3.8",
75+
"Programming Language :: Python :: 3.9",
76+
"Operating System :: MacOS :: MacOS X",
77+
"Operating System :: POSIX :: Linux",
78+
"Operating System :: Microsoft :: Windows",
79+
"Operating System :: OS Independent",
80+
"Topic :: Software Development :: Libraries :: Python Modules",
81+
"Topic :: System :: Logging"
82+
"Intended Audience :: Developers",
83+
"Development Status :: 5 - Production/Stable",
84+
])
85+

0 commit comments

Comments
 (0)