Skip to main content

我的 pds 模块的简短描述,少于 100-120 个字符

项目描述

NASA PDS DOI 服务

该工具为 PDS 运营商提供服务以铸造 DOI。

先决条件

  • 蟒蛇 3
  • 登录 OSTI 服务器

用户文档

https://nasa-pds.github.io/pds-doi-service/ 

开发者

获取代码并在分支上工作

git clone ...
git checkout -b "#<issue number>"

安装虚拟环境

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 报告

测试报告可以推送到testrail:https ://cae-testrail.jpl.nasa.gov/testrail/

项目:行星数据系统(PDS)测试套件:pds-doi-service

设置环境:

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

用户文档

用斯芬克斯管理

brew install sphinx-doc
pip install -r requirements_dev.txt
cd docs
sphinx-build -b html source build -a 

构建和发布

构建和发布过程在 github 操作中进行管理。

项目详情


下载文件

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

源分布

pds_doi_core-1.0.0.tar.gz (63.1 kB 查看哈希)

已上传 source

内置分布

pds_doi_core-1.0.0-py3-none-any.whl (94.0 kB 查看哈希)

已上传 py3