Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/publish_bedspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
tags: '[0-9]+.[0-9]+.[0-9]+'

env:
POETRY_VERSION: 1.6
POETRY_VERSION: 2.1.1


jobs:
on-main-branch-check:
Expand Down Expand Up @@ -48,10 +49,11 @@ jobs:
with:
python-version: 3.12

- name: Install poetry
run: |
python -m pip install --upgrade pip
python -m pip install poetry==${{env.POETRY_VERSION}}
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: ${{ env.POETRY_VERSION }}
installer-parallel: true

- name: Configure poetry
shell: bash
Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ on:
workflow_call:

env:
POETRY_VERSION: 1.8
POETRY_VERSION: 2.1.1

jobs:
Tests:
runs-on: ubuntu-latest
strategy:
matrix:
PYTHON_VERSION: ["3.10", "3.11", "3.12"]
PYTHON_VERSION: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4

Expand All @@ -30,10 +30,11 @@ jobs:
shell: bash
run: echo "version=$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")" >> $GITHUB_OUTPUT

- name: Install poetry
run: |
python -m pip install --upgrade pipx
pipx install poetry==${{env.POETRY_VERSION}}
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: ${{ env.POETRY_VERSION }}
installer-parallel: true

- name: Set up cache
uses: actions/cache@v4
Expand All @@ -50,8 +51,5 @@ jobs:
- name: Install the library
run: poetry install -v

- name: Install the task runner poethepoet
run: poetry self add 'poethepoet[poetry_plugin]'

- name: Test the library
run: poetry task check-all
2 changes: 1 addition & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
PYTHON_VERSION: ["3.10", "3.11", "3.12"]
PYTHON_VERSION: ["3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
Expand Down
18 changes: 0 additions & 18 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,6 @@ poetry check --lock

## Shortcut Task Commands

To be able to run shortcut task commands, first install the Poetry plugin [`poethepoet`](https://poethepoet.natn.io/index.html):

```console
poetry self add 'poethepoet[poetry_plugin]'
```

> [!NOTE]
> Upon the release of Poetry [v2.0.0](https://github.com/orgs/python-poetry/discussions/9793#discussioncomment-11043205), Poetry will automatically support bootstrap installation of [project-specific plugins](https://github.com/python-poetry/poetry/pull/9547) and installation of the task runner will become automatic for this project.
> The `pyproject.toml` syntax will be:
>
> ```toml
> [tool.poetry]
> requires-poetry = ">=2.0"
>
> [tool.poetry.requires-plugins]
> poethepoet = ">=0.29"
> ```

### For Running Individual Checks

```console
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![PyPi Release](https://badge.fury.io/py/bedspec.svg)](https://badge.fury.io/py/bedspec)
[![CI](https://github.com/clintval/bedspec/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/clintval/bedspec/actions/workflows/tests.yml?query=branch%3Amain)
[![Python Versions](https://img.shields.io/badge/python-3.10_|_3.11_|_3.12-blue)](https://github.com/clintval/typeline)
[![Python Versions](https://img.shields.io/badge/python-3.10_|_3.11_|_3.12_|_3.13-blue)](https://github.com/clintval/typeline)
[![basedpyright](https://img.shields.io/badge/basedpyright-checked-42b983)](https://docs.basedpyright.com/latest/)
[![mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)
[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)
Expand Down
4 changes: 2 additions & 2 deletions bedspec/_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from typing import get_args
from typing import get_origin

from typeline import TsvRecordReader
from typeline import TsvReader
from typing_extensions import Self
from typing_extensions import override

Expand All @@ -17,7 +17,7 @@
from bedspec._bedspec import BedType


class BedReader(TsvRecordReader[BedType]):
class BedReader(TsvReader[BedType]):
"""A reader of BED records."""

@override
Expand Down
4 changes: 2 additions & 2 deletions bedspec/_writer.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
from typing import Any

from typeline import TsvRecordWriter
from typeline import TsvWriter
from typing_extensions import override

from bedspec._bedspec import COMMENT_PREFIXES
from bedspec._bedspec import BedColor
from bedspec._bedspec import BedType


class BedWriter(TsvRecordWriter[BedType]):
class BedWriter(TsvWriter[BedType]):
"""A writer for writing dataclasses into BED text data."""

@override
Expand Down
Loading