open-quality-cli 0.1.0__tar.gz → 0.2.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.
Files changed (53) hide show
  1. {open_quality_cli-0.1.0/open_quality_cli.egg-info → open_quality_cli-0.2.0}/PKG-INFO +44 -19
  2. {open_quality_cli-0.1.0 → open_quality_cli-0.2.0}/README.md +43 -18
  3. open_quality_cli-0.2.0/cli/cli.py +462 -0
  4. {open_quality_cli-0.1.0 → open_quality_cli-0.2.0}/cli/core.py +275 -97
  5. {open_quality_cli-0.1.0 → open_quality_cli-0.2.0}/cli/model.py +10 -0
  6. open_quality_cli-0.2.0/cli/providers/github/__init__.py +199 -0
  7. open_quality_cli-0.2.0/cli/providers/github_projects/__init__.py +275 -0
  8. open_quality_cli-0.2.0/cli/providers/gitlab/__init__.py +136 -0
  9. {open_quality_cli-0.1.0 → open_quality_cli-0.2.0}/cli/providers/interfaces.py +9 -3
  10. open_quality_cli-0.2.0/cli/providers/jira_cloud/__init__.py +493 -0
  11. open_quality_cli-0.1.0/cli/providers/openproject.py → open_quality_cli-0.2.0/cli/providers/openproject/__init__.py +363 -128
  12. {open_quality_cli-0.1.0 → open_quality_cli-0.2.0}/cli/renderer.py +9 -4
  13. open_quality_cli-0.2.0/cli/scaffold.py +870 -0
  14. {open_quality_cli-0.1.0 → open_quality_cli-0.2.0/open_quality_cli.egg-info}/PKG-INFO +44 -19
  15. open_quality_cli-0.2.0/open_quality_cli.egg-info/SOURCES.txt +42 -0
  16. open_quality_cli-0.2.0/open_quality_cli.egg-info/top_level.txt +2 -0
  17. {open_quality_cli-0.1.0 → open_quality_cli-0.2.0}/pyproject.toml +6 -3
  18. open_quality_cli-0.2.0/schema/__init__.py +1 -0
  19. open_quality_cli-0.2.0/schema/v0.1/approval-policy.schema.json +81 -0
  20. open_quality_cli-0.2.0/schema/v0.1/artifact.schema.json +54 -0
  21. open_quality_cli-0.2.0/schema/v0.1/common.schema.json +46 -0
  22. open_quality_cli-0.2.0/schema/v0.1/metric.schema.json +23 -0
  23. open_quality_cli-0.2.0/schema/v0.1/quality-contract.schema.json +93 -0
  24. open_quality_cli-0.2.0/schema/v0.1/quality-measure-element.schema.json +40 -0
  25. open_quality_cli-0.2.0/schema/v0.1/quality.schema.json +16 -0
  26. open_quality_cli-0.2.0/schema/v0.1/requirement.schema.json +45 -0
  27. open_quality_cli-0.2.0/schema/v0.1/role.schema.json +25 -0
  28. open_quality_cli-0.2.0/schema/v0.1/stage.schema.json +27 -0
  29. open_quality_cli-0.2.0/schema/v0.1/workflow.schema.json +26 -0
  30. {open_quality_cli-0.1.0 → open_quality_cli-0.2.0}/tests/test_cli.py +27 -6
  31. open_quality_cli-0.2.0/tests/test_core.py +219 -0
  32. open_quality_cli-0.2.0/tests/test_github_projects_provider.py +68 -0
  33. {open_quality_cli-0.1.0 → open_quality_cli-0.2.0}/tests/test_github_provider.py +27 -9
  34. {open_quality_cli-0.1.0 → open_quality_cli-0.2.0}/tests/test_gitlab_provider.py +10 -3
  35. open_quality_cli-0.2.0/tests/test_provider.py +42 -0
  36. open_quality_cli-0.2.0/tests/test_scaffold.py +179 -0
  37. open_quality_cli-0.1.0/cli/cli.py +0 -248
  38. open_quality_cli-0.1.0/cli/provider.py +0 -40
  39. open_quality_cli-0.1.0/cli/providers/github.py +0 -106
  40. open_quality_cli-0.1.0/cli/providers/gitlab.py +0 -73
  41. open_quality_cli-0.1.0/cli/providers/jira_cloud.py +0 -122
  42. open_quality_cli-0.1.0/open_quality_cli.egg-info/SOURCES.txt +0 -27
  43. open_quality_cli-0.1.0/open_quality_cli.egg-info/top_level.txt +0 -1
  44. open_quality_cli-0.1.0/tests/test_core.py +0 -119
  45. open_quality_cli-0.1.0/tests/test_provider.py +0 -28
  46. {open_quality_cli-0.1.0 → open_quality_cli-0.2.0}/LICENSE +0 -0
  47. {open_quality_cli-0.1.0 → open_quality_cli-0.2.0}/NOTICE +0 -0
  48. {open_quality_cli-0.1.0 → open_quality_cli-0.2.0}/cli/__init__.py +0 -0
  49. {open_quality_cli-0.1.0 → open_quality_cli-0.2.0}/cli/providers/__init__.py +0 -0
  50. {open_quality_cli-0.1.0 → open_quality_cli-0.2.0}/open_quality_cli.egg-info/dependency_links.txt +0 -0
  51. {open_quality_cli-0.1.0 → open_quality_cli-0.2.0}/open_quality_cli.egg-info/entry_points.txt +0 -0
  52. {open_quality_cli-0.1.0 → open_quality_cli-0.2.0}/open_quality_cli.egg-info/requires.txt +0 -0
  53. {open_quality_cli-0.1.0 → open_quality_cli-0.2.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: open-quality-cli
3
- Version: 0.1.0
3
+ Version: 0.2.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,7 +57,19 @@ Version `0.1.0` is an experimental foundation intended to invite feedback. Names
57
57
  └── docs/
58
58
  ```
59
59
 
60
- ## Start with the minimal contract
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
 
@@ -71,29 +83,31 @@ spec:
71
83
  statement: The API must remain available to customers.
72
84
  priority: critical
73
85
  qualityMeasures:
74
- - qualityMeasure: availability-rate
86
+ - qualityMeasure: availability
75
87
  target: {operator: greaterThanOrEqual, value: 99.9, unit: percent}
76
88
  ```
77
89
 
78
90
  Read [`SPECIFICATION.md`](SPECIFICATION.md) for the normative model and [`docs/syntax.md`](docs/syntax.md) for authoring conventions.
79
91
 
92
+ The minimal example also includes provider configuration for OpenProject and
93
+ GitHub in `quality-contract.yaml`. It can be inspected safely with `oq plan` before an
94
+ `oq apply`.
95
+
80
96
  ## Install
81
97
 
82
- The optional command-line interface requires Python 3.10 or later. Clone the
83
- repository, create an isolated environment, and install the local project:
98
+ The optional command-line interface requires Python 3.10 or later. Install the
99
+ published package from PyPI with `pipx`:
84
100
 
85
101
  ```bash
86
- git clone <repository-url>
87
- cd open-quality
88
- python3 -m venv .venv
89
- source .venv/bin/activate
90
- python -m pip install .
102
+ pipx install open-quality-cli
91
103
  ```
92
104
 
93
- After the first public release, install it globally with `pipx`:
105
+ Or install it with `pip` in a virtual environment:
94
106
 
95
107
  ```bash
96
- pipx install open-quality-cli
108
+ python3 -m venv .venv
109
+ source .venv/bin/activate
110
+ python -m pip install open-quality-cli
97
111
  ```
98
112
 
99
113
  For local development, install the formatter as well:
@@ -107,17 +121,18 @@ python -m pip install -e ".[dev]"
107
121
  Validate the minimal Quality Contract included with the repository:
108
122
 
109
123
  ```bash
110
- oq validate examples
124
+ oq validate examples/minimal
111
125
  ```
112
126
 
113
127
  Explore the example and run the project's checks:
114
128
 
115
129
  ```bash
116
- oq graph examples
130
+ oq graph examples/minimal
117
131
  make check
118
132
  ```
119
133
 
120
- `oq validate` confirms the contract is structurally valid. `oq graph` renders
134
+ `oq validate` defaults to `.quality` when no directory is supplied and confirms
135
+ the contract is structurally valid. `oq graph` renders
121
136
  its workflow dependencies, and `oq evaluate` evaluates requirement targets
122
137
  against a state file. Run `oq` without arguments to see the available commands.
123
138
 
@@ -129,7 +144,7 @@ tests.
129
144
 
130
145
  | Resource | Purpose |
131
146
  |---|---|
132
- | `Project` | Entry point and scope of a Quality Contract |
147
+ | `QualityContract` | Entry point and scope of a Quality Contract |
133
148
  | `QualityRequirement` | A quality expectation and its acceptance target |
134
149
  | `Workflow` | Ordered or dependent stages in a quality process |
135
150
  | `Stage` | A reusable phase of work, verification, or decision |
@@ -140,9 +155,19 @@ tests.
140
155
 
141
156
  ## Contributing
142
157
 
143
- Open an issue before proposing a new core resource. See
144
- [`CONTRIBUTING.md`](CONTRIBUTING.md), [`GOVERNANCE.md`](GOVERNANCE.md),
145
- [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md), and [`SUPPORT.md`](SUPPORT.md).
158
+ Open Quality is shaped by people who use, implement, review, and document
159
+ quality practices. First contributions are welcome: a typo fix, a clearer
160
+ example, a bug report, or feedback about a workflow that the format cannot yet
161
+ express are all useful.
162
+
163
+ 1. Read the [Code of Conduct](CODE_OF_CONDUCT.md).
164
+ 2. Check the [open issues](https://github.com/duanribeiro/open-quality/issues)
165
+ and choose or discuss a change.
166
+ 3. Follow the practical setup and pull-request guide in
167
+ [CONTRIBUTING.md](CONTRIBUTING.md).
168
+
169
+ For help using the project, see [SUPPORT.md](SUPPORT.md). Changes to the core
170
+ format follow the lightweight decision process in [GOVERNANCE.md](GOVERNANCE.md).
146
171
 
147
172
  ## Compatibility and releases
148
173
 
@@ -28,7 +28,19 @@ Version `0.1.0` is an experimental foundation intended to invite feedback. Names
28
28
  └── docs/
29
29
  ```
30
30
 
31
- ## Start with the minimal contract
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
 
@@ -42,29 +54,31 @@ spec:
42
54
  statement: The API must remain available to customers.
43
55
  priority: critical
44
56
  qualityMeasures:
45
- - qualityMeasure: availability-rate
57
+ - qualityMeasure: availability
46
58
  target: {operator: greaterThanOrEqual, value: 99.9, unit: percent}
47
59
  ```
48
60
 
49
61
  Read [`SPECIFICATION.md`](SPECIFICATION.md) for the normative model and [`docs/syntax.md`](docs/syntax.md) for authoring conventions.
50
62
 
63
+ The minimal example also includes provider configuration for OpenProject and
64
+ GitHub in `quality-contract.yaml`. It can be inspected safely with `oq plan` before an
65
+ `oq apply`.
66
+
51
67
  ## Install
52
68
 
53
- The optional command-line interface requires Python 3.10 or later. Clone the
54
- repository, create an isolated environment, and install the local project:
69
+ The optional command-line interface requires Python 3.10 or later. Install the
70
+ published package from PyPI with `pipx`:
55
71
 
56
72
  ```bash
57
- git clone <repository-url>
58
- cd open-quality
59
- python3 -m venv .venv
60
- source .venv/bin/activate
61
- python -m pip install .
73
+ pipx install open-quality-cli
62
74
  ```
63
75
 
64
- After the first public release, install it globally with `pipx`:
76
+ Or install it with `pip` in a virtual environment:
65
77
 
66
78
  ```bash
67
- pipx install open-quality-cli
79
+ python3 -m venv .venv
80
+ source .venv/bin/activate
81
+ python -m pip install open-quality-cli
68
82
  ```
69
83
 
70
84
  For local development, install the formatter as well:
@@ -78,17 +92,18 @@ python -m pip install -e ".[dev]"
78
92
  Validate the minimal Quality Contract included with the repository:
79
93
 
80
94
  ```bash
81
- oq validate examples
95
+ oq validate examples/minimal
82
96
  ```
83
97
 
84
98
  Explore the example and run the project's checks:
85
99
 
86
100
  ```bash
87
- oq graph examples
101
+ oq graph examples/minimal
88
102
  make check
89
103
  ```
90
104
 
91
- `oq validate` confirms the contract is structurally valid. `oq graph` renders
105
+ `oq validate` defaults to `.quality` when no directory is supplied and confirms
106
+ the contract is structurally valid. `oq graph` renders
92
107
  its workflow dependencies, and `oq evaluate` evaluates requirement targets
93
108
  against a state file. Run `oq` without arguments to see the available commands.
94
109
 
@@ -100,7 +115,7 @@ tests.
100
115
 
101
116
  | Resource | Purpose |
102
117
  |---|---|
103
- | `Project` | Entry point and scope of a Quality Contract |
118
+ | `QualityContract` | Entry point and scope of a Quality Contract |
104
119
  | `QualityRequirement` | A quality expectation and its acceptance target |
105
120
  | `Workflow` | Ordered or dependent stages in a quality process |
106
121
  | `Stage` | A reusable phase of work, verification, or decision |
@@ -111,9 +126,19 @@ tests.
111
126
 
112
127
  ## Contributing
113
128
 
114
- Open an issue before proposing a new core resource. See
115
- [`CONTRIBUTING.md`](CONTRIBUTING.md), [`GOVERNANCE.md`](GOVERNANCE.md),
116
- [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md), and [`SUPPORT.md`](SUPPORT.md).
129
+ Open Quality is shaped by people who use, implement, review, and document
130
+ quality practices. First contributions are welcome: a typo fix, a clearer
131
+ example, a bug report, or feedback about a workflow that the format cannot yet
132
+ express are all useful.
133
+
134
+ 1. Read the [Code of Conduct](CODE_OF_CONDUCT.md).
135
+ 2. Check the [open issues](https://github.com/duanribeiro/open-quality/issues)
136
+ and choose or discuss a change.
137
+ 3. Follow the practical setup and pull-request guide in
138
+ [CONTRIBUTING.md](CONTRIBUTING.md).
139
+
140
+ For help using the project, see [SUPPORT.md](SUPPORT.md). Changes to the core
141
+ format follow the lightweight decision process in [GOVERNANCE.md](GOVERNANCE.md).
117
142
 
118
143
  ## Compatibility and releases
119
144