codeowners-0.6.0
توضیحات
Codeowners parser for Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | codeowners-0.6.0 |
| نام | codeowners |
| نسخه کتابخانه | 0.6.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Steve Dignam |
| ایمیل نویسنده | steve@dignam.xyz |
| آدرس صفحه اصلی | https://github.com/sbdchd/codeowners |
| آدرس اینترنتی | https://pypi.org/project/codeowners/ |
| مجوز | MIT |
# codeowners [](https://circleci.com/gh/sbdchd/codeowners) [](https://pypi.org/project/codeowners/)
> Python codeowners parser based on [softprops's Rust
> library](https://crates.io/crates/codeowners) and [hmarr's Go
> library](https://github.com/hmarr/codeowners/).
## Why?
To allow Python users to parse [codeowners
files](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax)
in Python.
## Install
```shell
pip install codeowners
```
## Usage
```python
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')]
```
## Dev
```shell
poetry install
s/test
s/lint
```
## Releasing a New Version
```shell
# 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
```
نیازمندی
| مقدار | نام |
|---|---|
| >=3.7 | typing_extensions |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl codeowners-0.6.0:
pip install codeowners-0.6.0.whl
نصب پکیج tar.gz codeowners-0.6.0:
pip install codeowners-0.6.0.tar.gz