Python codeowners parser based on softprops's Rust library and hmarr's Go library.
To allow Python users to parse codeowners files in Python.
pip install codeowners
from codeowners import CodeOwners
example_file = """\
# owners for js files
*.js @ghost
# python
*.py [email protected]
# misc
/build/logs/ @dmin
docs/* [email protected]
"""
owners = CodeOwners(example_file)
assert owners.of("test.js") == [('USERNAME', '@ghost')]
poetry install
s/test
s/lint
# bump version in pyproject.toml
# update CHANGELOG.md
# commit release commit to GitHub
# build and publish
poetry publish --build
# create a release in the GitHub UI