Skip to content

Commit

Permalink
migrate to pyproject.toml (#198)
Browse files Browse the repository at this point in the history
To build modern sdist and wheel.

Signed-off-by: Inada Naoki <[email protected]>
  • Loading branch information
methane authored Feb 28, 2024
1 parent 6ba7e4d commit 6117e64
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 58 deletions.
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 = "[email protected]" },
]
maintainers = [
{ name = "Arcadiy Ivanov", email = "[email protected]" },
{ name = "Inada Naoki", email = "[email protected]" },
]
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.

0 comments on commit 6117e64

Please sign in to comment.