HomePhabricator

Add PresetDefinition.from_pkg_resources

Authored by nate on Apr 4 2020, 6:36 PM.

Description

Add PresetDefinition.from_pkg_resources

Summary:
Fixes #2349.

https://github.com/dagster-io/dagster/issues/2349

This adds an API PresetDefinition.from_pkg_resources(). It works both for file-based (no pip install) and module-based preset loads.

I moved over the airline demo presets in this diff to give a concrete example, but once landed should follow up and move over all dagster_examples module presets.

Test Plan: unit

Reviewers: sashank, prha, max

Reviewed By: max

Differential Revision: https://dagster.phacility.com/D2443

Details

Committed
nateApr 6 2020, 1:55 PM
Reviewer
max
Differential Revision
D2443: Add PresetDefinition.from_pkg_resources
Parents
R1:327c0f2e94d2: [docs] Syntax highlighting
Branches
Unknown
Tags
Unknown