From 78c1afdf5c439eeb552ba6db71e9df2db1d7c776 Mon Sep 17 00:00:00 2001 From: Tim Mahrt Date: Tue, 18 Jul 2023 23:05:17 +0900 Subject: [PATCH 1/2] fix: display correct information in error statement --- praatio/data_classes/interval_tier.py | 3 ++- setup.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/praatio/data_classes/interval_tier.py b/praatio/data_classes/interval_tier.py index 9f41862..1d6182b 100644 --- a/praatio/data_classes/interval_tier.py +++ b/praatio/data_classes/interval_tier.py @@ -96,7 +96,8 @@ def _validate(self): if entry.end > nextEntry.start: raise errors.TextgridStateError( "Two intervals in the same tier overlap in time:\n" - f"({entry.start}, {entry.end}, {entry.label}) and ({entry.start}, {entry.end}, {entry.label})" + f"({entry.start}, {entry.end}, {entry.label}) and " + f"({nextEntry.start}, {nextEntry.end}, {nextEntry.label})" ) def crop( diff --git a/setup.py b/setup.py index 80f9dc6..3ac4304 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ setup( name="praatio", python_requires=">3.6.0", - version="6.0.0", + version="6.0.1", author="Tim Mahrt", author_email="timmahrt@gmail.com", url="https://github.com/timmahrt/praatIO", From ec64aa6d12b3234278c05b1adab4c2d9d6f347bc Mon Sep 17 00:00:00 2001 From: Tim Mahrt Date: Tue, 18 Jul 2023 23:08:04 +0900 Subject: [PATCH 2/2] feat: add python 3.11 to CI tests --- .github/workflows/run-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 6622663..2433ccd 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }}