我的pds模块的简短说明,少于100120个字符
pds-doi-core的Python项目详细描述
NASA PDS DOI服务
这个工具为PDS运营商提供了生成doi的服务。在
先决条件
- Python3
- 登录OSTI服务器
用户文档
https://nasa-pds.github.io/pds-doi-service/
开发商
拿到代码然后在一个分支上工作
^{pr2}$安装虚拟环境
pip install virtualenv
python -m venv venv
source venv/bin/activate
部署依赖关系:
pip install -r requirements_dev.txt
或者
pip intall -e .
启动api服务器(待重新处理)
pds-doi-start-dev
试验
单元测试:
python setup.py test
行为测试
首先需要在项目基本目录中获取一些引用数据集:
curl https://pds.nasa.gov/software/test-data/pds-doi-service/aaDOI_production_submitted_labels.zip > aaDOI_production_submitted_labels.zip
unzip aaDOI_production_submitted_labels.zip
然后您可以运行行为测试:
behave
您还可以运行它们以获得更好的报告:
behave -f allure_behave.formatter:AllureFormatter -o ./allure ./features
allure service allure
向测试轨道报告
测试报告可以推送到testrail:https://cae-testrail.jpl.nasa.gov/testrail/
项目:行星数据系统 测试套件:pds-doi服务
设置环境:
export TESTRAIL_USER=<your email in testrail>
export TESTRAIL_KEY=<your API key in tesrail>
运行测试:
behave
查看https://cae-testrail.jpl.nasa.gov/testrail/index.php?/projects/overview/168中的结果
文件管理
设计:
请参阅此存储库中的:
https://github.com/NASA-PDS/pds-doi-service/tree/master/docs
用户文档
用sphynx管理
brew install sphinx-doc
pip install -r requirements_dev.txt
cd docs
sphinx-build -b html source build -a
生成和发布
构建和发布过程在github操作中管理。在
- 项目
标签: