Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Bal Library Url expansion variable #106

Merged
merged 2 commits into from
Apr 11, 2024

Conversation

elliotcmorris
Copy link
Contributor

@elliotcmorris elliotcmorris commented Apr 5, 2024

#86

Add Bal Library Url expansion variable.
Perform path normalization on any path that begins with "File:"

The intent of this is so folks can take BAL locations and use them in the path/url converters openassetio provides.

This path stuff boggles me a bit, i'm not sure if the testing is sufficient.

@elliotcmorris elliotcmorris requested a review from a team as a code owner April 5, 2024 12:11
@elliotcmorris elliotcmorris requested a review from feltech April 5, 2024 12:15
@elliotcmorris elliotcmorris self-assigned this Apr 5, 2024
Copy link
Member

@feltech feltech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, really quite elegant, much more so than I anticipated, good work! Just a few minor niggles.

plugin/openassetio_manager_bal/bal.py Outdated Show resolved Hide resolved
plugin/openassetio_manager_bal/bal.py Outdated Show resolved Hide resolved
tests/bal_business_logic_suite.py Show resolved Hide resolved
tests/bal_business_logic_suite.py Outdated Show resolved Hide resolved
plugin/openassetio_manager_bal/bal.py Outdated Show resolved Hide resolved
plugin/openassetio_manager_bal/bal.py Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
RELEASE_NOTES.md Outdated Show resolved Hide resolved
@elliotcmorris elliotcmorris requested a review from feltech April 10, 2024 21:44
Issue OpenAssetIO#86

Similar to the current $bal_library_dir behaviour, add a
bal_library_dir_url which expands to a file url of the directory
the library is in.
Due to the desire to allow relative paths, we now invoke normalization
behaviour on substitutions depending on if the entire string is a file
url, ie, does it start with "file:".
These substitutions are compatible with openassetio url
conversion methods.

Signed-off-by: Elliot Morris <[email protected]>
Now that OpenAssetIO v1.0.0-beta2.1 is released, we can once again
depend on the PyPI packages

Signed-off-by: Elliot Morris <[email protected]>
@elliotcmorris elliotcmorris force-pushed the work/86-bal-library-url branch from 62a883f to e741fb5 Compare April 11, 2024 11:40
@elliotcmorris elliotcmorris merged commit 0dd97f4 into OpenAssetIO:main Apr 11, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants