|
| 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