Skip to content

Commit

Permalink
add py.typed (#1310)
Browse files Browse the repository at this point in the history
* feat: Create py.typed

* chore: Update setup.py to support py.typed

* Update setup.py
  • Loading branch information
Goldziher committed Jul 15, 2024
1 parent 7077d21 commit b810d9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions pygit2/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# python type marker, see: https://peps.python.org/pep-0561/
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def exclude(line):
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Version Control',
'Typing :: Typed',
]

__dir__ = Path(__file__).parent
Expand Down Expand Up @@ -144,7 +145,7 @@ def run(self):
long_description=long_description,
long_description_content_type='text/markdown',
packages=['pygit2'],
package_data={'pygit2': ['decl/*.h', '*.pyi']},
package_data={'pygit2': ['decl/*.h', '*.pyi', 'py.typed']},
zip_safe=False,
cmdclass=cmdclass,
cffi_modules=['pygit2/_run.py:ffi'],
Expand Down

0 comments on commit b810d9a

Please sign in to comment.