diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index 304ae37..0000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1 +0,0 @@ -* @waylayio/plugs diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml deleted file mode 100644 index 50345a7..0000000 --- a/.github/workflows/python.yml +++ /dev/null @@ -1,22 +0,0 @@ - -name: Python package - -on: - push: - branches: [waylay_main] - pull_request: - branches: [waylay_main] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.9 - uses: actions/setup-python@v4 - with: - python-version: '3.9' - - name: Install dev dependencies - run: make ci-install - - name: Lint and test - run: make test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index dadfade..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: python -python: - - "3.6" - - "3.7" - - "3.8" -dist: xenial -install: pip install tox tox-venv tox-travis -script: tox \ No newline at end of file diff --git a/README.md b/README.md index 126e39f..f4924ba 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # python-logging-loki -[![PyPI version](https://img.shields.io/pypi/v/python-logging-loki.svg)](https://pypi.org/project/python-logging-loki/) -[![Python version](https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8-blue.svg)](https://www.python.org/) +[![PyPI version](https://img.shields.io/pypi/v/inuits-python-logging-loki.svg)](https://pypi.org/project/inuits-python-logging-loki/) +[![Python version](https://img.shields.io/badge/python-3.6%20%7C%203.8%20%7C%203.7%20%7C%203.9%20%7C%203.10%20%7C%203.11-blue.svg)](https://www.python.org/) [![License](https://img.shields.io/pypi/l/python-logging-loki.svg)](https://opensource.org/licenses/MIT) [![Build Status](https://travis-ci.org/GreyZmeem/python-logging-loki.svg?branch=master)](https://travis-ci.org/GreyZmeem/python-logging-loki) @@ -11,7 +11,7 @@ https://grafana.com/loki # Installation ```bash -pip install python-logging-loki +pip install inuits-python-logging-loki ``` # Usage diff --git a/pyproject.toml b/pyproject.toml index 5428332..2b7ac64 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,29 @@ +# pyproject.toml + [build-system] -requires = ["setuptools >= 40.0.0"] +requires = ["setuptools>=59.6.0", "wheel"] build-backend = "setuptools.build_meta" + +[project] +name = "inuits-python-logging-loki" +version = "1.1.2" +description = "Python logging handler for Grafana Loki." +readme = "README.md" +authors = [{ name = "Inuits", email = "developers@inuits.eu" }, {name="Andrey Maslov", email="greyzmeem@gmail.com"}] +license = { file = "LICENSE" } +classifiers = [ + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Intended Audience :: Developers", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", +] +keywords = ["inuits-python-logging-loki", "inuits_python_logging_loki", "python-logging-loki", "python_logging_loki"] +dependencies = ["rfc3339>=6.1", "requests"] + +[project.urls] +Homepage = "https://github.com/inuits/python-logging-loki" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index ae6c24b..0000000 --- a/setup.cfg +++ /dev/null @@ -1,19 +0,0 @@ -[isort] -multi_line_output = 3 -include_trailing_comma = true -line_length = 119 -force_single_line = True -forced_separate = logging_loki -default_section = THIRDPARTY - -[flake8] -max-line-length = 120 -inline-quotes = double -max-imports = 15 -exclude = - .tox - logging_loki/__init__.py -ignore = D100,D104,DAR -per-file-ignores = - logging_loki/const.py:WPS226 - tests/*:D,S101,WPS118,WPS202,WPS204,WPS210,WPS226,WPS442 diff --git a/setup.py b/setup.py deleted file mode 100644 index e99cdfb..0000000 --- a/setup.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- - -import setuptools - -with open("README.md", "r") as fh: - long_description = fh.read() - -setuptools.setup( - name="inuits-python-logging-loki", - version="1.1.1", - description="Python logging handler for Grafana Loki.", - long_description=long_description, - long_description_content_type="text/markdown", - license="MIT", - author="Andrey Maslov", - author_email="greyzmeem@gmail.com", - url="https://github.com/greyzmeem/python-logging-loki", - packages=setuptools.find_packages(exclude=("tests",)), - python_requires=">=3.6", - install_requires=["rfc3339>=6.1", "requests"], - classifiers=[ - "Development Status :: 4 - Beta", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Topic :: Software Development :: Libraries :: Python Modules", - "Topic :: System :: Logging", - "Topic :: Internet :: WWW/HTTP", - ], -) diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 7a9e2e7..0000000 --- a/tox.ini +++ /dev/null @@ -1,34 +0,0 @@ -[tox] -envlist = - py{39}, - ; flake8, - ; black -isolated_build = true - -[travis] -python = - 3.6: py36 - 3.7: py37, flake8, black - 3.8: py38 - -[testenv] -setenv = - LC_ALL = en_US.UTF-8 - LANG = en_US.UTF-8 -deps = - pytest - coverage - freezegun -commands = coverage run -m pytest [] - -[testenv:flake8] -skip_install = true -basepython = python3.9 -deps = wemake-python-styleguide -commands = flake8 . - -[testenv:black] -skip_install = true -basepython = python3.9 -deps = black==19.10b0 -commands = black --check --diff -l 120 -t py39 .