Skip to content

Commit

Permalink
Merge branch 'main' into nested_audio_dissolve_v1
Browse files Browse the repository at this point in the history
  • Loading branch information
jminor authored Feb 1, 2024
2 parents ad592e5 + aa1b184 commit 9dce4c3
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 50 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/create_draft_release.yaml

This file was deleted.

30 changes: 16 additions & 14 deletions .github/workflows/deploy_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,26 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
# You need to add a token to your repo's secrets
# Make sure you match the name of your secret to the token name below.
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
python -m pip install build
- name: Build dist package
run: |
python setup.py sdist bdist_wheel --universal
# Make sure everything works on testpypi before releasing on pypi
twine upload --repository pypi dist/*
python -m build
- name: Upload Built Artifacts
uses: actions/upload-artifact@v3
with:
name: dist
path: |
./dist/*.whl
./dist/*.gz
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
name="otio-aaf-adapter",
author="Contributors to the OpenTimelineIO project",
author_email="[email protected]",
version="0.15.0.dev1",
version="1.0.0",
description="OpenTimelineIO Advanced Authoring Format (AAF) Adapter",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
4 changes: 2 additions & 2 deletions src/otio_aaf_adapter/adapters/advanced_authoring_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,8 +870,8 @@ def _transcribe(item, parents, edit_rate, indent=0):
elif media_kind in ("SoundMasterTrack", "Sound"):
result.kind = otio.schema.TrackKind.Audio
else:
# Timecode, Edgecode, others?
result.kind = ""
# Timecode, Edgecode, Data, ...
result.kind = f"AAF_{media_kind}"

# Done!
return result
Expand Down
Binary file added tests/sample_data/avid_data_track_example.aaf
Binary file not shown.
11 changes: 11 additions & 0 deletions tests/test_aaf_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@
"nested_audio_dissolve.aaf"
)

AVID_DATA_TRACK_EXAMPLE_PATH = os.path.join(
SAMPLE_DATA_DIR,
"avid_data_track_example.aaf"
)


try:
lib_path = os.environ.get("OTIO_AAF_PYTHON_LIB")
Expand Down Expand Up @@ -1583,6 +1588,12 @@ def get_expected_dict(timeline):
self.assertEqual(get_expected_dict(tl_unbaked), expected_unbaked)
self.assertEqual(get_expected_dict(tl_baked), expected_baked)

def test_non_av_track_kind(self):
timeline = otio.adapters.read_from_file(AVID_DATA_TRACK_EXAMPLE_PATH)
self.assertEqual([t.kind for t in timeline.tracks],
["Video", "AAF_DataEssenceTrack"]
)


class AAFWriterTests(unittest.TestCase):
def test_aaf_writer_gaps(self):
Expand Down

0 comments on commit 9dce4c3

Please sign in to comment.