Skip to main content

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:

  1. Adding a new tool to the JSON file
  2. 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
  3. Update existing tool/database record in JSON after updating tool/database
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iseqresources-0.0.15.tar.gz (11.4 kB view hashes)

Uploaded Source

Built Distribution

iseqresources-0.0.15-py3-none-any.whl (14.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page