Skip to content

Commit

Permalink
Add version in dagster-openai (#20304)
Browse files Browse the repository at this point in the history
## Summary & Motivation

This PR adds version.py in dagster-openai, whitelisting the integration
for the release and publication to PyPi.

## How I Tested These Changes

BK
  • Loading branch information
maximearmstrong authored Mar 6, 2024
1 parent 2f2b1ac commit fcff5fd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
OpenAIResource as OpenAIResource,
with_usage_metadata as with_usage_metadata,
)
from .version import __version__

# TODO: replace version by `__version__` when we add back a version.py file and publish library to pypi.
# Import with `from .version import __version__`
DagsterLibraryRegistry.register("dagster-openai", "1!0+dev")
DagsterLibraryRegistry.register("dagster-openai", __version__)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1!0+dev"
3 changes: 1 addition & 2 deletions python_modules/libraries/dagster-openai/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ def get_version():
return version["__version__"]


# TODO: replace by `ver = get_version()` when we add back a version.py file and publish library to pypi.
ver = "1!0+dev"
ver = get_version()
# dont pin dev installs to avoid pip dep resolver issues
pin = "" if ver == "1!0+dev" else f"=={ver}"
setup(
Expand Down

0 comments on commit fcff5fd

Please sign in to comment.