Skip to content

Commit

Permalink
[Build] No longer support OpenAssetIO alpha.
Browse files Browse the repository at this point in the history
With the addition of EntityTraits, this became untenable.

Signed-off-by: Elliot Morris <[email protected]>
  • Loading branch information
elliotcmorris committed Feb 23, 2024
1 parent d9cc939 commit e3db618
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,19 @@ jobs:
python -m pytest -v ./tests
test:
name: ${{ matrix.os }} ${{ matrix.python }} ${{ matrix.openassetio }}
name: ${{ matrix.os }} ${{ matrix.python }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["windows-latest", "ubuntu-latest", "macos-latest"]
python: ["3.7", "3.9", "3.10"]
# We use a deprecation for demonstrative purposes, so test
# before/after
openassetio: ["\"openassetio==1.0.0a14\"", "\"openassetio>=1.0.0b1.rev0\""]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- run: |
python -m pip install ${{ matrix.openassetio }}
python -m pip install .
python -m pip install -r tests/requirements.txt
python -m pytest -v ./tests
10 changes: 3 additions & 7 deletions plugin/my_asset_manager/MyAssetManagerInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@
# the this class. See the notes under the "Initialization" section of:
# https://openassetio.github.io/OpenAssetIO/classopenassetio_1_1v1_1_1manager_api_1_1_manager_interface.html#details (pylint: disable=line-too-long)
# As such, any expensive module imports should be deferred.
from openassetio import constants, TraitsData, BatchElementError

# TraitsData and BatchElementError got moved with a deprecation. If you
# don't need to support versions prior to beta 1.0, you should use the
# below two imports instead.
# from openassetio.traits import TraitsData
# from openassetio.errors import BatchElementError
from openassetio import constants
from openassetio.trait import TraitsData
from openassetio.errors import BatchElementError
from openassetio.access import PolicyAccess, ResolveAccess, EntityTraitsAccess
from openassetio.managerApi import ManagerInterface
from openassetio_mediacreation.traits.content import LocatableContentTrait
Expand Down

0 comments on commit e3db618

Please sign in to comment.