Skip to content

Commit 4fc8c38

Browse files
committed
Restructure to include py.typed end exclude junk from sdist
1 parent f3f3b02 commit 4fc8c38

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
run: uv sync --dev
138138

139139
- name: Run tests
140-
run: uv run mypy pytest_sqlalchemy.py tests
140+
run: uv run mypy src tests
141141

142142
formatting:
143143
runs-on: ubuntu-latest

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,17 @@ docs = [
4040
]
4141

4242
[build-system]
43-
requires = ["setuptools>=61.0"]
44-
build-backend = "setuptools.build_meta"
43+
requires = ["hatchling"]
44+
build-backend = "hatchling.build"
4545

4646
[tool.coverage.run]
4747
source = ["pytest_sqlalchemy", "tests"]
4848
parallel = true
4949

50+
[tool.hatch.build.targets.sdist]
51+
# paranoidly only include the package in the sdist: https://github.com/pypa/hatch/issues/304
52+
packages = ["src/pytest_sqlalchemy"]
53+
5054
[tool.mypy]
5155
disallow_untyped_defs = true
5256
disallow_incomplete_defs = true

src/pytest_sqlalchemy/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)