Library to work with trajectories.
Project description
Lagranto - A Library to work with trajectories.
A recent build of the documentation is available at https://lagranto.readthedocs.io/en/latest/
Changelog
The changelog of can be found under CHANGELOG.md.
Install the development environment
Copy locally the latest version from lagranto:
git clone git@git.iac.ethz.ch:atmosdyn/Lagranto.git /path/to/local/lagranto
cd path/to/local/lagranto
Prepare the conda environment:
module load miniconda3
conda create -y -q -n lagranto_dev python=3.5.4 pytest
conda env update -q -f lagranto.yml -n lagranto_dev
Install lagranto in development mode in lagranto_dev:
source activate lagranto_dev
pip install -e .
Run the tests:
python -m pytest
Make the modifications available
git clone URL # Copy the server version locally
git status # Give the status of the file as seen from git
git pull # Get the latest version from the server
git add FILES... # Add modified files
git commit # Add the changes to the git system, only locally
git push # Push the local changes to the server
Documentation
To compile the documentation the sphinx package have to be installed:
conda install sphinx
To compile the html documentation:
cd docs
make html
Update package on conda and PyPi
Prerequisites
Conda
A github account
Fork the repository https://github.com/conda-forge/lagranto-feedstock.
Clone the fork locally.
PyPi
A PyPi account
A gpg key
General Steps
Change the version number in setup.py
Add a tag for this new version:
git tag -s TAGNAME -u KEY
Push the tag:
git push --tags
PyPi
Simply run:
./pypi_upload.sh
Conda
Edit the version name and the sha256 sum of Lagranto in recipe/meta.yaml. The sha256 can be determined as follow:
wget "https://git.iac.ethz.ch/atmosdyn/Lagranto/repository/VERSION/archive.tar.gz"
sha245sum archive.tar.gz
Commit and push the changes, and on github create a pull-request on conda-forge/lagranto-feedstock
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Lagranto-0.3.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e65caa2eebdebf60c0d7ca6da8e6a38a77682de195885f15e9323776b76468d3 |
|
MD5 | 260c0dc988f2afc99812072e2092a037 |
|
BLAKE2b-256 | 33d1496418b2acbfe9d166cd3d7b63253a087bb0509b00ebe0d7ef1965cc6ae9 |