Hello everyone, how do I distribute a single python module file (my_module.py) using pyproject.toml and also including stuff like py.typed? I tried finding a minimal example, but all examples seem to be about packages rather than a single module. I am having a hard time writing pyproject.toml for a single module file along with including py.typed in distribution, even if I get it done to distribute module, it seems to be not including py.typed in the distribution/installation, leading mypy report error:
bash
error: Skipping analyzing "my_module": module is installed, but missing library stubs or py.typed marker [import-untyped]
Could anyone please guide me?
Here's my current pyproject.toml:
https://hastebin.com/share/lawecihoji.ini
I used pip install . in the same directory of the module to install, was it correct the way?
Sorry if this is off-topic, I do not know where to ask for this help, since it's python language related.