Skip to content

kashewnuts/python-school-ja

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python School

Elementary documents to study Python. This series cover syntax, simple scripts, parsing various kind of data, and Web application.

Full HTML documents are available at:

Setup

Create virtual Python environment with pyvenv. :

$ pyvenv $HOME/.pyvenv/python-school-ja
$ source $HOME/.pyvenv/python-school-ja/bin/activate
$ pip-3.3 install -r requirements.txt
$ curl http://waf.googlecode.com/files/waf-1.7.13 >$HOME/.pyvenv/python-school-ja/bin/waf
$ chmod +x $HOME/.pyvenv/python-school-ja/bin/waf
$ waf configure

Optional to generate HTML documents using Python 2.7 :

$ cd doc
$ virtualenv --distribute $HOME/.pyvenv/sphinx
$ source $HOME/.pyvenv/sphinx/bin/activate
$ pip install -r requirements.txt
$ make clean html

Above procedures are written in devsetup.sh.

Edit

Run web server which watches source files using livereload. :

$ livereload -p 8000

Edit documents under doc directory.

Check syntax with flake8 for Python 3.x syntax :

$ waf

Note

To update gh-page, save secure token via OAuth.

To write a script running on Travis-CI, be careful the difference between sh and bash.

About

KITAZAKI Shigeru <skitazaki[at]gmail.com>

Releases

No releases published

Packages

No packages published