Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Command Line Script Support Utility
Python Shell

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.idea
data
etc
.gitignore
.travis.yml
LICENSE
README.rst
config.json.template
create-table.py
csv2db.py
csv2gexf.py
csv2kml.py
db2mongo.py
db2solr.py
dbmodels.py
log-skip-prefix.txt
log-skip-suffix.txt
log2sqlite.py
log2tsv.py
logdaily.py
logparams.py
logreport.sh
logschema.json
logsummary.py
requirements.txt
wscript

README.rst

Command line tool project template

[master]

https://secure.travis-ci.org/skitazaki/python-clitool-template.png?branch=master

[develop]

https://secure.travis-ci.org/skitazaki/python-clitool-template.png?branch=develop

Prerequisites

  • Python 2.7
  • virtualenv + pip

or

  • Python 3.x
  • (virtualenv or pyvenv) + pip

Setup

Python 2.7

Create working directoty and activate it.

$ virtualenv --distribute ~/pyvenv2/sample-project
$ source ~/pyvenv2/sample-project/bin/activate

Install build tool, waf.

$ ln -s `pwd`/etc/waf-1.7.13 ~/pyvenv2/sample-project/bin/waf

Install dependant libraries.

$ pip install -r requirements.txt
$ pip install python-dateutil==1.5 pyflakes

Python 3.3

Create working directoty and activate it.

$ pyvenv ~/pyvenv3/sample-project
$ source ~/pyvenv3/sample-project/bin/activate

Install build tool, waf.

$ ln -s `pwd`/etc/waf-1.7.13 ~/pyvenv3/sample-project/bin/waf

Install pip and dependant libraries.

$ pip-3.3 install -r requirements.txt
$ pip-3.3 install python-dateutil>=2.0

Check installation

Check required tools are successfully installed.

$ waf configure

Configuration

Copy configuration template.

$ cp config.json.template config.json

Build & Release

cleanbuild target includes distclean, configure, and build.

$ waf cleanbuild

To relase on PyPI, use release target. Don't forget to check test result on travis-ci.

$ waf release

Copyright and license

Copyright 2014 Shigeru Kitazaki

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Something went wrong with that request. Please try again.