-
Notifications
You must be signed in to change notification settings - Fork 52
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
mypy reports missing library stubs or py.typed marker
#179
Comments
This is test_issue_179 (created 2024-11-03). #! /bin/bash
set -euo pipefail
set -xv
# script_dir=$(dirname "$0")
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
# Producer of package...
# Not in venv to create package
rm -rf dist
python3 setup.py sdist bdist_wheel
# Consumer of package...
# TODO
# - Cleanup this directory
# - cd back to original directory
temp_dir=$(mktemp --directory)
cd "$temp_dir"
python3 -m venv .venv
. ./.venv/bin/activate
pip install mypy
pip install "${script_dir}/dist/approvaltests-14.0.0-py3-none-any.whl"
# TODO
# - Import approval utilities
# - make sub-something works -- 'import approvaltests.xxxxx'
echo "import approvaltests" > test.py
mypy test.py
|
Scraps of a TODO.md from 2024-11-03
|
JayBazuzi
changed the title
Add
mypy reports Nov 3, 2024
py.typed
filemissing library stubs or py.typed marker
Merged
#170 is another attempt to fix this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To Reproduce:
python -m venv .venv . ./.venv/bin/activate python -m pip install mypy approvaltests
Result:
Fix ideas
Either:
py.typed
files in the appropriate locationsThe text was updated successfully, but these errors were encountered: