Skip to content
Snippets Groups Projects
  • Mehdi Abaakouk's avatar
    Allow to compile the extension everywhere · e4c0de94
    Mehdi Abaakouk authored
    This change:
    * uses to setuptools Cython automatic extension build system.
    * Add tox.ini to run tests and build docs into virtualenv
    * Add .travis.yaml and Dockerfile to run tests in CI
    * Change requirements to ensure:
      - Cython and setuptools are installed before we build the Cython
        extension
      - tests dependencies are not installed by default
      - doc dependencies are explicit
    * Add missing lz4 library
    * Allow to build the module with any librocksdb headers (no-rtti)
    
    Closes #15
    e4c0de94
tox.ini 288 B
[tox]
envlist = py27,py35,py36
minversion = 2.0
skipsdist = True

[testenv]
skip_install = True
deps =
    -e
    .[test]
commands = pytest {posargs:rocksdb/tests}

[testenv:docs]
deps = .[doc]
commands = python setup.py build_sphinx -W

[pytest]
addopts = --verbose
norecursedirs = .tox