ryneeverett / mkcodes

A command-line utility for pulling code blocks out of markdown files.
Apache License 2.0
15 stars 7 forks source link

Adjust find_packages to make work in a wheel. #3

Closed thatch closed 4 years ago

thatch commented 4 years ago

Prior to this change, setup.py bdist_wheel does not include mkcodes.py, and this mechanism is used by pip install .

Also add gitignore to make development a little cleaner.

thatch commented 4 years ago

I think it's because this is a "module" and not a "package" which would be a directory with __init__.py in it. I didn't look too much into terminology, but this was enough to get it working. Ref https://www.python.org/dev/peps/pep-0561/#packaging-type-information

This PEP does not support distributing typing information as part of module-only distributions. The code should be refactored into a package-based distribution and indicate that the package supports typing as described above.

ryneeverett commented 4 years ago

Makes sense to me. I found this documentation more clear:

If your project contains any single-file Python modules that aren’t part of a package, set py_modules to a list of the names of the modules (minus the .py extension) in order to make setuptools aware of them.