install most codecs in developer_requirements.txt
MODIFY
.travis.yml
.travis.yml
@@ -4,9 +4,6 @@ dist: bionic
before_install:
- sudo apt-get install -y libsnappy-dev
- pip install python-snappy
- - pip install zstandard
- - pip install lz4
- - pip install backports.lzma
install:
- pip install -r developer_requirements.txt
script:

MODIFY
README.md
README.md
@@ -74,6 +74,11 @@ if/when they happen. `.run-tests.sh` only covers the Cython tests. In order to t
pure Python implementation, comment out `FASTAVRO_USE_CYTHON=1 python setup.py build_ext --inplace`
and re-run.
+NOTE: Some tests might fail when running the tests locally. An example of this
+is this codec tests. If the supporting codec library is not availabe, the test
+will fail. These failures can be ignored since the tests will on pull requests
+and will be run in the correct environments with the correct dependecies set up.
+
### Releasing
We release both to [pypi][pypi] and to [conda-forge][conda-forge].

MODIFY
azure-pipelines.yml
azure-pipelines.yml
@@ -39,9 +39,6 @@ jobs:
- script: |
brew install snappy
CPPFLAGS="-I/usr/local/include -L/usr/local/lib" python -m pip install python-snappy
- pip install zstandard
- pip install lz4
- pip install backports.lzma
- script: python -m pip install --upgrade -r developer_requirements.txt
displayName: 'Install dependencies'

MODIFY
developer_requirements.txt
developer_requirements.txt
@@ -10,3 +10,9 @@ twine
coverage
codecov
python-dateutil
+
+# codec libraries (snappy is intentionally left off this list as it requires other system libraries to be installed and is non-trivial)
+# Also don't install on windows for similar reasons
+zstandard; sys_platform != 'win32'
+lz4; sys_platform != 'win32'
+backports.lzma; sys_platform != 'win32'

install most codecs in developer_requirements.txt (#413)