Installation¶
lasio
is written to be compatible with Python 2.6+, and 3.2+. The best
way to install is using pip
.
(test) C:\Users\kent>pip install lasio
This will download and install lasio’s dependencies (numpy and ordereddict).
There are some other packages which lasio will use to provide extra functionality if they are installed (pandas, cChardet and/or chardet, openpyxl, and argparse). I recommend installing these too with:
(test) C:\Users\kent\Code\lasio>pip install -r optional-packages.txt
lasio
is now installed. See the following pages for examples of how to use the package.
To upgrade to the latest PyPI version, use:
(test2) C:\Users\kent\Code\testing\lasio>pip install --upgrade lasio
Development version¶
Installing via pip gets the latest release which has been published on PyPI.
The source code for lasio is kept at:
https://github.com/kinverarity1/lasio
Updates are made much more frequently to the master
branch here. If you have
Git installed, you can keep up to date with these changes:
(test2) C:\Users\kent\Code\testing>git clone https://github.com/kinverarity1/lasio
(test2) C:\Users\kent\Code\testing>cd lasio
(test2) C:\Users\kent\Code\testing\lasio>pip install -r requirements.txt
(test2) C:\Users\kent\Code\testing\lasio>python setup.py develop
To update your version with the latest changes on GitHub:
(test2) C:\Users\kent\Code\testing\lasio>git pull origin master
Testing¶
Every time lasio
is updated, automated tests are run:
- Travis CI: Linux, Python versions 2.7, 3.3, 3.4, 3.5, and 3.6.
- Appveyor CI: Windows, Python versions 2.7, 3.4, 3.5, and 3.6.
lasio
should also work on Python 2.6 and 3.2, but these are tested only
occassionally.
To run tests yourself, first install the testing framework and all the optional packages:
(test2) C:\Users\kent\Code\testing\lasio>pip install pytest
(test2) C:\Users\kent\Code\testing\lasio>pip install -r optional-packages.txt
And then run tests:
(test2) C:\Users\kent\Code\testing\lasio>py.test