diff --git a/.travis.yml b/.travis.yml index 1a955e1..b45cf4d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,6 @@ sudo: false language: python python: - - "2.7" - - "3.4" - "3.5" - "3.6" - "3.7" @@ -27,7 +25,7 @@ deploy: secure: CpNaj4F3TZvpP1aSJWidh/XexrWODV2sBdObrYU79Gyh9hFl6WLsA3JM9BfVsy9cGb/P/jP6ly4Z0/6qdIzZ5D6FPOB1B7rn5GZ2LAMOypRCA6W2uJbRjUU373Wut0p0OmQcMPto6XJsMlpvOEq+1uAq+LLAnAGEmmYTeskZebs= on: tags: true - condition: '"$TRAVIS_PYTHON_VERSION" = "3.7" || "$TRAVIS_PYTHON_VERSION" = "2.7"' + condition: '"$TRAVIS_PYTHON_VERSION" = "3.8"' distributions: "sdist bdist_wheel" matrix: diff --git a/setup.cfg b/setup.cfg index b8f2760..30c4979 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,47 @@ +[metadata] +name = fluent-logger +version = 1.0.0dev0 +description = A Python logging handler for FluentD event collector +author = Kazuki Ohta +author_email= kazuki.ohta@gmail.com +maintainer = Arcadiy Ivanov +maintainer_email = arcadiy@ivanov.biz +long_description = file: README.rst +long_description_content_type = text/x-rst; charset=UTF-8 +license = Apache License, Version 2.0 +keywords = fluentd logging logger python +url = https://github.com/fluent/fluent-logger-python/ +download_url = https://pypi.org/project/fluent-logger/ +project_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 +classifiers = + License :: OSI Approved :: Apache Software License + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.4 + Programming Language :: Python :: 3.5 + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 + Programming Language :: Python :: Implementation :: CPython + Programming Language :: Python :: Implementation :: PyPy + Development Status :: 5 - Production/Stable + Topic :: Software Development :: Libraries :: Python Modules + Topic :: System :: Logging + Intended Audience :: Developers + +[options] +zip_safe = True +install_requires= + msgpack +packages = + fluent +package_dir = + fluent = fluent +include_package_data = True +python_requires = >=3.5,<3.9 +test_suite = tests + [nosetests] match = ^test_ cover-package = fluent @@ -6,5 +50,3 @@ cover-erase = 1 cover-branches = 1 cover-inclusive = 1 cover-min-percentage = 70 -[bdist_wheel] -universal = 1 diff --git a/setup.py b/setup.py index e2330ab..beda28e 100755 --- a/setup.py +++ b/setup.py @@ -1,42 +1,5 @@ -#!/usr/bin/python +#!/usr/bin/env python -from os import path +from setuptools import setup -try: - from setuptools import setup -except ImportError: - from distutils.core import setup - -README = path.abspath(path.join(path.dirname(__file__), 'README.rst')) -desc = 'A Python logging handler for Fluentd event collector' - -setup( - name='fluent-logger', - version='0.9.4', - description=desc, - long_description=open(README).read(), - package_dir={'fluent': 'fluent'}, - packages=['fluent'], - install_requires=['msgpack'], - author='Kazuki Ohta', - author_email='kazuki.ohta@gmail.com', - url='https://github.com/fluent/fluent-logger-python', - download_url='http://pypi.python.org/pypi/fluent-logger/', - license='Apache License, Version 2.0', - classifiers=[ - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: Implementation :: CPython', - 'Programming Language :: Python :: Implementation :: PyPy', - 'Development Status :: 5 - Production/Stable', - 'Topic :: System :: Logging', - 'Intended Audience :: Developers', - ], - python_requires=">=2.7,!=3.0,!=3.1,!=3.2,!=3.3,<3.9", - test_suite='tests' -) +setup()