diff --git a/.github/workflows/bleeding_edge.yml b/.github/workflows/bleeding_edge.yml index 87520a3..f2238e2 100644 --- a/.github/workflows/bleeding_edge.yml +++ b/.github/workflows/bleeding_edge.yml @@ -39,7 +39,6 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install --upgrade setuptools wheel python -m pip install git+https://github.com/more-itertools/more-itertools.git python -m pip install git+https://github.com/pytest-dev/pytest.git python -m pip install pytest-repeat hypothesis diff --git a/.gitignore b/.gitignore index 0657231..e3edee5 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,7 @@ # *.egg-info __pycache__ +htmlcov +.hypothesis +.coverage* +tmp/* diff --git a/pyproject.toml b/pyproject.toml index c5ea26e..9cb2ce0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,6 @@ [build-system] -requires = [ - "setuptools>=61.2", -] -build-backend = "setuptools.build_meta" +requires = ["hatchling"] +build-backend = "hatchling.build" [project] name = "inifix" @@ -33,21 +31,14 @@ inifix-validate = "inifix.validate:main" Homepage = "https://github.com/neutrinoceros/inifix" Changelog = "https://github.com/neutrinoceros/inifix/blob/main/CHANGELOG.md" -[tool.setuptools] -license-files = [ - "LICENSE", -] -include-package-data = false -[tool.setuptools.package-data] -inifix = [ - "py.typed", +[tool.hatch.build] +exclude = [ + "tests", + "scripts", + "_typos.toml", ] -[tool.setuptools.packages.find] -where = ["src"] -namespaces = false - [tool.ruff.lint] exclude = ["*__init__.py"] ignore = ["E501"]