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
- 3.3_to_3.7.json (use this to upgrade to finie 3.8)
- 3.3_to_3.6.json
- 3.3_to_3.5.json (use this to upgrade to finie 3.8)
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scribe_updater-0.17.3.tar.gz.
File metadata
- Download URL: scribe_updater-0.17.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecec887245a6274df81139e20982587062b92cda4db798b8200654591ac9512e
|
|
| MD5 |
781fb52ee9082fa06d91ebae08aa9142
|
|
| BLAKE2b-256 |
f3c2ad9f67f3cf271eac997175632a2f80a5cad61c8f12d808bb21cf2cf2dbe2
|
File details
Details for the file scribe_updater-0.17.3-py3-none-any.whl.
File metadata
- Download URL: scribe_updater-0.17.3-py3-none-any.whl
- Upload date:
- Size: 11.6 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d594b1ba158a84c28f79e17cba3a049acbbf9649d28e4f3f71d653ef3a43b5a
|
|
| MD5 |
d4ac7c164fd84fee4a37e134cdb8c14b
|
|
| BLAKE2b-256 |
f71ddffcb112b8c4ab6a08193df615fc4c1cd062bf635e4e57ee79ad48f2e6e1
|