A Python project template
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
project
requirements
.gitignore
.travis.yml
CHANGELOG.txt
LICENSE
MANIFEST.in
Makefile
README.rst
README_project.rst
coverage.rc
initproject.py
pep8.rc
setup.py
tests.py

README.rst

Since one year, i create more and more python projects. That for this reason i have decided create a Python template. This template is ready for create a Python project with:

Howto use

Here the steps for create a new python project

  1. Clone the python-project-template and replace projectname by your project name you want:

    cd your_root_projects_directories
    git clone https://github.com/badele/python-project-template.git projectname
    cd projectname
    
  2. Edit the PROJECT variables in the initproject.py and run:

    ./initproject.py
    rm ./initproject.py
    
  3. Verify the personal text in this files:

    README.rst
    LICENSE
    CHANGELOG.txt
    setup.py
    
  4. Reinit git repository:

    rm -rf .git && git init
    
  5. (Optional) install virtualenv:

    mkvirtualenv --no-site-packages -p /usr/bin/python2.7 env_projectname
    
  6. (Optional) Run the minimal test:

    pip install -r requirements/test.txt
    make test
    
  7. (Optional) Test minimal application:

    make install
    projectname -h