Package for adding new tools to json file, checking their versions and creating tasks in JIRA
Project description
Iseq resources
Scripts that allow you to:
- Adding a new tool to the JSON file
- Iterating over the tools in the JSON file and checking the latest version, and in the case of a new version, adding a tooltip to JIRA
- Update existing tool/database record in JSON after updating tool/database
- Update docker-versions.json in workflows repository
Install
pip install iseqresources
Requirements
- python >=3.6
- jira >= 3.3.0
- requests >= 2.22.0
- python-gitlab >= 3.7.0
Adding a new tool
First specify if you want to add tool or database. Input JSON file (--input-json
) is from gitlab repo at path json/tools.json
or json/databases.json
. Default is json/tools.json
.
add_tool --tools
or
add_tool --databases
You can also run on a local file:
add_tool \
--input-json "/path/to/json/tools_or_databases.json"
It is better to add new tool directly to json file.
Checking versions and add task to JIRA
Input JSON file (--input-json
and --info-json
) are from gitlab repo at path json/tools.json
or json/databases.json
and json/info.json
. Default is json/tools.json
.
check_versions --tools
or
check_versions --databases
You can also run on a local files:
check_versions \
--input-json "/path/to/json/tools_or_databases.json" \
--info-json "/path/to/json/info.json"
Update existing tool/database record in JSON
Input JSON file (--input-json
) is from gitlab repo at path json/tools.json
or json/databases.json
. Default is json/tools.json
.
update_record --tools
or
update_record --databases
You can also run on a local file:
update_record \
--input-json "/path/to/json/tools_or_databases.json"
Update docker-versions.json in workflows repository (based on tools.json)
After updating tools.json at json/tools.json
you need to get into root directory of workflows repository and type in bash:
update_docker_versions
For possible customization options and help use flag -h
update_docker_versions -h
Project details
Release history Release notifications | RSS feed
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 iseqresources-0.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b595e27ae78c2584b3d3a8d7c140e66c0f6e57536d589de4c3456177f99b41c6 |
|
MD5 | 09c6ae7dc9a741c1414f639caf1e87b7 |
|
BLAKE2b-256 | ccfd0e418e3d590e470b403d3c09897a0519c1d9660ef6c60cfd48b586b8ea9c |