Skip to content

Commit d84ed19

Browse files
committed
Switch to setuptools
1 parent 4a92892 commit d84ed19

2 files changed

Lines changed: 35 additions & 56 deletions

File tree

pyproject.toml

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
[project]
2-
classifiers = [ "Programming Language :: Python :: 3", "Programming Language :: C", "Operating System :: OS Independent",]
2+
classifiers = [
3+
"Programming Language :: Python :: 3",
4+
"Programming Language :: C",
5+
"Operating System :: Microsoft :: Windows",
6+
"Operating System :: POSIX :: Linux",
7+
"Operating System :: MacOS"
8+
]
39
dependencies = [
410
"wcwidth>=0.2.8",
511
"pythonnet>=3.0.5",
6-
"hatchling>=1.28.0",
12+
"setuptools>=80.9.0",
713
]
814
description = "JSON formatter that produces highly readable but fairly compact output."
915
license = "MIT"
1016
name = "fractured-json"
1117
readme = "README.md"
1218
requires-python = ">=3.11, <3.14"
13-
dynamic = ["version"]
19+
version = "5.0.0"
1420

1521
[[project.authors]]
1622
email = "python@figsandfudge.com"
@@ -27,17 +33,8 @@ dev = [
2733
]
2834

2935
[build-system]
30-
requires = ["hatchling"]
31-
build-backend = "hatchling.build"
32-
33-
[tool.hatch.build.targets.sdist]
34-
include = ["/src/fractured_json"]
35-
36-
[tool.hatch.build]
37-
artifacts = ["src/fractured_json/_version.py"]
38-
39-
[tool.hatch.version]
40-
path = "src/fractured_json/_version.py"
36+
requires = ["setuptools>=68", "wheel"]
37+
build-backend = "setuptools.build_meta"
4138

4239
[project.urls]
4340
documentation = "https://github.com/masaccio/fractured-json/blob/main/README.md"
@@ -46,6 +43,9 @@ repository = "https://github.com/masaccio/fractured-json"
4643
[project.scripts]
4744
fractured-json = "fractured_json._fractured_json:main"
4845

46+
[tool.pytest.ini_options]
47+
addopts = "--cov=src/fractured_json --cov-report=html --cov-report=term-missing:skip-covered --cov-context=test"
48+
4949
[tool.ruff]
5050
fix = true
5151
ignore = [ "T201",]
@@ -54,11 +54,15 @@ select = [ "ALL",]
5454
target-version = "py311"
5555

5656
[tool.tox]
57-
requires = [ "tox>=4.0",]
58-
envlist = [ "py39", "py310", "py311", "py312", "py313",]
59-
60-
[tool.setuptools.package-dir]
61-
"" = "src"
57+
legacy_tox_ini = """
58+
[tox]
59+
isolated_build = true
60+
envlist = py311, py312, py313
61+
[testenv]
62+
allowlist_externals = uv
63+
commands_pre = uv sync --locked --all-extras --dev
64+
commands = uv run -vvv pytest --import-mode importlib
65+
"""
6266

6367
[tool.ruff.flake8-tidy-imports]
6468
ban-relative-imports = "all"
@@ -76,5 +80,3 @@ omit = [ "src/fractured_json/generated/*.py",]
7680
directory = "coverage_html_report"
7781
show_contexts = true
7882

79-
[tool.pytest.ini_options]
80-
addopts = "--cov=src/fractured_json --cov-report=html --cov-report=term-missing:skip-covered --cov-context=test"

uv.lock

Lines changed: 12 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)