patchrail 0.1.0__py3-none-any.whl

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 (47) hide show
  1. patchrail/__init__.py +7 -0
  2. patchrail/__main__.py +7 -0
  3. patchrail/ci/__init__.py +7 -0
  4. patchrail/ci/classify.py +888 -0
  5. patchrail/cli.py +8566 -0
  6. patchrail/funded_issues/__init__.py +138 -0
  7. patchrail/funded_issues/algora_board.py +240 -0
  8. patchrail/funded_issues/blocklist.py +112 -0
  9. patchrail/funded_issues/discovery.py +4091 -0
  10. patchrail/funded_issues/importers.py +316 -0
  11. patchrail/funded_issues/source_noise.py +349 -0
  12. patchrail/funded_issues/store.py +459 -0
  13. patchrail/queue/__init__.py +75 -0
  14. patchrail/queue/server.py +273 -0
  15. patchrail/queue/status.py +756 -0
  16. patchrail/queue/store.py +600 -0
  17. patchrail/reviewer_quick_check.py +650 -0
  18. patchrail/schemas/__init__.py +1 -0
  19. patchrail/schemas/application-dossier.v1.schema.json +305 -0
  20. patchrail/schemas/ci-benchmark.v1.schema.json +174 -0
  21. patchrail/schemas/ci-fixture-check.v1.schema.json +122 -0
  22. patchrail/schemas/ci-pilot-metrics.v1.schema.json +164 -0
  23. patchrail/schemas/ci-pilot-summary.v1.schema.json +146 -0
  24. patchrail/schemas/ci-result.v1.schema.json +133 -0
  25. patchrail/schemas/funded-issues-client-report.v1.schema.json +524 -0
  26. patchrail/schemas/funded-issues-recheck-queue.v1.schema.json +333 -0
  27. patchrail/schemas/funded-issues-recheck-summary.v1.schema.json +136 -0
  28. patchrail/schemas/funded-issues-report.v1.schema.json +836 -0
  29. patchrail/schemas/funded-issues-shortlist.v1.schema.json +953 -0
  30. patchrail/schemas/funded-issues-store-status.v1.schema.json +96 -0
  31. patchrail/schemas/funded-issues-store.v1.schema.json +117 -0
  32. patchrail/schemas/queue-audit-event.v1.schema.json +44 -0
  33. patchrail/schemas/queue-audit-summary.v1.schema.json +169 -0
  34. patchrail/schemas/queue-gate-report.v1.schema.json +158 -0
  35. patchrail/schemas/queue-policy-resolution.v1.schema.json +188 -0
  36. patchrail/schemas/queue-policy-scan.v1.schema.json +175 -0
  37. patchrail/schemas/queue-proposal.v1.schema.json +61 -0
  38. patchrail/schemas/queue-review.v1.schema.json +218 -0
  39. patchrail/schemas/queue-status.v1.schema.json +179 -0
  40. patchrail/schemas/queue-work-item.v1.schema.json +64 -0
  41. patchrail/schemas/reviewer-quick-check-artifacts.v1.schema.json +104 -0
  42. patchrail/web_metrics.py +649 -0
  43. patchrail-0.1.0.dist-info/METADATA +279 -0
  44. patchrail-0.1.0.dist-info/RECORD +47 -0
  45. patchrail-0.1.0.dist-info/WHEEL +4 -0
  46. patchrail-0.1.0.dist-info/entry_points.txt +2 -0
  47. patchrail-0.1.0.dist-info/licenses/LICENSE +202 -0
