diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7890c4c..0a30068 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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' diff --git a/README.md b/README.md index 0860f4f..3bab6e0 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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) diff --git a/pyproject.toml b/pyproject.toml index da8132d..125888d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" @@ -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] @@ -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