Skip to content

migrate to pyproject.toml #198

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand All @@ -24,3 +24,14 @@ jobs:
run: python -m pip install -r requirements-dev.txt
- name: Run tests
run: pytest --cov=fluent

build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pipx run hatch build
- uses: actions/upload-artifact@v2
with:
name: dist
path: dist/*.*
4 changes: 0 additions & 4 deletions MANIFEST.in

This file was deleted.

1 change: 1 addition & 0 deletions fluent/__about__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '0.10.1dev1'
54 changes: 54 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "fluent-logger"
dynamic = ["version"]
description = "A Python logging handler for Fluentd event collector"
readme = "README.rst"
license = { file = "COPYING" }
requires-python = ">=3.7"
authors = [
{ name = "Kazuki Ohta", email = "kazuki.ohta@gmail.com" },
]
maintainers = [
{ name = "Arcadiy Ivanov", email = "arcadiy@ivanov.biz" },
{ name = "Inada Naoki", email = "songofacandy@gmail.com" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: System :: Logging",
]
dependencies = [
"msgpack>=1.0",
]

[project.urls]
Download = "https://pypi.org/project/fluent-logger/"
Homepage = "https://github.com/fluent/fluent-logger-python"

[tool.hatch.version]
path = "fluent/__about__.py"

[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/.tox",
"/.venv",
]

[tool.hatch.build.targets.wheel]
include = [
"/fluent",
]
10 changes: 0 additions & 10 deletions setup.cfg

This file was deleted.

43 changes: 0 additions & 43 deletions setup.py

This file was deleted.