跳转到主要内容

Python代码所有者解析器

项目描述

codeowners CircleCI pypi

基于softprops的Rust库hmarr的Go库的Python代码所有者解析器。

为什么?

为了允许Python用户在Python中解析codeowners文件

安装

pip install codeowners

使用

from codeowners import CodeOwners

example_file = """\
# owners for js files
*.js    @ghost
# python
*.py user@example.com
# misc
/build/logs/ @dmin
docs/*  docs@example.com
"""

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

项目详情


下载文件

下载适用于您的平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源代码分发

codeowners-0.7.0.tar.gz (7.7 kB 查看哈希值)

上传时间 源代码

构建分发

codeowners-0.7.0-py3-none-any.whl (8.7 kB 查看哈希值)

上传时间 Python 3

支持