Skip to content

Instantly share code, notes, and snippets.

@gnthibault
Last active March 25, 2020 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gnthibault/bb1c5af3edf20505abd1b06716bdd8c3 to your computer and use it in GitHub Desktop.
Save gnthibault/bb1c5af3edf20505abd1b06716bdd8c3 to your computer and use it in GitHub Desktop.
Create python project from start
#!/bin/bash
# Go one level up your git repo directory called project_name
pip install pyscaffold pyscaffoldext-markdown pyscaffoldext-dsproject python-sphinx
putup project_name --markdown --dsproject --force
cd project_name
wget "https://www.gitignore.io/api/vim,python,pycharm,jupyternotebooks" -O .gitignore
# Put you requirements inside requirements.txt, example: matplotlib==3.1.0
# Update the README.md:
echo \
"
# PROJECTNAME
Add a short description here!
## Description
A longer description of your project goes here...
## Setup virtual environment
pip install virtualenv
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
## Make documentation
python setup.py build_sphinx
## Build project
python setup.py build
## install project
python setup.py install
## Packaging
Please check that you have edited the file setup.cfg before trying to install
## Note
" > ./README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment