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
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches: ["main"]
tags:
- "[0-9]+.[0-9]+.[0-9]+"
pull_request:
branches: ["main"]
types: [ready_for_review]
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -347,6 +350,26 @@ jobs:
name: dist
path: dist/

ci-gate:
name: CI gate
if: ${{ always() && (github.event_name != 'push' || github.ref_type != 'tag') }}
runs-on: *runner
timeout-minutes: *job_timeout
needs:
- precommit
- test
- build
steps:
- name: Require precommit, test, build
env:
PRECOMMIT: ${{ needs.precommit.result }}
TEST: ${{ needs.test.result }}
BUILD: ${{ needs.build.result }}
run: |
test "$PRECOMMIT" = success
test "$TEST" = success
test "$BUILD" = success

pypi:
name: Publish to PyPI
if: github.ref_type == 'tag'
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ Encoding and conversion preserve span boundaries and labels, and report when a t

## Installation

`spanwend` requires Python 3.10 or later (see [Compatibility and versioning](#compatibility-and-versioning)).
`spanwend` requires Python 3.10 or later (see [compatibility and versioning](#compatibility-and-versioning)).
It has no runtime dependencies.

Install the latest release from PyPI:
Install the latest release from [PyPI](https://pypi.org/project/spanwend/):

```shell
python -m pip install spanwend
Expand Down Expand Up @@ -320,8 +320,8 @@ All code included in the project is reviewed and tested by [@pdhall99](https://g

## Contributing

See the [contributor guide](docs/CONTRIBUTING.md).
See the [contributor guide](https://github.com/pdhall99/spanwend/blob/main/docs/CONTRIBUTING.md).

## License

[MIT © PD Hall](LICENSE)
[MIT © PD Hall](https://github.com/pdhall99/spanwend/blob/main/LICENSE)
20 changes: 11 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build-backend = "hatchling.build"
[project]
name = "spanwend"
dynamic = ["version"]
description = "A library for working with sequence-tagging schemes"
description = "A Python library for working with sequence-tagging schemes"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.10"
license = "MIT"
Expand All @@ -33,25 +33,29 @@ authors = [
{ name = "PD Hall", email = "20580126+pdhall99@users.noreply.github.com" },
]
classifiers = [
"Development Status :: 3 - Alpha",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = []

[project.urls]
homepage = "https://github.com/pdhall99/spanwend"
documentation = "https://github.com/pdhall99/spanwend/blob/main/README.md"
source = "https://github.com/pdhall99/spanwend.git"
changelog = "https://github.com/pdhall99/spanwend/blob/main/docs/CHANGELOG.md"
Homepage = "https://github.com/pdhall99/spanwend"
Documentation = "https://github.com/pdhall99/spanwend/blob/main/README.md"
Source = "https://github.com/pdhall99/spanwend"
Issues = "https://github.com/pdhall99/spanwend/issues"
Changelog = "https://github.com/pdhall99/spanwend/blob/main/docs/CHANGELOG.md"

# --------------------------------------------------------------------------------------
# [dependency-groups]
Expand Down Expand Up @@ -182,8 +186,6 @@ install = "pre-commit install"
run = "pre-commit run --all {args}"
ci = "pre-commit run --all-files"

[tool.hatch.metadata.hooks.vcs]

[tool.hatch.metadata]
allow-direct-references = true

Expand Down
Loading