Skip to content

Commit 6117e64

Browse files
authored
migrate to pyproject.toml (#198)
To build modern sdist and wheel. Signed-off-by: Inada Naoki <songofacandy@gmail.com>
1 parent 6ba7e4d commit 6117e64

File tree

6 files changed

+67
-58
lines changed

6 files changed

+67
-58
lines changed

.github/workflows/test.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10"]
14+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10"]
1515
steps:
1616
- uses: actions/checkout@v4
1717
- name: Set up Python
@@ -24,3 +24,14 @@ jobs:
2424
run: python -m pip install -r requirements-dev.txt
2525
- name: Run tests
2626
run: pytest --cov=fluent
27+
28+
build:
29+
needs: test
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
- run: pipx run hatch build
34+
- uses: actions/upload-artifact@v2
35+
with:
36+
name: dist
37+
path: dist/*.*

MANIFEST.in

-4
This file was deleted.

fluent/__about__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '0.10.1dev1'

pyproject.toml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "fluent-logger"
7+
dynamic = ["version"]
8+
description = "A Python logging handler for Fluentd event collector"
9+
readme = "README.rst"
10+
license = { file = "COPYING" }
11+
requires-python = ">=3.7"
12+
authors = [
13+
{ name = "Kazuki Ohta", email = "kazuki.ohta@gmail.com" },
14+
]
15+
maintainers = [
16+
{ name = "Arcadiy Ivanov", email = "arcadiy@ivanov.biz" },
17+
{ name = "Inada Naoki", email = "songofacandy@gmail.com" },
18+
]
19+
classifiers = [
20+
"Development Status :: 5 - Production/Stable",
21+
"Intended Audience :: Developers",
22+
"Programming Language :: Python :: 3",
23+
"Programming Language :: Python :: 3.7",
24+
"Programming Language :: Python :: 3.8",
25+
"Programming Language :: Python :: 3.9",
26+
"Programming Language :: Python :: 3.10",
27+
"Programming Language :: Python :: 3.11",
28+
"Programming Language :: Python :: 3.12",
29+
"Programming Language :: Python :: Implementation :: CPython",
30+
"Programming Language :: Python :: Implementation :: PyPy",
31+
"Topic :: System :: Logging",
32+
]
33+
dependencies = [
34+
"msgpack>=1.0",
35+
]
36+
37+
[project.urls]
38+
Download = "https://pypi.org/project/fluent-logger/"
39+
Homepage = "https://github.com/fluent/fluent-logger-python"
40+
41+
[tool.hatch.version]
42+
path = "fluent/__about__.py"
43+
44+
[tool.hatch.build.targets.sdist]
45+
exclude = [
46+
"/.github",
47+
"/.tox",
48+
"/.venv",
49+
]
50+
51+
[tool.hatch.build.targets.wheel]
52+
include = [
53+
"/fluent",
54+
]

setup.cfg

-10
This file was deleted.

setup.py

-43
This file was deleted.

0 commit comments

Comments
 (0)