2021-10-11 14:17:35 -05:00
|
|
|
# Contributing
|
|
|
|
|
|
|
|
These are the contribution guidelines for archlinux-keyring.
|
|
|
|
All code contributions fall under the terms of the GPL-3.0-or-later (see
|
|
|
|
[LICENSE](LICENSE)).
|
|
|
|
|
2021-10-20 13:13:48 -05:00
|
|
|
Please read our distribution-wide [Code of
|
|
|
|
Conduct](https://terms.archlinux.org/docs/code-of-conduct/) before
|
|
|
|
contributing, to understand what actions will and will not be tolerated.
|
2021-10-11 14:17:35 -05:00
|
|
|
|
2021-10-20 13:13:48 -05:00
|
|
|
Development of archlinux-keyring takes place on Arch Linux' Gitlab:
|
|
|
|
https://gitlab.archlinux.org/archlinux/archlinux-keyring.
|
2021-10-11 14:17:35 -05:00
|
|
|
|
2021-10-20 13:13:48 -05:00
|
|
|
Any merge request to the repository requires two approvals of authorized
|
|
|
|
approvers (the current main key holders).
|
2021-10-11 14:17:35 -05:00
|
|
|
|
2021-10-20 13:13:48 -05:00
|
|
|
## Discussion
|
2021-10-11 14:17:35 -05:00
|
|
|
|
2021-10-20 13:13:48 -05:00
|
|
|
Discussion around archlinux-keyring may take place on the [arch-projects
|
|
|
|
mailing list](https://lists.archlinux.org/listinfo/arch-projects) and in
|
|
|
|
[#archlinux-projects](ircs://irc.libera.chat/archlinux-projects) on [Libera
|
|
|
|
Chat](https://libera.chat/).
|
2021-10-11 14:17:35 -05:00
|
|
|
|
2021-10-20 13:13:48 -05:00
|
|
|
## Requirements
|
2021-10-11 14:17:35 -05:00
|
|
|
|
2021-10-20 13:13:48 -05:00
|
|
|
The following additional packages need to be installed to be able to lint
|
|
|
|
and develop this project:
|
2021-10-11 14:17:35 -05:00
|
|
|
|
2021-10-20 13:13:48 -05:00
|
|
|
* python-black
|
2021-10-31 14:27:18 -06:00
|
|
|
* python-coverage
|
2021-10-20 13:13:48 -05:00
|
|
|
* python-isort
|
2021-10-31 11:53:20 -06:00
|
|
|
* python-pytest
|
2021-11-07 15:30:37 -06:00
|
|
|
* python-tomli
|
2021-10-20 13:13:48 -05:00
|
|
|
* flake8
|
|
|
|
* mypy
|
2021-10-11 14:17:35 -05:00
|
|
|
|
2021-10-20 13:13:48 -05:00
|
|
|
## Keyringctl
|
2021-10-11 14:17:35 -05:00
|
|
|
|
2021-10-20 13:13:48 -05:00
|
|
|
The `keyringctl` script is written in typed python, which makes use of
|
|
|
|
[sequoia](https://sequoia-pgp.org/)'s `sq` command.
|
2021-10-11 14:17:35 -05:00
|
|
|
|
2021-10-20 13:13:48 -05:00
|
|
|
The script is type checked, linted and formatted using standard tooling.
|
|
|
|
When providing a merge request make sure to run `make lint`.
|
2021-10-31 11:53:20 -06:00
|
|
|
|
|
|
|
## Testing
|
|
|
|
|
|
|
|
Test cases are developed per module in the [test](test) directory and should
|
|
|
|
consist of atomic single expectation tests. A Huge test case asserting various
|
|
|
|
different expectations are discouraged and should be split into finer grained
|
|
|
|
test cases.
|
|
|
|
|
|
|
|
To execute all tests using pytest
|
|
|
|
```bash
|
|
|
|
make test
|
|
|
|
```
|
2021-11-07 16:31:19 -06:00
|
|
|
|
|
|
|
To run keyring integrity and consistency checks
|
|
|
|
```bash
|
|
|
|
make check
|
|
|
|
```
|
2022-07-28 06:23:45 -05:00
|
|
|
|
|
|
|
## Web Key Directory
|
|
|
|
|
|
|
|
Only tagged releases are built and exposed via WKD. This helps to ensure, that
|
|
|
|
inconsistent state of the keyring is not exposed to the enduser, which may make
|
|
|
|
use of it instantaneously.
|