Unverified Commit d8fb278a authored by Will Frey's avatar Will Frey Committed by GitHub
Browse files

Create py.typed (#12893)

* Create py.typed

This creates a [py.typed as per PEP 561](https://www.python.org/dev/peps/pep-0561/#packaging-type-information) that should be distributed to mark that the package includes (inline) type annotations.

* Update setup.py

Include py.typed as package data

* Update setup.py

Call `setup(...)` with `zip_safe=False`.
parent b0a917c4
...@@ -350,6 +350,8 @@ setup( ...@@ -350,6 +350,8 @@ setup(
url="https://github.com/huggingface/transformers", url="https://github.com/huggingface/transformers",
package_dir={"": "src"}, package_dir={"": "src"},
packages=find_packages("src"), packages=find_packages("src"),
package_data={"transformers": ["py.typed"]},
zip_safe=False,
extras_require=extras, extras_require=extras,
entry_points={"console_scripts": ["transformers-cli=transformers.commands.transformers_cli:main"]}, entry_points={"console_scripts": ["transformers-cli=transformers.commands.transformers_cli:main"]},
python_requires=">=3.6.0", python_requires=">=3.6.0",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment