toshihr / cythontemplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cythontemplate: template for Cython + Nose project.

You should modify the following files based on your project:

  • setup.py
  • MANIFEST.in
  • requirements.txt: modules for install this project
  • test-requirements.txt: modules for develop this project

Development & Tests

Setup

You can use pyenv and virtualenv. Mac OS X users can install these tools via Homebrew.

$ brew install pyenv-virtualenv
$ cd <project dir>
$ pyenv install 2.7.8
$ pyenv virtualenv 2.7.8 env_python2
$ pyenv local env_python2

Then you should install dependencies.

$ pip install -r test-requirements.txt
$ pyenv rehash

Build

$ python setup.py develop

Test

$ python setup.py nosetests

Clean

$ python setup.py develop -u
$ python setup.py clean -all

Update dependencies

$ pip freeze > test-requirements.txt

Packing the project

$ python setup.py sdist

Install

$ python setup.py install
$ pyenv rehash

Uninstall

$ pip uninstall cythontemplate

CLI command

after install, you can use CLI command:

$ cythontemplate

About


Languages

Language:Python 100.0%