Read the hitchhiking guide on packaging to learn good practice for developing a Python project
The setup.py file is at the heart of the Python project. It describes all the metadata about your project. There are many fields that you can add to the project to give it a rich set of metadata describing the project. However, there are only three required fields: name, version, and packages. The name field must be unique if you want to publish your package in the Python Package Index (PyPI). In the version field, different versions of the project are tracked. The package field describes where you put the Python source code in your project.
Our initial setup.py file will also contain license information and will reuse the README.txt file for the long_description field. It will look like this:
from distutils.core import setup setup( name='TowelStuff', version='0.1dev', packages=['towelstuff',], license='Creative Commons Attribution-Noncommercial-Share Alike license', long_description=open('README.txt').read(), )
source share