Skip to main content

A tool to upgrade scribe configuration files

Project description

Setup

poetry runs a venv, so you need to run poetry install from the root of the repo first

Run

poetry run updater

Test

poetry run pytest

Coverage

poetry run pytest --cov or poetry run pytest --cov --cov-report=term-missing

Publish to PyPi

After adding credentials to be able to push to the python package index run the following cmd: poetry publish --build

Linting

Install nox with: pip3 install nox add the path to your .bashrc and source it

run nox -rs black

Testing with console.py

from within the src/scribe_updater/ directory run the following: poetry run updater --target ../tests/test_input_1.json --ground ../tests/test_ground_1.json --output ./test_output '

PBA Customer Spreadsheet Updater (update.py)

Injects new scenarios from the ground truth into a customer spreadsheet.

Caveats

if you are getting an error that looks like this :
Failed to create the collection: Prompt dismissed..
then export the following environment variable:
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring

Usage

basic use with no variables or mapping
updater -t target.json -g ground.json -o output.json

use with variables (variables are only required when adding special products)
updater -t target.json -g ground.json -v variables.json -o output.json

use with version map
updater -t target.json -g ground.json -m 3.3_to_3.7.json -o output.json

use with variables & version maps
updater -t target.json -g ground.json -v variables -m 3.3_to_3.7.json -o output.json

Version Mappings

Version mappings are necessary when upgrading to a version that has scenarios that still exist but have been moved or their names have been changed. If you omit the version map the updater will still work but may delete or add scenarios that should not be in the configuration.

Available Mappings

  1. 3.3_to_3.7.json (use this to upgrade to finie 3.8)
  2. 3.3_to_3.6.json
  3. 3.3_to_3.5.json (use this to upgrade to finie 3.8)

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

scribe_updater-0.17.1.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scribe_updater-0.17.1-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file scribe_updater-0.17.1.tar.gz.

File metadata

  • Download URL: scribe_updater-0.17.1.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.7.5 Linux/4.15.0-171-generic

File hashes

Hashes for scribe_updater-0.17.1.tar.gz
Algorithm Hash digest
SHA256 ad1ff5faf31b0abd65bb4537a96b70ea3c3daaa2d1084d539df99ed24ff40e11
MD5 83b50a785e7abe62b4b7145f1a961c14
BLAKE2b-256 d6cf7bb8d7167281d89c770e0354172098dfa7078e0499a0d377b4b3ab36279c

See more details on using hashes here.

File details

Details for the file scribe_updater-0.17.1-py3-none-any.whl.

File metadata

  • Download URL: scribe_updater-0.17.1-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.7.5 Linux/4.15.0-171-generic

File hashes

Hashes for scribe_updater-0.17.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ba974f9614ef2b76e0638eb92616575a6fd4f0ad83811f2ec18fdbda05878a57
MD5 8798f64b2b383f69310d60b6f6bbe500
BLAKE2b-256 4d54cb118dd20cba7bda11a80901bf61bd73f26c0f0060fce754cb3166ca360b

See more details on using hashes here.

Supported by

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