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.2.tar.gz (9.3 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.2-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scribe_updater-0.17.2.tar.gz
  • Upload date:
  • Size: 9.3 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.2.tar.gz
Algorithm Hash digest
SHA256 3c0f6c6789b3d82bc2b2ca58884b617233125a971675119848c6baf8d895ce67
MD5 10df46897a0cea537dcd39df024a19db
BLAKE2b-256 c95eea1e6dc4c8cf1535eb334a370348ab59077b3d68253f9d85f72503283240

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scribe_updater-0.17.2-py3-none-any.whl
  • Upload date:
  • Size: 11.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 28a6185f7e4b2ed8083cf736f1f440b41925bbbb8d350cd37f4b76b94ce6d2eb
MD5 1e5a9c3b6fe4119d6a5dae9b45d8d1a9
BLAKE2b-256 d3f75e59747f107e731151883210cbd929d8c8148a412ca8c4e8156c4cf4165c

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