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
$ poetry shell
$ 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.6.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for ds_caselaw_utils-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46dc04bbbe87c1ba6f7bfe4470dcde7ff4d88e7286078bba56ecfc410b6cc3a9 |
|
MD5 | ce64691d09c0e8195046216b1821cc24 |
|
BLAKE2b-256 | 3ea1fcd6d7daf9d832df026ef38d986a3de6780da49bc265bf59e1126efa8e0c |