File tree Expand file tree Collapse file tree 6 files changed +43
-3
lines changed Expand file tree Collapse file tree 6 files changed +43
-3
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+ formats : [] # Do not build epub and pdf
3+
4+ python :
5+ install :
6+ - method : pip
7+ path : .
8+ conda :
9+ environment : docs/conda-environment.yml
Original file line number Diff line number Diff line change 11language : python
2- dist : focal
2+
3+ before_install :
4+ # Install conda
5+ - export MINICONDA=${HOME}/miniconda
6+ - export PATH=${MINICONDA}/bin:${PATH}
7+ - wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
8+ - bash miniconda.sh -b -f -p ${MINICONDA}
9+ - conda config --set always_yes yes
10+ - conda config --add channels defaults
11+ - conda config --add channels conda-forge
312
413install :
5- - sudo apt-get update && sudo apt-get install -y libisal-dev
6- - pip install tox
14+ - conda create -n python-isal python=$TRAVIS_PYTHON_VERSION tox isa-l
15+ - source activate python-isal
716
817python : 3.6 # Use the oldest supported version of python as default.
918script :
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Changelog
99
1010 version 0.1.0-dev
1111-----------------
12+ + Publish API documentation on readthedocs.
1213+ Add API documentation.
1314+ Ensure the igzip module is fully compatible with the gzip stdlib module.
1415+ Add compliance tests from CPython to ensure isal_zlib and igzip are validated
Original file line number Diff line number Diff line change 1+ .. image :: https://readthedocs.org/projects/python-isal/badge
2+ :target: https://python-isal.readthedocs.io
3+ :alt:
4+
5+
16python-isal
27===========
38
@@ -48,6 +53,9 @@ They can be imported as follows
4853their api and functions are the same as the stdlib's modules. Except where
4954isa-l does not support the same calls as zlib (See differences below).
5055
56+ A full API documentation can be found on `our readthedocs page
57+ <https://python-isal.readthedocs.io> `_.
58+
5159``python -m isal.igzip `` implements a simple gzip-like command line
5260application (just like ``python -m gzip ``).
5361
Original file line number Diff line number Diff line change 1+ name : rtd
2+ channels :
3+ - conda-forge
4+ - defaults
5+ dependencies :
6+ - isa-l
7+ - python >=3.6
8+ - sphinx
9+ - setuptools
Original file line number Diff line number Diff line change 1919# SOFTWARE.
2020
2121import os
22+ import sys
2223from pathlib import Path
2324
2425from setuptools import Extension , find_packages , setup
2930CONDA_PREFIX = os .environ .get ("CONDA_PREFIX" )
3031if CONDA_PREFIX :
3132 EXTENSION_OPTS ["include_dirs" ] = [os .path .join (CONDA_PREFIX , "include" )]
33+ if os .environ .get ("READTHEDOCS" ):
34+ # Readthedocs uses a conda environment but does not activate it.
35+ EXTENSION_OPTS ["include_dirs" ] = [os .path .join (sys .exec_prefix , "include" )]
3236
3337setup (
3438 name = "isal" ,
You can’t perform that action at this time.
0 commit comments