Update package build (and other minor bugs) #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of change
Fixes #4 -- updating the package build to include the metadata files.
I included a few small fixes for bugs I ran into trying to get the PyPI package to run so it should run with normal use, including fixing runs using the catalog generated by discovery mode. It looks like the metadata naming convention was changed previously, so to get it working without these changes I had to manually update the metadata references in the generated catalog to use
currencyinstead oftap-criteo.currency. The catalog itself also wasn't referenced correctly when it was provided as an argument, and it was saving the bookmark instate.jsonwith an incorrect format that made subsequent runs after the first fail.Manual QA steps
python3 setup.py sdist bdist_wheeland ensurebuild/lib/tap_criteo/metadataexists.python3 -m tap_criteo.__init__ -c ../criteo_config.json --discover > catalog.jsonpython3 -m tap_criteo.__init__ -c ../criteo_config.json --catalog ../catalog.json --state ../state.json | ../virtualenv/target-csv/bin/target-csvand ensure output contains fields as expected.Risks
Rollback steps