diff options
author | Dominic <yobmod@gmail.com> | 2021-07-24 17:06:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-24 17:06:53 +0100 |
commit | 0c1446da2d1ce0382cbc65d7a2aad4483783ae74 (patch) | |
tree | 6a93dcbf3f13bf7fc08e8aeabdac6e1d958d4980 | |
parent | 02b4fff9689857f9e0f079caa71891eee0d56f99 (diff) | |
parent | fb21782089dbbb43b2f8cf36ce3e732558032aff (diff) | |
download | gitpython-0c1446da2d1ce0382cbc65d7a2aad4483783ae74.tar.gz |
Merge pull request #1297 from gitpython-developers/py.typed
Fix Py.typed discovery
-rw-r--r-- | pyproject.toml | 4 | ||||
-rwxr-xr-x | setup.py | 12 |
2 files changed, 6 insertions, 10 deletions
diff --git a/pyproject.toml b/pyproject.toml index 79e62840..94f74793 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,7 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" + [tool.pytest.ini_options] python_files = 'test_*.py' testpaths = 'test' # space seperated list of paths from root e.g test tests doc/testing @@ -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 @@ setup( author_email="byronimo@gmail.com, mtrier@gmail.com", 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'}, |