Utilities for the National Archives Caselaw project
Project description
Caselaw utility functions
pypi name: ds-caselaw-utils
python import name: ds_caselaw_utils
This repo contains functions of general use throughout the National Archives Caselaw project so that we can have a single point of truth potentially across many repositories.
Examples
from ds_caselaw_utils import neutral_url
neutral_url("[2022] EAT 1") # '/eat/2022/4'
Testing
$ cd src/ds_caselaw_utils
$ python -m unittest
Building
$ rm -rf dist
$ poetry build
$ python3 -m twine upload --repository testpypi dist/* --verbose
Releasing
When making a new release, update the changelog in the release pull request.
The package will only be released to PyPI if the branch is tagged. A merge to main alone will not trigger a release to PyPI.
To create a release:
- Update the version number in
pyproject.toml
- Create a branch
release/v{major}.{minor}.{patch}
- Update changelog for the release
- Commit and push
- Open a PR from that branch to main
- Get approval on the PR
- Tag the HEAD of the PR
v{major}.{minor}.{patch}
and push the tag - Merge the PR to main and push
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ds_caselaw_utils-0.1.4.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for ds_caselaw_utils-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a06bd35d0a08f3c9c1912a805d60d35ec5d20054033032934179f61703b87af |
|
MD5 | fd1ab75ee897ef6c75b2925755687e53 |
|
BLAKE2b-256 | 5bfa119f44d1b55e2e3815f66a3dfecd94c30c157493f4154f161950dde71070 |