跳转到主要内容

处理轨迹的库。

项目描述

Documentation Status pipelines

Lagranto - 处理轨迹的库。

最新的文档构建版本可在https://lagranto.readthedocs.io/en/latest/找到

变更日志

变更日志可在CHANGELOG.md中找到。

安装开发环境

从lagranto复制最新版本到本地

git clone git@git.iac.ethz.ch:atmosdyn/Lagranto.git /path/to/local/lagranto
cd path/to/local/lagranto

准备conda环境

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

在lagranto_dev中以开发模式安装lagranto

source activate lagranto_dev
pip install -e .

运行测试

python -m pytest

使修改生效

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

文档

要编译文档,必须安装sphinx

conda install sphinx

要编译HTML文档

cd docs
make html

在conda和PyPi上更新包

先决条件

Conda
PyPi
  • 一个PyPi账户

  • 一个gpg密钥

通用步骤

  1. 在setup.py中更改版本号

  2. 为此新版本添加标签

git tag -s TAGNAME -u KEY
  1. 推送标签

git push --tags

PyPi

只需运行

./pypi_upload.sh

Conda

在recipe/meta.yaml中编辑Lagranto的版本名和sha256校验和。sha256校验和可以按以下方式确定

wget "https://git.iac.ethz.ch/atmosdyn/Lagranto/repository/VERSION/archive.tar.gz"
sha245sum archive.tar.gz

提交并推送更改,然后在github上为conda-forge/lagranto-feedstock创建一个pull-request

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分布

Lagranto-0.3.1.tar.gz (1.2 MB 查看哈希值)

上传时间

构建分布

Lagranto-0.3.1-py2.py3-none-any.whl (32.9 kB 查看哈希值)

上传时间 Python 2 Python 3

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面