Skip to content

Commit

Permalink
chore: publish inline type annotations (#224)
Browse files Browse the repository at this point in the history
Allow inline type hints to be packaged and distributed
following PEP561 specification
https://peps.python.org/pep-0561/#specification

Co-authored-by: James Dow <[email protected]>
  • Loading branch information
jamesdow21 and James Dow authored Jun 27, 2024
1 parent 1f1c28b commit 26fc02d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Empty file added redshift_connector/py.typed
Empty file.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ def get_tag(self):
],
keywords="redshift dbapi",
include_package_data=True,
package_data={"redshift-connector": ["*.py", "*.crt", "LICENSE", "NOTICE"]},
package_data={
"redshift-connector": ["*.py", "*.crt", "LICENSE", "NOTICE", "py.typed"]
},
packages=find_packages(exclude=["test*"]),
cmdclass=custom_cmds,
)

0 comments on commit 26fc02d

Please sign in to comment.