Comment on How To Package Your Python CodeparentComments−borntyping13yI put the version information inside the package, then anything with access to the package (which both setup.py and sphinx have) can access it - quite useful for doing things like checking the version number from the REPL, for instance.−rhettg13yIt can be problematic to import your package from setup.py if you want your dependency specification to be useful.
Comments
I put the version information inside the package, then anything with access to the package (which both setup.py and sphinx have) can access it - quite useful for doing things like checking the version number from the REPL, for instance.
It can be problematic to import your package from setup.py if you want your dependency specification to be useful.