-
Notifications
You must be signed in to change notification settings - Fork 215
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
fix: py.typed module ignored when building package #317
fix: py.typed module ignored when building package #317
Conversation
This reverts commit 1214c2b.
import sys | ||
|
||
from setuptools import setup | ||
|
||
version_file = "schema.py" | ||
version_file = os.path.join("schema", "__init__.py") |
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 would prefer using pathlib
but for backwards compatibility, os
might be better
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.
Yeah, agreed, especially since it's not much code wasted anyway.
Looks good, thanks! Can you please also fix the precommit errors? |
ce00744
to
f1e42a8
Compare
The workflow run did not contain the |
Since the linter changed a bunch of things, I'd like to run it myself to verify the changes. I'll hopefully get to it in the next few days, and then merge, thank you! |
Merged #319 instead. |
fixes #316
Moved from a single module to a package in order for the
py.typed
file to be includedI tested building the package using python 3.8 and installed it. Mypy was able to read the package's types and it works without any code changes.
I manually checked that the
py.typed
file was stored in the wheel and in thetar.gz
packageI ran
pytest
in python 3.8 and everything passed