This repository has been archived by the owner on Aug 4, 2023. It is now read-only.
Add a script to create provider API script template #128
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.
Fixes WordPress/openverse#1734
This script will make it easier for new contributors to add provider API scripts by giving them a Cookiecutter-like script for writing Provider API scripts. It creates the skeletons of the script, workflow file and tests.
To run the script, create and activate a virtual environment, navigate to the templates folder and run it with provider name as a parameter:
This will create three files:
There are some instructions and a lot of #TODO comments in the file.
This PR contains all the changes from #93, that I accidentally merged into
licenses
branch instead ofmain
.Signed-off-by: Olga Bulat obulat@gmail.com