basic support for update mode: products can now be opened in update mode (‘rb+’) and it is possible to call epr.Field.set_elem() and epr.Field.set_elems() methods to set epr.Field elements changing the contents of the epr.Product on disk. This feature is not available in the EPR C API.
new functions/methods and properties:
improved functions/methods:
the index parameter of the epr.Dataset.read_record() method is now optional (defaults to zero)
the deprecated __revision__ variable has been removed
declarations of the EPR C API have been moved to the new epr.pyd
the const_char and const_void definitions have been dropped, no longer necessary with cython >= 0.19
minimum required version for cython is now 0.19
the setup.py script has been completely rewritten to be more “pip friendly”. The new script uses setuptools if available and functions that use numpy are evaluated lazily so to give a chance to pip and setuptools to install dependencies, numpy, before they are actually used. This should make PyEPR “pip-installable” even on system there numpy is not already installed.
the test directory has been renamed into tests
the test suite now has a setUpModule() function that automatically downloads the ENVISAT test data required for test execution. The download only happens if the test dataset is not already available.
tests can now be run using the setup.py script:
$ python3 setup.py test
enable continuous integration and testing in for Windows using AppVeyor (32bit only)
status badges for AppVeyor CI and PyPI added to the HTML doc index
more detailed error messages in case of open failures
new sphinx theme for the HTML documentation
Travis-CI has been set-up for the project
now the source tar-ball also includes a copy of the EPR C API sources so that no external C library is required to build PyEPR.
This features also makes it easier to install PyEPR using pip.
The user can still guild PyEPR against a system version of the ERP-API library simply using the --epr-api-src option of the setup.py script with “None”” as value.
The ERP C API included in the source tar-ball is version 2.3dev-pyepr062, a development and patched version that allows the following enhancements.
Initial release