-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create py.typed #5796
Create py.typed #5796
Conversation
You also need to add the file to package data, https://www.python.org/dev/peps/pep-0561/#packaging-type-information |
Isn't it already covered with include_package_data ? |
Is |
You definitely have to add it to
|
src/cryptography/py.typed
Outdated
@@ -0,0 +1 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the file have to empty? In the past some zip tools had issues with 0 byte files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I intended for this file to be 0 bytes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, let's make this a proper 0-byte file (that's what we use on pyca/bcrypt)
Yes, it's sufficient.
|
include py.typed in sdist
* fixed a circular import error (due to type hints) (#5800) fixes #5794 closes #5795 * Added a py.typed so mypy prefers us to typeshed (#5802) closes #5796 * 3.4.4 changelog + version bump * Update CHANGELOG.rst Co-authored-by: Paul Kehrer <[email protected]> Co-authored-by: Paul Kehrer <[email protected]>
So should cryptography stubs be removed entirely from typeshed repo? |
I don't know how typeshed handles multiple versions of packages, but
with respect to 3.4, yes.
…On Thu, Feb 11, 2021 at 5:57 AM Marti Raudsepp ***@***.***> wrote:
So should cryptography stubs be removed entirely from typeshed repo?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
--
All that is necessary for evil to succeed is for good people to do nothing.
|
the changelog lists:
but I'm still falling back to typeshed because this file is missing