Skip to content

Commit 0c1446d

Browse files
authored
Merge pull request #1297 from gitpython-developers/py.typed
Fix Py.typed discovery
2 parents 02b4fff + fb21782 commit 0c1446d

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

Diff for: pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
15
[tool.pytest.ini_options]
26
python_files = 'test_*.py'
37
testpaths = 'test' # space seperated list of paths from root e.g test tests doc/testing

Diff for: setup.py

+2-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
#!/usr/bin/env python
2-
try:
3-
from setuptools import setup, find_packages
4-
except ImportError:
5-
from ez_setup import use_setuptools # type: ignore[Pylance]
6-
use_setuptools()
7-
from setuptools import setup, find_packages
8-
1+
from setuptools import setup, find_packages
92
from setuptools.command.build_py import build_py as _build_py
103
from setuptools.command.sdist import sdist as _sdist
114
import fnmatch
@@ -93,8 +86,7 @@ def build_py_modules(basedir, excludes=()):
9386
9487
license="BSD",
9588
url="https://github.com/gitpython-developers/GitPython",
96-
packages=find_packages(exclude=("test.*")),
97-
package_data={'git': ['**/*.pyi', 'py.typed']},
89+
packages=find_packages(exclude=["test", "test.*"]),
9890
include_package_data=True,
9991
py_modules=build_py_modules("./git", excludes=["git.ext.*"]),
10092
package_dir={'git': 'git'},

0 commit comments

Comments
 (0)