What's the normal structure of a Python open source project and what's the preferred way of running the tests?

Viewed 609

I wrote some code that I would like to share, and I would like to follow the best practices in creating/maintaining it's structure. I will host the code on BitBucket, and now I'm thinking about how I should organize it. Is this a good structure?

project_name/
    lib/
    test/
    README

So, this will have the source in lib, and the tests in test. Is this how it's done in Python projects? This is the structure I saw was the most used with Ruby projects. Also, when I run the unit tests, is it considered good practice to do it like this:

set PYTHONPATH=`pwd`/lib
python test/a_test.py
1 Answers
Related