open-quality-cli 0.1.0__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {open_quality_cli-0.1.0/open_quality_cli.egg-info → open_quality_cli-0.3.0}/PKG-INFO +48 -31
- {open_quality_cli-0.1.0 → open_quality_cli-0.3.0}/README.md +47 -30
- open_quality_cli-0.3.0/cli/cli.py +590 -0
- {open_quality_cli-0.1.0 → open_quality_cli-0.3.0}/cli/core.py +387 -123
- {open_quality_cli-0.1.0 → open_quality_cli-0.3.0}/cli/model.py +17 -1
- open_quality_cli-0.3.0/cli/providers/github/__init__.py +199 -0
- open_quality_cli-0.3.0/cli/providers/github_projects/__init__.py +276 -0
- open_quality_cli-0.3.0/cli/providers/gitlab/__init__.py +246 -0
- {open_quality_cli-0.1.0 → open_quality_cli-0.3.0}/cli/providers/interfaces.py +9 -3
- open_quality_cli-0.3.0/cli/providers/jira_cloud/__init__.py +497 -0
- open_quality_cli-0.1.0/cli/providers/openproject.py → open_quality_cli-0.3.0/cli/providers/openproject/__init__.py +372 -132
- {open_quality_cli-0.1.0 → open_quality_cli-0.3.0}/cli/renderer.py +11 -6
- open_quality_cli-0.3.0/cli/scaffold.py +876 -0
- {open_quality_cli-0.1.0 → open_quality_cli-0.3.0/open_quality_cli.egg-info}/PKG-INFO +48 -31
- open_quality_cli-0.3.0/open_quality_cli.egg-info/SOURCES.txt +42 -0
- open_quality_cli-0.3.0/open_quality_cli.egg-info/top_level.txt +2 -0
- {open_quality_cli-0.1.0 → open_quality_cli-0.3.0}/pyproject.toml +6 -3
- open_quality_cli-0.3.0/schema/__init__.py +1 -0
- open_quality_cli-0.3.0/schema/v0.1/approval-policy.schema.json +77 -0
- open_quality_cli-0.3.0/schema/v0.1/common.schema.json +46 -0
- open_quality_cli-0.3.0/schema/v0.1/documentation.schema.json +49 -0
- open_quality_cli-0.3.0/schema/v0.1/metric.schema.json +22 -0
- open_quality_cli-0.3.0/schema/v0.1/quality-contract.schema.json +199 -0
- open_quality_cli-0.3.0/schema/v0.1/quality-measure-element.schema.json +38 -0
- open_quality_cli-0.3.0/schema/v0.1/quality.schema.json +16 -0
- open_quality_cli-0.3.0/schema/v0.1/requirement.schema.json +44 -0
- open_quality_cli-0.3.0/schema/v0.1/role.schema.json +24 -0
- open_quality_cli-0.3.0/schema/v0.1/stage.schema.json +26 -0
- open_quality_cli-0.3.0/schema/v0.1/workflow.schema.json +25 -0
- {open_quality_cli-0.1.0 → open_quality_cli-0.3.0}/tests/test_cli.py +37 -22
- open_quality_cli-0.3.0/tests/test_core.py +218 -0
- open_quality_cli-0.3.0/tests/test_github_projects_provider.py +68 -0
- {open_quality_cli-0.1.0 → open_quality_cli-0.3.0}/tests/test_github_provider.py +27 -9
- {open_quality_cli-0.1.0 → open_quality_cli-0.3.0}/tests/test_gitlab_provider.py +10 -3
- open_quality_cli-0.3.0/tests/test_provider.py +42 -0
- open_quality_cli-0.3.0/tests/test_scaffold.py +179 -0
- open_quality_cli-0.1.0/cli/cli.py +0 -248
- open_quality_cli-0.1.0/cli/provider.py +0 -40
- open_quality_cli-0.1.0/cli/providers/github.py +0 -106
- open_quality_cli-0.1.0/cli/providers/gitlab.py +0 -73
- open_quality_cli-0.1.0/cli/providers/jira_cloud.py +0 -122
- open_quality_cli-0.1.0/open_quality_cli.egg-info/SOURCES.txt +0 -27
- open_quality_cli-0.1.0/open_quality_cli.egg-info/top_level.txt +0 -1
- open_quality_cli-0.1.0/tests/test_core.py +0 -119
- open_quality_cli-0.1.0/tests/test_provider.py +0 -28
- {open_quality_cli-0.1.0 → open_quality_cli-0.3.0}/LICENSE +0 -0
- {open_quality_cli-0.1.0 → open_quality_cli-0.3.0}/NOTICE +0 -0
- {open_quality_cli-0.1.0 → open_quality_cli-0.3.0}/cli/__init__.py +0 -0
- {open_quality_cli-0.1.0 → open_quality_cli-0.3.0}/cli/providers/__init__.py +0 -0
- {open_quality_cli-0.1.0 → open_quality_cli-0.3.0}/open_quality_cli.egg-info/dependency_links.txt +0 -0
- {open_quality_cli-0.1.0 → open_quality_cli-0.3.0}/open_quality_cli.egg-info/entry_points.txt +0 -0
- {open_quality_cli-0.1.0 → open_quality_cli-0.3.0}/open_quality_cli.egg-info/requires.txt +0 -0
- {open_quality_cli-0.1.0 → open_quality_cli-0.3.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: open-quality-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Command-line interface for the Open Quality 0.1 specification
|
|
5
5
|
License-Expression: GPL-3.0-only
|
|
6
6
|
Project-URL: Homepage, https://github.com/duanribeiro/open-quality
|
|
@@ -57,12 +57,23 @@ Version `0.1.0` is an experimental foundation intended to invite feedback. Names
|
|
|
57
57
|
└── docs/
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
##
|
|
60
|
+
## Documentation
|
|
61
|
+
|
|
62
|
+
Read the [documentation hub](docs/README.md) for a guided path through the
|
|
63
|
+
concepts, quick start, resource model, CLI, evaluation, and provider guides.
|
|
64
|
+
|
|
65
|
+
The hosted documentation site is available at
|
|
66
|
+
<https://duanribeiro.github.io/open-quality/>.
|
|
67
|
+
|
|
68
|
+
To enable the first deployment, open the repository's **Settings → Pages** and
|
|
69
|
+
select **GitHub Actions** as the source. Later pushes to `main` publish the
|
|
70
|
+
site automatically.
|
|
71
|
+
|
|
72
|
+
## Examples
|
|
61
73
|
|
|
62
74
|
The example in [`examples/minimal`](examples/minimal/README.md) describes a small release process for a payment API. Each YAML document declares one resource using a common envelope:
|
|
63
75
|
|
|
64
76
|
```yaml
|
|
65
|
-
specVersion: "0.1"
|
|
66
77
|
kind: QualityRequirement
|
|
67
78
|
metadata:
|
|
68
79
|
id: api-availability
|
|
@@ -71,29 +82,31 @@ spec:
|
|
|
71
82
|
statement: The API must remain available to customers.
|
|
72
83
|
priority: critical
|
|
73
84
|
qualityMeasures:
|
|
74
|
-
- qualityMeasure: availability
|
|
85
|
+
- qualityMeasure: availability
|
|
75
86
|
target: {operator: greaterThanOrEqual, value: 99.9, unit: percent}
|
|
76
87
|
```
|
|
77
88
|
|
|
78
89
|
Read [`SPECIFICATION.md`](SPECIFICATION.md) for the normative model and [`docs/syntax.md`](docs/syntax.md) for authoring conventions.
|
|
79
90
|
|
|
91
|
+
The minimal example also includes provider configuration for OpenProject and
|
|
92
|
+
GitHub in `quality-contract.yaml`. It can be inspected safely with `oq plan` before an
|
|
93
|
+
`oq apply`.
|
|
94
|
+
|
|
80
95
|
## Install
|
|
81
96
|
|
|
82
|
-
The optional command-line interface requires Python 3.10 or later.
|
|
83
|
-
|
|
97
|
+
The optional command-line interface requires Python 3.10 or later. Install the
|
|
98
|
+
published package from PyPI with `pipx`:
|
|
84
99
|
|
|
85
100
|
```bash
|
|
86
|
-
|
|
87
|
-
cd open-quality
|
|
88
|
-
python3 -m venv .venv
|
|
89
|
-
source .venv/bin/activate
|
|
90
|
-
python -m pip install .
|
|
101
|
+
pipx install open-quality-cli
|
|
91
102
|
```
|
|
92
103
|
|
|
93
|
-
|
|
104
|
+
Or install it with `pip` in a virtual environment:
|
|
94
105
|
|
|
95
106
|
```bash
|
|
96
|
-
|
|
107
|
+
python3 -m venv .venv
|
|
108
|
+
source .venv/bin/activate
|
|
109
|
+
python -m pip install open-quality-cli
|
|
97
110
|
```
|
|
98
111
|
|
|
99
112
|
For local development, install the formatter as well:
|
|
@@ -107,17 +120,18 @@ python -m pip install -e ".[dev]"
|
|
|
107
120
|
Validate the minimal Quality Contract included with the repository:
|
|
108
121
|
|
|
109
122
|
```bash
|
|
110
|
-
oq validate examples
|
|
123
|
+
oq validate examples/minimal
|
|
111
124
|
```
|
|
112
125
|
|
|
113
126
|
Explore the example and run the project's checks:
|
|
114
127
|
|
|
115
128
|
```bash
|
|
116
|
-
oq graph examples
|
|
129
|
+
oq graph examples/minimal
|
|
117
130
|
make check
|
|
118
131
|
```
|
|
119
132
|
|
|
120
|
-
`oq validate`
|
|
133
|
+
`oq validate` defaults to `.quality` when no directory is supplied and confirms
|
|
134
|
+
the contract is structurally valid. `oq graph` renders
|
|
121
135
|
its workflow dependencies, and `oq evaluate` evaluates requirement targets
|
|
122
136
|
against a state file. Run `oq` without arguments to see the available commands.
|
|
123
137
|
|
|
@@ -129,7 +143,7 @@ tests.
|
|
|
129
143
|
|
|
130
144
|
| Resource | Purpose |
|
|
131
145
|
|---|---|
|
|
132
|
-
| `
|
|
146
|
+
| `QualityContract` | Entry point and scope of a Quality Contract |
|
|
133
147
|
| `QualityRequirement` | A quality expectation and its acceptance target |
|
|
134
148
|
| `Workflow` | Ordered or dependent stages in a quality process |
|
|
135
149
|
| `Stage` | A reusable phase of work, verification, or decision |
|
|
@@ -140,23 +154,26 @@ tests.
|
|
|
140
154
|
|
|
141
155
|
## Contributing
|
|
142
156
|
|
|
143
|
-
Open
|
|
144
|
-
|
|
145
|
-
|
|
157
|
+
Open Quality is shaped by people who use, implement, review, and document
|
|
158
|
+
quality practices. First contributions are welcome: a typo fix, a clearer
|
|
159
|
+
example, a bug report, or feedback about a workflow that the format cannot yet
|
|
160
|
+
express are all useful.
|
|
161
|
+
|
|
162
|
+
1. Read the [Code of Conduct](CODE_OF_CONDUCT.md).
|
|
163
|
+
2. Check the [open issues](https://github.com/duanribeiro/open-quality/issues)
|
|
164
|
+
and choose or discuss a change.
|
|
165
|
+
3. Follow the practical setup and pull-request guide in
|
|
166
|
+
[CONTRIBUTING.md](CONTRIBUTING.md).
|
|
167
|
+
|
|
168
|
+
For help using the project, see [SUPPORT.md](SUPPORT.md). Changes to the core
|
|
169
|
+
format follow the lightweight decision process in [GOVERNANCE.md](GOVERNANCE.md).
|
|
146
170
|
|
|
147
171
|
## Compatibility and releases
|
|
148
172
|
|
|
149
|
-
Open Quality is currently at
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
Until `1.0.0`, the project may make breaking changes. Each release will be
|
|
155
|
-
tagged, documented in [`CHANGELOG.md`](CHANGELOG.md), and identify its schema
|
|
156
|
-
compatibility and migration notes where needed. After `1.0.0`, releases will
|
|
157
|
-
follow semantic versioning: patch releases are backward-compatible fixes,
|
|
158
|
-
minor releases add backward-compatible functionality, and major releases may
|
|
159
|
-
contain breaking changes.
|
|
173
|
+
Open Quality is currently experimental at version `0.1.0`. The CLI supports
|
|
174
|
+
Python 3.10 and later. Schemas ship with the CLI under [`schema/v0.1`](schema/v0.1);
|
|
175
|
+
resource documents do not include a separate version field. Breaking format
|
|
176
|
+
changes may require updating existing contracts.
|
|
160
177
|
|
|
161
178
|
## License
|
|
162
179
|
|
|
@@ -28,12 +28,23 @@ Version `0.1.0` is an experimental foundation intended to invite feedback. Names
|
|
|
28
28
|
└── docs/
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
##
|
|
31
|
+
## Documentation
|
|
32
|
+
|
|
33
|
+
Read the [documentation hub](docs/README.md) for a guided path through the
|
|
34
|
+
concepts, quick start, resource model, CLI, evaluation, and provider guides.
|
|
35
|
+
|
|
36
|
+
The hosted documentation site is available at
|
|
37
|
+
<https://duanribeiro.github.io/open-quality/>.
|
|
38
|
+
|
|
39
|
+
To enable the first deployment, open the repository's **Settings → Pages** and
|
|
40
|
+
select **GitHub Actions** as the source. Later pushes to `main` publish the
|
|
41
|
+
site automatically.
|
|
42
|
+
|
|
43
|
+
## Examples
|
|
32
44
|
|
|
33
45
|
The example in [`examples/minimal`](examples/minimal/README.md) describes a small release process for a payment API. Each YAML document declares one resource using a common envelope:
|
|
34
46
|
|
|
35
47
|
```yaml
|
|
36
|
-
specVersion: "0.1"
|
|
37
48
|
kind: QualityRequirement
|
|
38
49
|
metadata:
|
|
39
50
|
id: api-availability
|
|
@@ -42,29 +53,31 @@ spec:
|
|
|
42
53
|
statement: The API must remain available to customers.
|
|
43
54
|
priority: critical
|
|
44
55
|
qualityMeasures:
|
|
45
|
-
- qualityMeasure: availability
|
|
56
|
+
- qualityMeasure: availability
|
|
46
57
|
target: {operator: greaterThanOrEqual, value: 99.9, unit: percent}
|
|
47
58
|
```
|
|
48
59
|
|
|
49
60
|
Read [`SPECIFICATION.md`](SPECIFICATION.md) for the normative model and [`docs/syntax.md`](docs/syntax.md) for authoring conventions.
|
|
50
61
|
|
|
62
|
+
The minimal example also includes provider configuration for OpenProject and
|
|
63
|
+
GitHub in `quality-contract.yaml`. It can be inspected safely with `oq plan` before an
|
|
64
|
+
`oq apply`.
|
|
65
|
+
|
|
51
66
|
## Install
|
|
52
67
|
|
|
53
|
-
The optional command-line interface requires Python 3.10 or later.
|
|
54
|
-
|
|
68
|
+
The optional command-line interface requires Python 3.10 or later. Install the
|
|
69
|
+
published package from PyPI with `pipx`:
|
|
55
70
|
|
|
56
71
|
```bash
|
|
57
|
-
|
|
58
|
-
cd open-quality
|
|
59
|
-
python3 -m venv .venv
|
|
60
|
-
source .venv/bin/activate
|
|
61
|
-
python -m pip install .
|
|
72
|
+
pipx install open-quality-cli
|
|
62
73
|
```
|
|
63
74
|
|
|
64
|
-
|
|
75
|
+
Or install it with `pip` in a virtual environment:
|
|
65
76
|
|
|
66
77
|
```bash
|
|
67
|
-
|
|
78
|
+
python3 -m venv .venv
|
|
79
|
+
source .venv/bin/activate
|
|
80
|
+
python -m pip install open-quality-cli
|
|
68
81
|
```
|
|
69
82
|
|
|
70
83
|
For local development, install the formatter as well:
|
|
@@ -78,17 +91,18 @@ python -m pip install -e ".[dev]"
|
|
|
78
91
|
Validate the minimal Quality Contract included with the repository:
|
|
79
92
|
|
|
80
93
|
```bash
|
|
81
|
-
oq validate examples
|
|
94
|
+
oq validate examples/minimal
|
|
82
95
|
```
|
|
83
96
|
|
|
84
97
|
Explore the example and run the project's checks:
|
|
85
98
|
|
|
86
99
|
```bash
|
|
87
|
-
oq graph examples
|
|
100
|
+
oq graph examples/minimal
|
|
88
101
|
make check
|
|
89
102
|
```
|
|
90
103
|
|
|
91
|
-
`oq validate`
|
|
104
|
+
`oq validate` defaults to `.quality` when no directory is supplied and confirms
|
|
105
|
+
the contract is structurally valid. `oq graph` renders
|
|
92
106
|
its workflow dependencies, and `oq evaluate` evaluates requirement targets
|
|
93
107
|
against a state file. Run `oq` without arguments to see the available commands.
|
|
94
108
|
|
|
@@ -100,7 +114,7 @@ tests.
|
|
|
100
114
|
|
|
101
115
|
| Resource | Purpose |
|
|
102
116
|
|---|---|
|
|
103
|
-
| `
|
|
117
|
+
| `QualityContract` | Entry point and scope of a Quality Contract |
|
|
104
118
|
| `QualityRequirement` | A quality expectation and its acceptance target |
|
|
105
119
|
| `Workflow` | Ordered or dependent stages in a quality process |
|
|
106
120
|
| `Stage` | A reusable phase of work, verification, or decision |
|
|
@@ -111,23 +125,26 @@ tests.
|
|
|
111
125
|
|
|
112
126
|
## Contributing
|
|
113
127
|
|
|
114
|
-
Open
|
|
115
|
-
|
|
116
|
-
|
|
128
|
+
Open Quality is shaped by people who use, implement, review, and document
|
|
129
|
+
quality practices. First contributions are welcome: a typo fix, a clearer
|
|
130
|
+
example, a bug report, or feedback about a workflow that the format cannot yet
|
|
131
|
+
express are all useful.
|
|
132
|
+
|
|
133
|
+
1. Read the [Code of Conduct](CODE_OF_CONDUCT.md).
|
|
134
|
+
2. Check the [open issues](https://github.com/duanribeiro/open-quality/issues)
|
|
135
|
+
and choose or discuss a change.
|
|
136
|
+
3. Follow the practical setup and pull-request guide in
|
|
137
|
+
[CONTRIBUTING.md](CONTRIBUTING.md).
|
|
138
|
+
|
|
139
|
+
For help using the project, see [SUPPORT.md](SUPPORT.md). Changes to the core
|
|
140
|
+
format follow the lightweight decision process in [GOVERNANCE.md](GOVERNANCE.md).
|
|
117
141
|
|
|
118
142
|
## Compatibility and releases
|
|
119
143
|
|
|
120
|
-
Open Quality is currently at
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
Until `1.0.0`, the project may make breaking changes. Each release will be
|
|
126
|
-
tagged, documented in [`CHANGELOG.md`](CHANGELOG.md), and identify its schema
|
|
127
|
-
compatibility and migration notes where needed. After `1.0.0`, releases will
|
|
128
|
-
follow semantic versioning: patch releases are backward-compatible fixes,
|
|
129
|
-
minor releases add backward-compatible functionality, and major releases may
|
|
130
|
-
contain breaking changes.
|
|
144
|
+
Open Quality is currently experimental at version `0.1.0`. The CLI supports
|
|
145
|
+
Python 3.10 and later. Schemas ship with the CLI under [`schema/v0.1`](schema/v0.1);
|
|
146
|
+
resource documents do not include a separate version field. Breaking format
|
|
147
|
+
changes may require updating existing contracts.
|
|
131
148
|
|
|
132
149
|
## License
|
|
133
150
|
|