badele / python-project-template

A Python project template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
    

About

A Python project template

License:GNU General Public License v3.0


Languages

Language:Python 100.0%