Skip to main content

pyannotators_acronyms

license version PyPI - Python Version

Annotator based on Facebook's Acronyms

Installation

You can simply pip install pyannotators_acronyms.

Development

The build is driven by Task and uv, with the shared stages coming from the python-archetype submodule.

Getting started

The stages live in a Git submodule, so clone with --recurse-submodules:

git clone --recurse-submodules git@bitbucket.org:kairntech/pyannotators_acronyms.git
cd pyannotators_acronyms
sh -c "$(curl -sSL https://taskfile.dev/install.sh)" -- -d -b ~/.local/bin
task

Already cloned without it? The submodule directory is empty, and task fails on:

task: No Taskfile found at ".../submodules/python-archetype/resources/Taskfile.yml"

which means exactly that, and nothing worse:

git submodule update --init

Task is the only manual prerequisite. An archetype cannot bootstrap itself: uv and the Python interpreter install themselves on demand (every task that runs uv depends on an internal install-python task), but the thing that runs them does not. Make sure ~/.local/bin is on your PATH — that is where task and uv both land.

Running the pipeline

task stages          # print the pipeline stages, in order
task                 # run the pipeline up to (but excluding) py:publish
task -- --skip-tests # same, without the test stage
task up-to -- py:lint # run the pipeline up to and including one stage
task jenkins         # run every stage, exactly what Jenkins runs

task with no argument is safe by construction: it runs every stage but the last, and that bound is computed from the STAGES list rather than written down. The last stage is the only one with an effect outside your machine.

STAGES, declared once in Taskfile.yml, is the single definition of the pipeline order — so what you run locally is what Jenkins runs.

Individual stages

Task Description
task py:sync Install the project and its dependencies (uv sync)
task py:lint ruff check and ruff format --check
task py:format Reformat the code with ruff
task py:test Run the test suite
task py:test-marker -- <m> Run the tests carrying one pytest marker
task py:sbom Generate a CycloneDX SBOM of the resolved environment
task py:check-vulnerabilities Check for known CVEs
task py:check-updates Check for dependency updates
task py:build Build the wheel and sdist (uv build)
task py:publish Publish the distributions (uv publish)
task py:version-file Print the path of the file carrying __version__
task py:set-version VERSION=x Write that version into it

uv.lock is not versioned here, so py:sync always resolves from scratch (--upgrade): a stale lock lying around on a machine would otherwise make you test and audit versions the CI never sees.

SBOM & vulnerability check

task py:sbom and task py:check-vulnerabilities wrap the underlying tools. To run them by hand:

uv sync --extra test --extra sbom
uv run cyclonedx-py environment -o sbom.cdx.json --output-format json
uv run pip-audit --skip-editable --format json --output audit-report.json

Ask for all the extras, not just sbom: uv sync synchronises rather than adds, so whatever the requested extras do not pull in gets removed. --extra sbom on its own uninstalls ruff and pytest, leaving an environment that can no longer lint or test.

--skip-editable skips the project itself, which no advisory database can know about. The tasks do the same, and pip-audit still exits non-zero when it finds a real vulnerability — which is the contract the CI relies on. Avoid --strict: it turns "dependency not found on PyPI" into a fatal error, so it breaks as soon as the local version is not a published one.

Metadata

Release files for pyannotators-acronyms 1.6.278

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyannotators-acronyms 1.6.278
File Size Uploaded
pyannotators_acronyms-1.6.278.tar.gz 12.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyannotators-acronyms 1.6.278
File Interpreter ABI Platform
pyannotators_acronyms-1.6.278-py3-none-any.whl Python 3 none any Details

Total release size: 22.7 kB

Release files / pyannotators_acronyms-1.6.278.tar.gz

Download URL pyannotators_acronyms-1.6.278.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a2c656021845a33bfe42717059c510d65f1ed01e03c19255cccfff3331b9255b
BLAKE2b-256 checksum
How to use checksums
d8133d09ea90f6dbabd24c9032e44457d2929896128d9e606a8e6121876f5128
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pyannotators_acronyms-1.6.278-py3-none-any.whl

Download URL pyannotators_acronyms-1.6.278-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6808480ad48d675d03ad6652c2d68eab8962324481f5a595b0c98e73f5459bd5
BLAKE2b-256 checksum
How to use checksums
060cdd772b328932b43d17f7fc8faeaad1a509169a3750cd292d0da42f2f31f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

1.6.278 This release

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.6.99

2 release files

0.6.97

2 release files

0.6.95

2 release files

0.6.93

2 release files

0.6.91

2 release files

0.6.89

2 release files

0.6.87

2 release files

0.6.83

2 release files

0.6.81

2 release files

0.6.79

2 release files

0.6.77

2 release files

0.6.75

2 release files

0.6.73

2 release files

0.6.71

2 release files

0.6.69

2 release files

0.6.67

2 release files

0.6.65

2 release files

0.6.63

2 release files

0.6.61

2 release files

0.6.59

2 release files

0.6.57

2 release files

0.6.55

2 release files

0.6.53

2 release files

0.6.51

2 release files

0.6.49

2 release files

0.6.47

2 release files

0.6.45

2 release files

0.6.43

2 release files

0.6.41

2 release files

0.6.39

2 release files

0.6.37

2 release files

0.6.35

2 release files

0.6.33

2 release files

0.6.31

2 release files

0.6.29

2 release files

0.6.27

2 release files

0.6.25

2 release files

0.6.23

2 release files

0.6.21

2 release files

0.6.19

2 release files

0.6.17

2 release files

0.6.15

2 release files

0.6.13

2 release files

0.6.11

2 release files

0.6.9

2 release files

0.6.7

2 release files

0.6.5

2 release files

0.6.3

2 release files

0.6.1

2 release files

0.5.91

2 release files

0.5.83

2 release files

0.5.79

2 release files

0.5.76

2 release files

0.5.74

2 release files

0.5.72

2 release files

0.5.67

2 release files

0.5.65

2 release files

0.5.61

2 release files

0.5.53

2 release files

0.5.43

2 release files

0.5.41

2 release files

0.5.33

2 release files

0.5.9

2 release files

0.5.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page