@@ -0,0 +1,279 @@
1
+ Metadata-Version: 2.4
2
+ Name: patchrail
3
+ Version: 0.1.0
4
+ Summary: Local-first maintainer automation for open-source CI triage
5
+ Project-URL: Homepage, https://github.com/patchrail/patchrail
6
+ Project-URL: Documentation, https://github.com/patchrail/patchrail/tree/main/docs
7
+ Project-URL: Changelog, https://github.com/patchrail/patchrail/blob/main/CHANGELOG.md
8
+ Project-URL: Issues, https://github.com/patchrail/patchrail/issues
9
+ Author: Pablo Guillén
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ Keywords: ci,github-actions,maintenance,open-source,triage
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Software Development :: Build Tools
22
+ Classifier: Topic :: Software Development :: Quality Assurance
23
+ Requires-Python: >=3.11
24
+ Provides-Extra: dev
25
+ Requires-Dist: build>=1.2; extra == 'dev'
26
+ Requires-Dist: pytest>=8; extra == 'dev'
27
+ Requires-Dist: ruff>=0.5; extra == 'dev'
28
+ Requires-Dist: twine>=5.1; extra == 'dev'
29
+ Description-Content-Type: text/markdown
30
+
31
+ # PatchRail
32
+
33
+ PatchRail is a local-first maintainer automation toolkit for open-source projects.
34
+ The first public release focuses on CI failure triage: it reads failed CI logs,
35
+ classifies the likely root cause, extracts evidence signals, and emits Markdown,
36
+ JSON, or plain text reports that maintainers can review.
37
+
38
+ PatchRail does not auto-submit pull requests, claim funded issues, or comment on
39
+ third-party repositories. It produces evidence and reviewable suggestions so
40
+ maintainers stay in control.
41
+
42
+ ## Quickstart
43
+
44
+ ### 10-second reviewer demo
45
+
46
+ No install is required to inspect the current behavior. The versioned demo at
47
+ [examples/ci-triage/demo-output.md](examples/ci-triage/demo-output.md) is real
48
+ CLI output from the bundled `examples/ci-triage/dependency-failure.log` fixture,
49
+ and tests compare that file against the command output to prevent drift.
50
+ For a single local reviewer smoke test from a source checkout, run:
51
+
52
+ ```bash
53
+ uv run --extra dev python scripts/reviewer_quick_check.py
54
+ uv run --extra dev patchrail evidence reviewer-packet --out-dir patchrail-reviewer-packet
55
+ uv run --extra dev patchrail evidence verify-reviewer-packet patchrail-reviewer-packet --format markdown
56
+ uv run --extra dev patchrail evidence control-plane-demo --out-dir .patchrail-demo --force --format markdown
57
+ ```
58
+
59
+ The reviewer packet verifier recomputes every listed artifact's byte size and
60
+ SHA-256 digest, rejects symlinked or non-file artifacts, rejects extra files,
61
+ and exits non-zero if the packet has been tampered with or drifted from its
62
+ manifest.
63
+
64
+ The Control Plane demo command generates a local SQLite queue from the bundled
65
+ CI fixture, records approval and rejection gates, writes the reviewer handoff
66
+ artifacts, and reports `local_demo_ready` without network, billing, external
67
+ models, or GitHub write permission.
68
+ The versioned no-install transcript is available at
69
+ [examples/control-plane-demo/demo-output.md](examples/control-plane-demo/demo-output.md),
70
+ and tests regenerate it to prevent drift.
71
+
72
+ PyPI publishing is pending, so do not use `pipx install patchrail` yet. Until
73
+ the package is on PyPI, run the public GitHub source directly:
74
+
75
+ ```bash
76
+ uvx --from git+https://github.com/patchrail/patchrail patchrail --help
77
+ printf 'python -m pytest -q\nFAILED tests/test_app.py::test_ok - AssertionError\n' \
78
+ | uvx --from git+https://github.com/patchrail/patchrail patchrail ci explain
79
+ ```
80
+
81
+ That pre-PyPI smoke test prints:
82
+
83
+ ```markdown
84
+ # PatchRail CI Report
85
+
86
+ - Root cause: `python_test_failure`
87
+ - Confidence: `0.89`
88
+ - Subsystem: Python tests
89
+ - Reproduce: `python -m pytest -q`
90
+ - Suggested action: Reproduce the failing test, patch the narrow behavior drift, and rerun the focused pytest node before broad test runs.
91
+
92
+ ## Evidence signals
93
+
94
+ - `\bpytest\b`
95
+ - `FAILED .*::`
96
+ - `AssertionError`
97
+
98
+ ## Safety
99
+
100
+ PatchRail classified this log locally. It did not create a pull request, post a comment, claim funding, or send data to an external service.
101
+ ```
102
+
103
+ Or install the v0.1.0 release wheel from GitHub Releases in an isolated
104
+ virtual environment:
105
+
106
+ ```bash
107
+ python3 -m venv .patchrail-wheel-smoke
108
+ . .patchrail-wheel-smoke/bin/activate
109
+ python -m pip install https://github.com/patchrail/patchrail/releases/download/v0.1.0/patchrail-0.1.0-py3-none-any.whl
110
+ patchrail --help
111
+ ```
112
+
113
+ After installation, run the local safety check and classify a failed CI log:
114
+
115
+ ```bash
116
+ patchrail doctor
117
+ patchrail ci explain --log failed-github-actions.log
118
+ ```
119
+
120
+ From a source checkout, use the bundled fixture:
121
+
122
+ ```bash
123
+ uv run --extra dev patchrail doctor
124
+ uv run --extra dev patchrail ci explain --log examples/ci-triage/dependency-failure.log
125
+ ```
126
+
127
+ The same versioned demo can be regenerated locally with:
128
+
129
+ ```bash
130
+ uv run --extra dev patchrail ci explain --log examples/ci-triage/dependency-failure.log --format markdown
131
+ ```
132
+
133
+ Example output:
134
+
135
+ ```markdown
136
+ # PatchRail CI Report
137
+
138
+ - Root cause: `python_dependency_resolution`
139
+ - Confidence: `0.89`
140
+ - Subsystem: Python dependency installation
141
+ - Reproduce: `python -m pip install -r requirements.txt`
142
+ - Suggested action: Pin or relax the conflicting dependency range, then rerun
143
+ the same install command and the affected tests.
144
+ ```
145
+
146
+ ## Why maintainers use PatchRail
147
+
148
+ - Turn long CI logs into concise root-cause reports.
149
+ - Keep CI log processing local by default.
150
+ - Emit Markdown for humans and JSON for automation.
151
+ - Preserve a human approval boundary for write actions.
152
+ - Use the classifier as a building block for reviewable agent workflows.
153
+
154
+ ## Current scope
155
+
156
+ | Area | Status | Notes |
157
+ | --- | --- | --- |
158
+ | CI failure triage | Beta | GitHub Actions-style logs and common open-source toolchains |
159
+ | Markdown/JSON reports | Beta | Suitable for local review or manually pasted reports |
160
+ | Local queue/control plane | Experimental | SQLite-backed work items with human approval states |
161
+ | Funded issue discovery | Planned | Read-only, later, and explicitly anti-abuse |
162
+
163
+ ## Safety
164
+
165
+ PatchRail is local-first. The CI classifier does not require billing, a GitHub
166
+ App, repo write permissions, or an external model call. Write actions are outside
167
+ the v0.1 scope and must remain human-approved.
168
+
169
+ Redact logs before sharing fixtures or reports:
170
+
171
+ ```bash
172
+ uv run --extra dev patchrail doctor --format markdown
173
+ uv run --extra dev patchrail redact --log failed.log > failed.redacted.log
174
+ uv run --extra dev patchrail ci explain --redact --log failed.log
175
+ uv run --extra dev patchrail ci pilot-pack --log failed.log --out-dir patchrail-pilot-pack
176
+ uv run --extra dev patchrail ci pilot-summary --pack patchrail-pilot-pack --ci-provider "GitHub Actions" --toolchain Python
177
+ uv run --extra dev patchrail schema ci-result > ci-result.schema.json
178
+ uv run --extra dev patchrail ci benchmark examples/ci-triage --format markdown
179
+ ```
180
+
181
+ Run the public checks from a fresh checkout:
182
+
183
+ ```bash
184
+ uv run --extra dev pytest -q
185
+ uv run --extra dev ruff check .
186
+ uv run --extra dev patchrail ci benchmark examples/ci-triage --format json
187
+ uv run --extra dev patchrail evidence snapshot --format markdown
188
+ uv run --extra dev patchrail evidence application-gate --format markdown
189
+ uv run --extra dev patchrail evidence application-dossier --format markdown
190
+ uv run --extra dev patchrail evidence release-readiness --clean-dist --format markdown
191
+ uv run --extra dev patchrail queue policy-scan --format markdown
192
+ uv run --extra dev patchrail queue policy-resolve --format markdown
193
+ ```
194
+
195
+ See [ETHICS.md](ETHICS.md), [SECURITY.md](SECURITY.md), and
196
+ [docs/threat-model.md](docs/threat-model.md).
197
+
198
+ ## Documentation
199
+
200
+ - [Quickstart](docs/quickstart.md)
201
+ - [CI Janitor](docs/ci-janitor.md)
202
+ - [CI Failure Zoo](docs/ci-failure-zoo.md)
203
+ - [Maintainer pilot guide](docs/pilot-guide.md)
204
+ - [Consent-only pilot request package](docs/pilot-request-package.md)
205
+ - [Consent-only pilot outcome example](examples/pilot-outcome/README.md)
206
+ - [Adopters](ADOPTERS.md)
207
+ - [Metrics](docs/metrics.md)
208
+ - [GitHub Actions CI triage](docs/github-action.md)
209
+ - [Agent Control Plane](docs/agent-control-plane.md)
210
+ - [Agent Control Plane demo transcript](examples/control-plane-demo/README.md)
211
+ - [API reference](docs/api-reference.md)
212
+ - [Codex workflows](docs/codex-workflows.md)
213
+ - [Reviewable automation workflows](docs/agent-workflows.md)
214
+ - [Public maintenance workflow ledger](docs/public-workflow-ledger.md)
215
+ - [Agent skills](.agents/skills)
216
+ - [Threat model](docs/threat-model.md)
217
+ - [Funded issue ethics](docs/funded-issues-ethics.md)
218
+ - [Roadmap](docs/roadmap.md)
219
+ - [Release process](docs/release-process.md)
220
+ - [v0.1.0 release evidence](docs/release-v0.1.0-evidence.md)
221
+ - [v0.2.0 release evidence](docs/release-v0.2.0-evidence.md)
222
+ - [v0.3.0 release evidence](docs/release-v0.3.0-evidence.md)
223
+ - [v0.4.0 release evidence](docs/release-v0.4.0-evidence.md)
224
+ - [Codex for Open Source evidence](docs/openai-open-source-evidence.md)
225
+ - [Open source evidence tracker](docs/open-source-program-evidence.md)
226
+
227
+ ## Contributing
228
+
229
+ The easiest contribution is a sanitized CI failure fixture. See
230
+ [CONTRIBUTING.md](CONTRIBUTING.md) and the
231
+ [maintainer pilot guide](docs/pilot-guide.md).
232
+ If you are not opening a pull request yet, use the
233
+ [CI failure fixture issue template](.github/ISSUE_TEMPLATE/ci_failure_fixture.md)
234
+ with a redacted log excerpt and the `fixture-check` result.
235
+
236
+ If you are testing PatchRail on a repository you maintain, use the adopter
237
+ report issue template. `patchrail ci pilot-pack` creates a local redacted pack
238
+ for that review path. `patchrail ci pilot-summary` creates a safe outcome
239
+ snippet and keeps repository names private unless
240
+ `--repository-mention-approved yes` is set. Public adopter listings require
241
+ explicit permission. The
242
+ [consent-only pilot request package](docs/pilot-request-package.md) has a
243
+ copyable maintainer checklist and intake rules for pilots that should become
244
+ public evidence.
245
+
246
+ When you have multiple reviewed summaries, aggregate them without exposing
247
+ private repository names:
248
+
249
+ ```bash
250
+ uv run --extra dev patchrail ci pilot-metrics pilot-summary-*.json --format markdown
251
+ ```
252
+
253
+ To refresh the local evidence view across CI Janitor, the read-only action,
254
+ Agent Control Plane, Funded Issue Scout, release evidence, and adopter gaps:
255
+
256
+ ```bash
257
+ uv run --extra dev patchrail evidence snapshot --format markdown
258
+ ```
259
+
260
+ Before drafting an external program application, run the fail-closed gate:
261
+
262
+ ```bash
263
+ uv run --extra dev patchrail evidence application-gate --format markdown
264
+ uv run --extra dev patchrail evidence application-dossier --format markdown
265
+ ```
266
+
267
+ The gate exits non-zero until PyPI telemetry, permissioned external evidence,
268
+ and visible review links are real rather than placeholder-derived.
269
+ The dossier command compiles local evidence, upstream contribution links,
270
+ blocked dependencies, reviewer_quick_checks, and the submission policy, but it
271
+ does not submit the application and keeps maintainer tap required. The quick
272
+ checks include the 10-second no-install demo, the pre-PyPI source install
273
+ smoke, the fail-closed application gate, and the local application dossier; all
274
+ but the optional GitHub source install run without network access or write
275
+ actions.
276
+
277
+ ## License
278
+
279
+ Apache-2.0.
@@ -0,0 +1,47 @@
1
+ patchrail/__init__.py,sha256=U-tj3a2jtoBFmUeBcIoVwwLiLdnlvaeoFxO6IXThsTs,118
2
+ patchrail/__main__.py,sha256=nbdP6zFlOqcCirgxoIQ6HiWVhdh7URm5GOWr5_EwmBk,116
3
+ patchrail/cli.py,sha256=SqAHCEGuBz8F9EdWpT1poqhSTBrQ0R213mN8VnWkQfo,340856
4
+ patchrail/reviewer_quick_check.py,sha256=6P-u2wKE0n1hmMxco7ONhyVh9eLu2ZNqJBrQMVDUSPA,24688
5
+ patchrail/web_metrics.py,sha256=dBuV4heKdsFOs37CzJu06mJRLFuM1lQtH1xmTyo1GOg,22458
6
+ patchrail/ci/__init__.py,sha256=w8zeiWzFtuOwhEmt2qgDVl2boeVh2S3mxV2g93a8F-o,166
7
+ patchrail/ci/classify.py,sha256=cYrszBZN4ngDn_yTj5qfe0bvZUbqZR_0sMuFsAzsNyo,37822
8
+ patchrail/funded_issues/__init__.py,sha256=UVcqaq-yzYOUfSMN7kXrWvPPsp1IO2-piEu_OSfFgGQ,3917
9
+ patchrail/funded_issues/algora_board.py,sha256=uJ4KzBUznr5z0wEAa89LD72R7AKSM_CCFNAOdJ8OAK4,9796
10
+ patchrail/funded_issues/blocklist.py,sha256=UwfyL2tlAFDucRwyHTXblLcxXaJ9yVvBbcPQ2nZlD68,4385
11
+ patchrail/funded_issues/discovery.py,sha256=oVfzP7i5VZGsppLL1hl_sFbh2BNoipZk_4NE2HBMF6c,161069
12
+ patchrail/funded_issues/importers.py,sha256=Gyshof1P2DCy58wM-ncnhHa0kPN7tGNMQp4W4mfZcDw,11182
13
+ patchrail/funded_issues/source_noise.py,sha256=kGyiR8ZT--4PqWP9OkrxvFpoIdj_b5rCNeVsSkBx5iI,13985
14
+ patchrail/funded_issues/store.py,sha256=X6zS5oeSkWqSI8o2ESZfSaiQC9NqDnIhfHtygLWBZy8,16398
15
+ patchrail/queue/__init__.py,sha256=tdsLaU_UOn-wCVfUAnK8bsqieYpINivT5rZT-K44wc0,1785
16
+ patchrail/queue/server.py,sha256=SGs0BV-Lct-ZuCNx16CPZbfadxZye-c-EmJa7md36QQ,9644
17
+ patchrail/queue/status.py,sha256=5WQDIbQ_rP3Au9KrRkyqMRWG2WletCYfa9gcYWS9C30,29597
18
+ patchrail/queue/store.py,sha256=fxCgGA-_hbG110iPA-yTb05KZqB6IqUqw8U8vzcqX9I,17526
19
+ patchrail/schemas/__init__.py,sha256=gy-3XqhOLCWBmyXHVwBPiMcGolLliTSRwj1dfxFZofI,53
20
+ patchrail/schemas/application-dossier.v1.schema.json,sha256=9BSJEbXKlvH-WLnN__hWZbZ_QSwDm4QQvCEHpB7tL_A,7596
21
+ patchrail/schemas/ci-benchmark.v1.schema.json,sha256=c8mTxe80lllX0999MkK2nIEQP6EL9cilS3_uLKazsB0,4179
22
+ patchrail/schemas/ci-fixture-check.v1.schema.json,sha256=0cQFsjehc10D9QkZ0SIqYyr5WM7ZjiQVu0i6BWgMOiU,2870
23
+ patchrail/schemas/ci-pilot-metrics.v1.schema.json,sha256=RxgtubsrnUu8CmW2qn5MhQz0oJysN-EVIdsc4a34xLk,3955
24
+ patchrail/schemas/ci-pilot-summary.v1.schema.json,sha256=GnraDlfzcVUTSchEQuQ6ZCNNYyLLpzhBw8mEAHFo9e8,3488
25
+ patchrail/schemas/ci-result.v1.schema.json,sha256=jELAASZEMc3LuA0LU_HdEIXKGqTJc7AR1rZA2qV7QxI,3405
26
+ patchrail/schemas/funded-issues-client-report.v1.schema.json,sha256=4OpUOOphnJCoYDJ5-78vATbnZytWbGyugtTs1dgq3UQ,11777
27
+ patchrail/schemas/funded-issues-recheck-queue.v1.schema.json,sha256=CipLu4S2a5hbaGmEIWOTkG39yEY6Dg3Pjy98H1VYG6M,8575
28
+ patchrail/schemas/funded-issues-recheck-summary.v1.schema.json,sha256=fm4T82Er6yCVXvy0DBnXqkX18IdgP95UTDjpkIo_3Nc,3724
29
+ patchrail/schemas/funded-issues-report.v1.schema.json,sha256=exnV3xoeFeHJLNPFXGgRKji-8eGbeAjuT6H9FtjVTjk,25713
30
+ patchrail/schemas/funded-issues-shortlist.v1.schema.json,sha256=TaGEeTbzf896AQ9GGtpAdhmC16TZNGKm7pG39TE7Qp8,29247
31
+ patchrail/schemas/funded-issues-store-status.v1.schema.json,sha256=3JJuAE0K92ulfeFb7iQb2eoL0jcXlU5D6d-jxPh2UXI,2415
32
+ patchrail/schemas/funded-issues-store.v1.schema.json,sha256=Da1Lg37pzdd3eZwbXdpt3tfRUT3qYIq29Rj2sNxFy6c,3260
33
+ patchrail/schemas/queue-audit-event.v1.schema.json,sha256=Wj4kVOenLaNyWZXq6wvebJ0i6iSSJK3iNqshpZFW-9k,1010
34
+ patchrail/schemas/queue-audit-summary.v1.schema.json,sha256=JepwgdwmIiqHoSZzSAChFJlE-XZLUzGzGUDazsXZbWg,4112
35
+ patchrail/schemas/queue-gate-report.v1.schema.json,sha256=DcSQPM-yqvzCcr4W9s80t9FkhJrTg2mKzzjQUqmdQis,4863
36
+ patchrail/schemas/queue-policy-resolution.v1.schema.json,sha256=WXxKfQms53RsXs2KT5hdCkuQD6AAYR8KmO4haeXcFyQ,5140
37
+ patchrail/schemas/queue-policy-scan.v1.schema.json,sha256=qPjad93HDIRe8trWa8b-HsC9vSjqH3t2IjURPLFGDWM,4543
38
+ patchrail/schemas/queue-proposal.v1.schema.json,sha256=K3vXchk-_bZtPgHgCc3QCBA0l27EI1aVxF0KkfSRVaY,1371
39
+ patchrail/schemas/queue-review.v1.schema.json,sha256=cNj6akuiYDGZYzXW7THkU-4kTU1on7Gwvg6i9UFcauE,5948
40
+ patchrail/schemas/queue-status.v1.schema.json,sha256=pPtWy4mkWghao8-05tYRbtkSVfkEjLuqX7AFzhFH8ZM,4394
41
+ patchrail/schemas/queue-work-item.v1.schema.json,sha256=bzERa0OVK_91hmdA8YFIIxdmJGLC-6drLLbrvXl-pvY,1426
42
+ patchrail/schemas/reviewer-quick-check-artifacts.v1.schema.json,sha256=5bjxkDk80mGq6Jx__GfAUO0AbLYaxyO6PzGY8cHGvZ8,3211
43
+ patchrail-0.1.0.dist-info/METADATA,sha256=VhokDWj4x7_jHU8wpZzHK7iOY7FkZnwvM6im5Nz3f_4,11359
44
+ patchrail-0.1.0.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
45
+ patchrail-0.1.0.dist-info/entry_points.txt,sha256=q4Z4wO73XW-bs80gJNJk3bA-amuzkUAz9iclp0duxgY,49
46
+ patchrail-0.1.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
47
+ patchrail-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.30.1
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ patchrail = patchrail.cli:main
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.