3 ms·
Always one of the good articles to link to when creating a Python repo from scratch. Should mention that __init__.py is not needed for python 3.3+ anymore (jus
by lutostag 7y ago
Always one of the good articles to link to when creating a Python repo from scratch.
Should mention that __init__.py is not needed for python 3.3+ anymore (just found that out this week myself to my surprise) so for projects where backwards compatibility is not required you can stop creating extra blank files if you don't need them.
https://stackoverflow.com/questions/37139786/is-init-py-not-required-for-packages-in-python-3-3 https://stackoverflow.com/questions/37139786/is-init-py-not-...
- closed 7y agoAlthough, beware that you may need to change `find_packages()` to `find_namespace_packages()` in your setup.py. I get burned by that one a lot!
- j88439h84 7y agoThat's really not recommended. A lot of behaviors are subtly affected by failing to have init files.
- bobbylarrybobby 7y agoLike what?