Organising a python project
Scott David Daniels
Scott.Daniels at Acm.Org
Tue Sep 20 10:32:41 EDT 2005
bruno modulix wrote:
> baoilleach at gmail.com wrote:
>
>>What is the best or typical directory structure that
>>allows the easy creation of binary packages
somedir:
test/
test_product.py # Really do include tests
product.py
setup.py
Look at distutils documentation. Also read up on "Python Eggs."
You might consider doing it as a package under a you-specific name:
somedir:
yourname:
test/
test_product.py # See unittest module
__init__.py # can be empty (and often is), also might have a
# doc string, author, copyright, and license info
# and a line like: __version__ = "0.2"
product.py
setup.py
--Scott David Daniels
Scott.Daniels at Acm.Org
More information about the Python-list
mailing list