Skip to content

Commit

Permalink
Started major rewrite for 1.0
Browse files Browse the repository at this point in the history
Support all the latest and greatest protocol features
Async buffer with disk persistence

Signed-off-by: Arcadiy Ivanov <[email protected]>
  • Loading branch information
arcivanov committed May 27, 2020
1 parent eb68481 commit 1b68cb2
Show file tree
Hide file tree
Showing 28 changed files with 1,303 additions and 370 deletions.
8 changes: 0 additions & 8 deletions .coveragerc

This file was deleted.

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
/.tox
/build
/dist
.idea/
/.idea
/.pybuilder
__pycache__
/target
65 changes: 32 additions & 33 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
sudo: false
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- pypy
- pypy3
- nightly
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- "pip install -e ."
- "pip install 'coverage~=4.5.4' coveralls"
script:
- "PYTHONFAULTHANDLER=x timeout -sABRT 30s nosetests -vsd"
after_success:
- coveralls
language: c
dist: bionic
os:
- linux
# - osx
# - windows
#osx_image: xcode11.3
services:
- docker
addons:
apt:
packages:
- docker-ce
env:
jobs:
- PYTHON_VERSION="3.8.3"
- PYTHON_VERSION="3.7.7"
- PYTHON_VERSION="3.6.10"
- PYTHON_VERSION="3.5.9"
- PYTHON_VERSION="3.9.0b1"
global:
- DEPLOY_BRANCHES: "'master'"
- DEPLOY_PYTHONS: "'3.8.3'"
- DEPLOY_OSES: "'linux'"
- PYB_ARGS: "'-E ci -v -X analyze install'"
- TWINE_USERNAME: repeatedly
- secure: CpNaj4F3TZvpP1aSJWidh/XexrWODV2sBdObrYU79Gyh9hFl6WLsA3JM9BfVsy9cGb/P/jP6ly4Z0/6qdIzZ5D6FPOB1B7rn5GZ2LAMOypRCA6W2uJbRjUU373Wut0p0OmQcMPto6XJsMlpvOEq+1uAq+LLAnAGEmmYTeskZebs=

deploy:
provider: pypi
user: repeatedly
server: https://upload.pypi.org/legacy/
password:
secure: CpNaj4F3TZvpP1aSJWidh/XexrWODV2sBdObrYU79Gyh9hFl6WLsA3JM9BfVsy9cGb/P/jP6ly4Z0/6qdIzZ5D6FPOB1B7rn5GZ2LAMOypRCA6W2uJbRjUU373Wut0p0OmQcMPto6XJsMlpvOEq+1uAq+LLAnAGEmmYTeskZebs=
on:
tags: true
condition: '"$TRAVIS_PYTHON_VERSION" = "3.8" || "$TRAVIS_PYTHON_VERSION" = "2.7"'
distributions: "sdist bdist_wheel"
cache:
directories:
- $HOME/.pyenv

matrix:
allow_failures:
- python: nightly
install: travis_wait 30 python travis/travis_shim.py install
script: travis_wait 60 python travis/travis_shim.py build
File renamed without changes.
4 changes: 0 additions & 4 deletions MANIFEST.in

This file was deleted.

3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ Python application.
Requirements
------------

- Python 2.7 or 3.4+
- Python 3.5+
- ``msgpack-python``
- **IMPORTANT**: Version 0.8.0 is the last version supporting Python 2.6, 3.2 and 3.3
- **IMPORTANT**: Version 0.9.x is the last version supporting Python 2.7 and 3.4

Installation
------------
Expand Down
82 changes: 82 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# -*- coding: utf-8 -*-
from pybuilder.core import use_plugin, init, Author

use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.flake8")
use_plugin("python.coverage")
use_plugin("python.coveralls")
use_plugin("python.distutils")
use_plugin("python.pycharm")
use_plugin("copy_resources")


name = "fluent-logger"
summary = "A Python logging handler for FluentD event collector"

authors = [Author("Kazuki Ohta", "[email protected]")]
maintainers = [Author("Arcadiy Ivanov", "[email protected]")]

url = "https://github.com/fluent/fluent-logger-python"
urls = {"Bug Tracker": "https://github.com/fluent/fluent-logger-python/issues",
"Source Code": "https://github.com/fluent/fluent-logger-python",
"Documentation": "https://github.com/fluent/fluent-logger-python"
}
license = "Apache License, Version 2.0"
version = "1.0.0.dev"

requires_python = ">=3.5"

default_task = ["analyze", "publish"]


@init
def set_properties(project):
project.set_property("verbose", True)

project.set_property("coverage_break_build", True)
project.get_property("coverage_exceptions").extend(["setup"])

project.set_property("flake8_break_build", True)
project.set_property("flake8_extend_ignore", "E303")
project.set_property("flake8_include_test_sources", True)
project.set_property("flake8_max_line_length", 130)

project.set_property("frosted_include_test_sources", True)
project.set_property("frosted_include_scripts", True)

project.set_property("copy_resources_target", "$dir_dist/fluent")
project.get_property("copy_resources_glob").append("LICENSE")
project.include_file("fluent", "LICENSE")

# PyPy distutils needs os.environ['PATH'] not matter what
# Also Windows needs PATH for DLL loading in all Pythons
project.set_property("integrationtest_inherit_environment", True)

project.set_property("distutils_readme_description", True)
project.set_property("distutils_description_overwrite", True)
project.set_property("distutils_readme_file", "README.rst")
project.set_property("distutils_upload_skip_existing", True)
project.set_property("distutils_setup_keywords", ["fluentd", "logging", "logger", "python"])

project.set_property("distutils_classifiers", [
"Programming Language :: Python",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only"
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Logging"
"Intended Audience :: Developers",
"Development Status :: 5 - Production/Stable",
])

Loading

0 comments on commit 1b68cb2

Please sign in to comment.