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.0.tar.gz (9.5 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.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scribe_updater-0.17.0.tar.gz
  • Upload date:
  • Size: 9.5 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.0.tar.gz
Algorithm Hash digest
SHA256 4a0ef26b4bc44a52c1edb90ef3e042b0570b7a7edf3935e59129c9a9dd4988b1
MD5 ae4ab2c86b72f7e072fe9b1deae32b2b
BLAKE2b-256 fa50489c03694924fc5c9fbabda56aedd877a8b53370cf9b94ff24bf620a2fad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scribe_updater-0.17.0-py3-none-any.whl
  • Upload date:
  • Size: 11.0 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb16842eb14538b2069a67999b4c8a0837f78770eb279167e2722ecd15500e2e
MD5 0d42c72349aeb9974813d667ca2f5e93
BLAKE2b-256 8aefa4f41d1de1db7c1e70d0efccb2bce044986679cffb76907201d5f75d3d76

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