Skip to content

Commit b810d9a

Browse files
authored
add py.typed (#1310)
* feat: Create py.typed * chore: Update setup.py to support py.typed * Update setup.py
1 parent 7077d21 commit b810d9a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pygit2/py.typed

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# python type marker, see: https://peps.python.org/pep-0561/

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def exclude(line):
8282
'Programming Language :: Python :: Implementation :: PyPy',
8383
'Programming Language :: Python :: Implementation :: CPython',
8484
'Topic :: Software Development :: Version Control',
85+
'Typing :: Typed',
8586
]
8687

8788
__dir__ = Path(__file__).parent
@@ -144,7 +145,7 @@ def run(self):
144145
long_description=long_description,
145146
long_description_content_type='text/markdown',
146147
packages=['pygit2'],
147-
package_data={'pygit2': ['decl/*.h', '*.pyi']},
148+
package_data={'pygit2': ['decl/*.h', '*.pyi', 'py.typed']},
148149
zip_safe=False,
149150
cmdclass=cmdclass,
150151
cffi_modules=['pygit2/_run.py:ffi'],

0 commit comments

Comments
 (0)