-
-
Notifications
You must be signed in to change notification settings - Fork 929
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1297 from gitpython-developers/py.typed
Fix Py.typed discovery
- Loading branch information
Showing
2 changed files
with
6 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,4 @@ | ||
#!/usr/bin/env python | ||
try: | ||
from setuptools import setup, find_packages | ||
except ImportError: | ||
from ez_setup import use_setuptools # type: ignore[Pylance] | ||
use_setuptools() | ||
from setuptools import setup, find_packages | ||
|
||
from setuptools import setup, find_packages | ||
from setuptools.command.build_py import build_py as _build_py | ||
from setuptools.command.sdist import sdist as _sdist | ||
import fnmatch | ||
|
@@ -93,8 +86,7 @@ def build_py_modules(basedir, excludes=()): | |
author_email="[email protected], [email protected]", | ||
license="BSD", | ||
url="https://github.com/gitpython-developers/GitPython", | ||
packages=find_packages(exclude=("test.*")), | ||
package_data={'git': ['**/*.pyi', 'py.typed']}, | ||
packages=find_packages(exclude=["test", "test.*"]), | ||
include_package_data=True, | ||
py_modules=build_py_modules("./git", excludes=["git.ext.*"]), | ||
package_dir={'git': 'git'}, | ||
|