Skip to content

Commit

Permalink
Merge pull request #256 from neutrinoceros/bld/migrate_to_hatchling
Browse files Browse the repository at this point in the history
BLD: migrate from setuptools to hatchling
  • Loading branch information
neutrinoceros authored Sep 14, 2024
2 parents d1dd1b6 + 99ebc81 commit ad314c4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
1 change: 0 additions & 1 deletion .github/workflows/bleeding_edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@
#
*.egg-info
__pycache__
htmlcov
.hypothesis
.coverage*
tmp/*
23 changes: 7 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[build-system]
requires = [
"setuptools>=61.2",
]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "inifix"
Expand Down Expand Up @@ -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"]
Expand Down

0 comments on commit ad314c4

Please sign in to comment.