Last active
March 25, 2020 08:51
-
-
Save gnthibault/bb1c5af3edf20505abd1b06716bdd8c3 to your computer and use it in GitHub Desktop.
Create python project from start
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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