codecov-cli 10.0.0__tar.gz → 10.1.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.
- {codecov-cli-10.0.0 → codecov_cli-10.1.0}/MANIFEST.in +1 -0
- {codecov-cli-10.0.0/codecov_cli.egg-info → codecov_cli-10.1.0}/PKG-INFO +263 -48
- {codecov-cli-10.0.0 → codecov_cli-10.1.0}/README.md +46 -43
- {codecov-cli-10.0.0 → codecov_cli-10.1.0}/codecov_cli/main.py +2 -2
- codecov_cli-10.1.0/codecov_cli/opentelemetry.py +26 -0
- {codecov-cli-10.0.0 → codecov_cli-10.1.0/codecov_cli.egg-info}/PKG-INFO +263 -48
- codecov_cli-10.1.0/codecov_cli.egg-info/SOURCES.txt +27 -0
- {codecov-cli-10.0.0 → codecov_cli-10.1.0}/codecov_cli.egg-info/entry_points.txt +1 -0
- {codecov-cli-10.0.0 → codecov_cli-10.1.0}/codecov_cli.egg-info/requires.txt +3 -3
- codecov_cli-10.1.0/pyproject.toml +50 -0
- codecov_cli-10.1.0/requirements.txt +65 -0
- codecov_cli-10.1.0/setup.py +27 -0
- codecov_cli-10.1.0/tests/test_codecov_cli.py +19 -0
- codecov_cli-10.1.0/tests/test_helpers.py +11 -0
- codecov_cli-10.1.0/tests/test_types.py +28 -0
- codecov-cli-10.0.0/codecov_cli/commands/__init__.py +0 -0
- codecov-cli-10.0.0/codecov_cli/commands/base_picking.py +0 -72
- codecov-cli-10.0.0/codecov_cli/commands/commit.py +0 -69
- codecov-cli-10.0.0/codecov_cli/commands/create_report_result.py +0 -38
- codecov-cli-10.0.0/codecov_cli/commands/empty_upload.py +0 -39
- codecov-cli-10.0.0/codecov_cli/commands/get_report_results.py +0 -49
- codecov-cli-10.0.0/codecov_cli/commands/labelanalysis.py +0 -461
- codecov-cli-10.0.0/codecov_cli/commands/process_test_results.py +0 -265
- codecov-cli-10.0.0/codecov_cli/commands/report.py +0 -62
- codecov-cli-10.0.0/codecov_cli/commands/send_notifications.py +0 -43
- codecov-cli-10.0.0/codecov_cli/commands/staticanalysis.py +0 -83
- codecov-cli-10.0.0/codecov_cli/commands/upload.py +0 -299
- codecov-cli-10.0.0/codecov_cli/commands/upload_coverage.py +0 -180
- codecov-cli-10.0.0/codecov_cli/commands/upload_process.py +0 -125
- codecov-cli-10.0.0/codecov_cli/helpers/__init__.py +0 -0
- codecov-cli-10.0.0/codecov_cli/helpers/args.py +0 -31
- codecov-cli-10.0.0/codecov_cli/helpers/ci_adapters/__init__.py +0 -63
- codecov-cli-10.0.0/codecov_cli/helpers/ci_adapters/appveyor_ci.py +0 -54
- codecov-cli-10.0.0/codecov_cli/helpers/ci_adapters/azure_pipelines.py +0 -44
- codecov-cli-10.0.0/codecov_cli/helpers/ci_adapters/base.py +0 -102
- codecov-cli-10.0.0/codecov_cli/helpers/ci_adapters/bitbucket_ci.py +0 -42
- codecov-cli-10.0.0/codecov_cli/helpers/ci_adapters/bitrise_ci.py +0 -37
- codecov-cli-10.0.0/codecov_cli/helpers/ci_adapters/buildkite.py +0 -45
- codecov-cli-10.0.0/codecov_cli/helpers/ci_adapters/circleci.py +0 -47
- codecov-cli-10.0.0/codecov_cli/helpers/ci_adapters/cirrus_ci.py +0 -36
- codecov-cli-10.0.0/codecov_cli/helpers/ci_adapters/cloudbuild.py +0 -70
- codecov-cli-10.0.0/codecov_cli/helpers/ci_adapters/codebuild.py +0 -49
- codecov-cli-10.0.0/codecov_cli/helpers/ci_adapters/droneci.py +0 -36
- codecov-cli-10.0.0/codecov_cli/helpers/ci_adapters/github_actions.py +0 -90
- codecov-cli-10.0.0/codecov_cli/helpers/ci_adapters/gitlab_ci.py +0 -56
- codecov-cli-10.0.0/codecov_cli/helpers/ci_adapters/heroku.py +0 -36
- codecov-cli-10.0.0/codecov_cli/helpers/ci_adapters/jenkins.py +0 -38
- codecov-cli-10.0.0/codecov_cli/helpers/ci_adapters/local.py +0 -39
- codecov-cli-10.0.0/codecov_cli/helpers/ci_adapters/teamcity.py +0 -37
- codecov-cli-10.0.0/codecov_cli/helpers/ci_adapters/travis_ci.py +0 -44
- codecov-cli-10.0.0/codecov_cli/helpers/ci_adapters/woodpeckerci.py +0 -36
- codecov-cli-10.0.0/codecov_cli/helpers/config.py +0 -66
- codecov-cli-10.0.0/codecov_cli/helpers/encoder.py +0 -49
- codecov-cli-10.0.0/codecov_cli/helpers/folder_searcher.py +0 -103
- codecov-cli-10.0.0/codecov_cli/helpers/git.py +0 -97
- codecov-cli-10.0.0/codecov_cli/helpers/git_services/__init__.py +0 -14
- codecov-cli-10.0.0/codecov_cli/helpers/git_services/github.py +0 -40
- codecov-cli-10.0.0/codecov_cli/helpers/logging_utils.py +0 -77
- codecov-cli-10.0.0/codecov_cli/helpers/options.py +0 -51
- codecov-cli-10.0.0/codecov_cli/helpers/request.py +0 -198
- codecov-cli-10.0.0/codecov_cli/helpers/validators.py +0 -13
- codecov-cli-10.0.0/codecov_cli/helpers/versioning_systems.py +0 -147
- codecov-cli-10.0.0/codecov_cli/opentelemetry.py +0 -32
- codecov-cli-10.0.0/codecov_cli/plugins/__init__.py +0 -92
- codecov-cli-10.0.0/codecov_cli/plugins/compress_pycoverage_contexts.py +0 -142
- codecov-cli-10.0.0/codecov_cli/plugins/gcov.py +0 -70
- codecov-cli-10.0.0/codecov_cli/plugins/pycoverage.py +0 -135
- codecov-cli-10.0.0/codecov_cli/plugins/types.py +0 -8
- codecov-cli-10.0.0/codecov_cli/plugins/xcode.py +0 -114
- codecov-cli-10.0.0/codecov_cli/runners/__init__.py +0 -80
- codecov-cli-10.0.0/codecov_cli/runners/dan_runner.py +0 -64
- codecov-cli-10.0.0/codecov_cli/runners/pytest_standard_runner.py +0 -184
- codecov-cli-10.0.0/codecov_cli/runners/types.py +0 -33
- codecov-cli-10.0.0/codecov_cli/services/__init__.py +0 -0
- codecov-cli-10.0.0/codecov_cli/services/commit/__init__.py +0 -86
- codecov-cli-10.0.0/codecov_cli/services/commit/base_picking.py +0 -24
- codecov-cli-10.0.0/codecov_cli/services/empty_upload/__init__.py +0 -42
- codecov-cli-10.0.0/codecov_cli/services/report/__init__.py +0 -169
- codecov-cli-10.0.0/codecov_cli/services/staticanalysis/__init__.py +0 -296
- codecov-cli-10.0.0/codecov_cli/services/staticanalysis/analyzers/__init__.py +0 -14
- codecov-cli-10.0.0/codecov_cli/services/staticanalysis/analyzers/general.py +0 -124
- codecov-cli-10.0.0/codecov_cli/services/staticanalysis/analyzers/javascript_es6/__init__.py +0 -122
- codecov-cli-10.0.0/codecov_cli/services/staticanalysis/analyzers/javascript_es6/node_wrappers.py +0 -71
- codecov-cli-10.0.0/codecov_cli/services/staticanalysis/analyzers/python/__init__.py +0 -110
- codecov-cli-10.0.0/codecov_cli/services/staticanalysis/analyzers/python/node_wrappers.py +0 -117
- codecov-cli-10.0.0/codecov_cli/services/staticanalysis/exceptions.py +0 -2
- codecov-cli-10.0.0/codecov_cli/services/staticanalysis/finders.py +0 -47
- codecov-cli-10.0.0/codecov_cli/services/staticanalysis/types.py +0 -19
- codecov-cli-10.0.0/codecov_cli/services/upload/__init__.py +0 -166
- codecov-cli-10.0.0/codecov_cli/services/upload/file_finder.py +0 -295
- codecov-cli-10.0.0/codecov_cli/services/upload/legacy_upload_sender.py +0 -133
- codecov-cli-10.0.0/codecov_cli/services/upload/network_finder.py +0 -43
- codecov-cli-10.0.0/codecov_cli/services/upload/upload_collector.py +0 -184
- codecov-cli-10.0.0/codecov_cli/services/upload/upload_sender.py +0 -219
- codecov-cli-10.0.0/codecov_cli/services/upload_completion/__init__.py +0 -38
- codecov-cli-10.0.0/codecov_cli/services/upload_coverage/__init__.py +0 -90
- codecov-cli-10.0.0/codecov_cli.egg-info/SOURCES.txt +0 -102
- codecov-cli-10.0.0/setup.py +0 -59
- {codecov-cli-10.0.0 → codecov_cli-10.1.0}/LICENSE +0 -0
- {codecov-cli-10.0.0 → codecov_cli-10.1.0}/codecov_cli/__init__.py +0 -0
- {codecov-cli-10.0.0 → codecov_cli-10.1.0}/codecov_cli/fallbacks.py +0 -0
- {codecov-cli-10.0.0 → codecov_cli-10.1.0}/codecov_cli/types.py +0 -0
- {codecov-cli-10.0.0 → codecov_cli-10.1.0}/codecov_cli.egg-info/dependency_links.txt +0 -0
- {codecov-cli-10.0.0 → codecov_cli-10.1.0}/codecov_cli.egg-info/top_level.txt +0 -0
- {codecov-cli-10.0.0 → codecov_cli-10.1.0}/languages/languages.c +0 -0
- {codecov-cli-10.0.0 → codecov_cli-10.1.0}/languages/treesitterjavascript/src/parser.c +0 -0
- {codecov-cli-10.0.0 → codecov_cli-10.1.0}/languages/treesitterjavascript/src/scanner.c +0 -0
- {codecov-cli-10.0.0 → codecov_cli-10.1.0}/languages/treesitterjavascript/src/tree_sitter/parser.h +0 -0
- {codecov-cli-10.0.0 → codecov_cli-10.1.0}/languages/treesitterpython/src/parser.c +0 -0
- {codecov-cli-10.0.0 → codecov_cli-10.1.0}/languages/treesitterpython/src/scanner.cc +0 -0
- {codecov-cli-10.0.0 → codecov_cli-10.1.0}/languages/treesitterpython/src/tree_sitter/parser.h +0 -0
- {codecov-cli-10.0.0 → codecov_cli-10.1.0}/setup.cfg +0 -0
|
@@ -1,14 +1,226 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: codecov-cli
|
|
3
|
-
Version: 10.
|
|
3
|
+
Version: 10.1.0
|
|
4
4
|
Summary: Codecov Command Line Interface
|
|
5
|
-
Author:
|
|
6
|
-
|
|
5
|
+
Author-email: Tom Hu <thomas.hu@sentry.io>
|
|
6
|
+
Maintainer-email: Codecov Support <support@codecov.io>
|
|
7
|
+
License: Apache License
|
|
8
|
+
Version 2.0, January 2004
|
|
9
|
+
http://www.apache.org/licenses/
|
|
10
|
+
|
|
11
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
12
|
+
|
|
13
|
+
1. Definitions.
|
|
14
|
+
|
|
15
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
16
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
17
|
+
|
|
18
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
19
|
+
the copyright owner that is granting the License.
|
|
20
|
+
|
|
21
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
22
|
+
other entities that control, are controlled by, or are under common
|
|
23
|
+
control with that entity. For the purposes of this definition,
|
|
24
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
25
|
+
direction or management of such entity, whether by contract or
|
|
26
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
27
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
28
|
+
|
|
29
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
30
|
+
exercising permissions granted by this License.
|
|
31
|
+
|
|
32
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
33
|
+
including but not limited to software source code, documentation
|
|
34
|
+
source, and configuration files.
|
|
35
|
+
|
|
36
|
+
"Object" form shall mean any form resulting from mechanical
|
|
37
|
+
transformation or translation of a Source form, including but
|
|
38
|
+
not limited to compiled object code, generated documentation,
|
|
39
|
+
and conversions to other media types.
|
|
40
|
+
|
|
41
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
42
|
+
Object form, made available under the License, as indicated by a
|
|
43
|
+
copyright notice that is included in or attached to the work
|
|
44
|
+
(an example is provided in the Appendix below).
|
|
45
|
+
|
|
46
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
47
|
+
form, that is based on (or derived from) the Work and for which the
|
|
48
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
49
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
50
|
+
of this License, Derivative Works shall not include works that remain
|
|
51
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
52
|
+
the Work and Derivative Works thereof.
|
|
53
|
+
|
|
54
|
+
"Contribution" shall mean any work of authorship, including
|
|
55
|
+
the original version of the Work and any modifications or additions
|
|
56
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
57
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
58
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
59
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
60
|
+
means any form of electronic, verbal, or written communication sent
|
|
61
|
+
to the Licensor or its representatives, including but not limited to
|
|
62
|
+
communication on electronic mailing lists, source code control systems,
|
|
63
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
64
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
65
|
+
excluding communication that is conspicuously marked or otherwise
|
|
66
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
67
|
+
|
|
68
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
69
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
70
|
+
subsequently incorporated within the Work.
|
|
71
|
+
|
|
72
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
73
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
74
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
75
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
76
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
77
|
+
Work and such Derivative Works in Source or Object form.
|
|
78
|
+
|
|
79
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
80
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
81
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
82
|
+
(except as stated in this section) patent license to make, have made,
|
|
83
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
84
|
+
where such license applies only to those patent claims licensable
|
|
85
|
+
by such Contributor that are necessarily infringed by their
|
|
86
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
87
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
88
|
+
institute patent litigation against any entity (including a
|
|
89
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
90
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
91
|
+
or contributory patent infringement, then any patent licenses
|
|
92
|
+
granted to You under this License for that Work shall terminate
|
|
93
|
+
as of the date such litigation is filed.
|
|
94
|
+
|
|
95
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
96
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
97
|
+
modifications, and in Source or Object form, provided that You
|
|
98
|
+
meet the following conditions:
|
|
99
|
+
|
|
100
|
+
(a) You must give any other recipients of the Work or
|
|
101
|
+
Derivative Works a copy of this License; and
|
|
102
|
+
|
|
103
|
+
(b) You must cause any modified files to carry prominent notices
|
|
104
|
+
stating that You changed the files; and
|
|
105
|
+
|
|
106
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
107
|
+
that You distribute, all copyright, patent, trademark, and
|
|
108
|
+
attribution notices from the Source form of the Work,
|
|
109
|
+
excluding those notices that do not pertain to any part of
|
|
110
|
+
the Derivative Works; and
|
|
111
|
+
|
|
112
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
113
|
+
distribution, then any Derivative Works that You distribute must
|
|
114
|
+
include a readable copy of the attribution notices contained
|
|
115
|
+
within such NOTICE file, excluding those notices that do not
|
|
116
|
+
pertain to any part of the Derivative Works, in at least one
|
|
117
|
+
of the following places: within a NOTICE text file distributed
|
|
118
|
+
as part of the Derivative Works; within the Source form or
|
|
119
|
+
documentation, if provided along with the Derivative Works; or,
|
|
120
|
+
within a display generated by the Derivative Works, if and
|
|
121
|
+
wherever such third-party notices normally appear. The contents
|
|
122
|
+
of the NOTICE file are for informational purposes only and
|
|
123
|
+
do not modify the License. You may add Your own attribution
|
|
124
|
+
notices within Derivative Works that You distribute, alongside
|
|
125
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
126
|
+
that such additional attribution notices cannot be construed
|
|
127
|
+
as modifying the License.
|
|
128
|
+
|
|
129
|
+
You may add Your own copyright statement to Your modifications and
|
|
130
|
+
may provide additional or different license terms and conditions
|
|
131
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
132
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
133
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
134
|
+
the conditions stated in this License.
|
|
135
|
+
|
|
136
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
137
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
138
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
139
|
+
this License, without any additional terms or conditions.
|
|
140
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
141
|
+
the terms of any separate license agreement you may have executed
|
|
142
|
+
with Licensor regarding such Contributions.
|
|
143
|
+
|
|
144
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
145
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
146
|
+
except as required for reasonable and customary use in describing the
|
|
147
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
148
|
+
|
|
149
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
150
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
151
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
152
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
153
|
+
implied, including, without limitation, any warranties or conditions
|
|
154
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
155
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
156
|
+
appropriateness of using or redistributing the Work and assume any
|
|
157
|
+
risks associated with Your exercise of permissions under this License.
|
|
158
|
+
|
|
159
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
160
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
161
|
+
unless required by applicable law (such as deliberate and grossly
|
|
162
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
163
|
+
liable to You for damages, including any direct, indirect, special,
|
|
164
|
+
incidental, or consequential damages of any character arising as a
|
|
165
|
+
result of this License or out of the use or inability to use the
|
|
166
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
167
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
168
|
+
other commercial damages or losses), even if such Contributor
|
|
169
|
+
has been advised of the possibility of such damages.
|
|
170
|
+
|
|
171
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
172
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
173
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
174
|
+
or other liability obligations and/or rights consistent with this
|
|
175
|
+
License. However, in accepting such obligations, You may act only
|
|
176
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
177
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
178
|
+
defend, and hold each Contributor harmless for any liability
|
|
179
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
180
|
+
of your accepting any such warranty or additional liability.
|
|
181
|
+
|
|
182
|
+
END OF TERMS AND CONDITIONS
|
|
183
|
+
|
|
184
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
185
|
+
|
|
186
|
+
To apply the Apache License to your work, attach the following
|
|
187
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
188
|
+
replaced with your own identifying information. (Don't include
|
|
189
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
190
|
+
comment syntax for the file format. We also recommend that a
|
|
191
|
+
file or class name and description of purpose be included on the
|
|
192
|
+
same "printed page" as the copyright notice for easier
|
|
193
|
+
identification within third-party archives.
|
|
194
|
+
|
|
195
|
+
Copyright [yyyy] [name of copyright owner]
|
|
196
|
+
|
|
197
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
198
|
+
you may not use this file except in compliance with the License.
|
|
199
|
+
You may obtain a copy of the License at
|
|
200
|
+
|
|
201
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
202
|
+
|
|
203
|
+
Unless required by applicable law or agreed to in writing, software
|
|
204
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
205
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
206
|
+
See the License for the specific language governing permissions and
|
|
207
|
+
limitations under the License.
|
|
208
|
+
|
|
7
209
|
Requires-Python: >=3.9
|
|
8
210
|
Description-Content-Type: text/markdown
|
|
9
211
|
License-File: LICENSE
|
|
10
|
-
|
|
11
|
-
|
|
212
|
+
Requires-Dist: click==8.*
|
|
213
|
+
Requires-Dist: httpx==0.27.*
|
|
214
|
+
Requires-Dist: ijson==3.*
|
|
215
|
+
Requires-Dist: pyyaml==6.*
|
|
216
|
+
Requires-Dist: regex
|
|
217
|
+
Requires-Dist: responses==0.21.*
|
|
218
|
+
Requires-Dist: sentry-sdk>=2.20.0
|
|
219
|
+
Requires-Dist: test-results-parser==0.5.*
|
|
220
|
+
Requires-Dist: tree-sitter==0.20.*
|
|
221
|
+
Requires-Dist: wrapt>=1.17.2
|
|
222
|
+
|
|
223
|
+
# CodecovCLI
|
|
12
224
|
|
|
13
225
|
[](https://codecov.io/gh/codecov/codecov-cli)
|
|
14
226
|
[](https://github.com/codecov/codecov-cli/actions/workflows/push_flow.yml)
|
|
@@ -49,12 +261,12 @@ To use codecov-cli in your local machine, or your CI workflows, you need to inst
|
|
|
49
261
|
|
|
50
262
|
`pip install codecov-cli`
|
|
51
263
|
|
|
52
|
-
The above command will download the latest version of Codecov-cli. If you wish to use a specific version, releases can be viewed [here](https://pypi.org/project/codecov-cli/#history).
|
|
264
|
+
The above command will download the latest version of Codecov-cli. If you wish to use a specific version, releases can be viewed [here](https://pypi.org/project/codecov-cli/#history).
|
|
53
265
|
|
|
54
|
-
Note: If you're installing in a `pyenv` environment, you may need to call `pyenv rehash` before the CLI will work.
|
|
266
|
+
Note: If you're installing in a `pyenv` environment, you may need to call `pyenv rehash` before the CLI will work.
|
|
55
267
|
|
|
56
268
|
## As a Binary
|
|
57
|
-
If you would like to use the CLI in an environment that does not have access to Python / PIP, you can install the CLI as a compiled binary. Linux and macOS releases can be found [here](https://cli.codecov.io/), along with SHASUMs and signatures for each released version. Binary releases are also available via [Github releases](https://github.com/codecov/codecov-cli/releases) on this repository.
|
|
269
|
+
If you would like to use the CLI in an environment that does not have access to Python / PIP, you can install the CLI as a compiled binary. Linux and macOS releases can be found [here](https://cli.codecov.io/), along with SHASUMs and signatures for each released version. Binary releases are also available via [Github releases](https://github.com/codecov/codecov-cli/releases) on this repository.
|
|
58
270
|
|
|
59
271
|
You can retrieve the Binary for Linux directly from your command line as follows:
|
|
60
272
|
|
|
@@ -83,7 +295,7 @@ For macos you will want to use the macos distributions of the binary (e.g., http
|
|
|
83
295
|
|
|
84
296
|
|
|
85
297
|
# How to Upload to Codecov
|
|
86
|
-
If desired, the CLI can be used as a replacement for our [NodeJS Binary Uploader](https://github.com/codecov/uploader). To use the CLI to upload from your CI workflow, you need to add these commands:
|
|
298
|
+
If desired, the CLI can be used as a replacement for our [NodeJS Binary Uploader](https://github.com/codecov/uploader). To use the CLI to upload from your CI workflow, you need to add these commands:
|
|
87
299
|
|
|
88
300
|
```
|
|
89
301
|
pip install codecov-cli
|
|
@@ -91,26 +303,29 @@ codecovcli create-commit
|
|
|
91
303
|
codecovcli create-report
|
|
92
304
|
codecovcli do-upload
|
|
93
305
|
```
|
|
94
|
-
OR
|
|
306
|
+
OR
|
|
95
307
|
```
|
|
96
308
|
pip install codecov-cli
|
|
97
309
|
codecovcli upload-process
|
|
98
310
|
```
|
|
99
|
-
codecovcli upload-process is a wrapper for create-commit, create-report and do-upload.
|
|
311
|
+
codecovcli upload-process is a wrapper for create-commit, create-report and do-upload.
|
|
100
312
|
|
|
101
|
-
You can customize the commands with the options aligned with each command.
|
|
313
|
+
You can customize the commands with the options aligned with each command.
|
|
102
314
|
|
|
103
|
-
Note that these commands will automatically search your environment for a `$CODECOV_TOKEN` environment variable and use it if found. If you do not have a repository upload token, or global upload token, stored as an environment variable, you will need to pass it into **each command manually**, like so: `-t {$CODECOV_TOKEN}`.
|
|
315
|
+
Note that these commands will automatically search your environment for a `$CODECOV_TOKEN` environment variable and use it if found. If you do not have a repository upload token, or global upload token, stored as an environment variable, you will need to pass it into **each command manually**, like so: `-t {$CODECOV_TOKEN}`.
|
|
104
316
|
|
|
105
317
|
## How to Get an Upload Token
|
|
106
318
|
The following tokens are suitable for uploading:
|
|
107
319
|
|
|
108
|
-
* The [Repository Upload Token](https://docs.codecov.com/docs/codecov-uploader#upload-token): Found on the settings page of your repository, also viewable on the `/new` page when setting up a repository on Codecov for the first time.
|
|
109
|
-
* The [Global Upload Token](https://docs.codecov.com/docs/codecov-uploader#organization-upload-token): Found on your organization settings page (e.g., `https://app.codecov.io/account/<scm>/<org>/org-upload-token`).
|
|
110
|
-
|
|
320
|
+
* The [Repository Upload Token](https://docs.codecov.com/docs/codecov-uploader#upload-token): Found on the settings page of your repository, also viewable on the `/new` page when setting up a repository on Codecov for the first time.
|
|
321
|
+
* The [Global Upload Token](https://docs.codecov.com/docs/codecov-uploader#organization-upload-token): Found on your organization settings page (e.g., `https://app.codecov.io/account/<scm>/<org>/org-upload-token`).
|
|
111
322
|
|
|
112
323
|
# Usage
|
|
113
324
|
If the installation is successful, running `codecovcli --help` will output the available commands along with the different general options that can be used with them.
|
|
325
|
+
|
|
326
|
+
> [!IMPORTANT]
|
|
327
|
+
> For up-to-date command usage, please check the `codecovcli_commands` [file](https://github.com/codecov/codecov-cli/blob/main/codecovcli_commands)
|
|
328
|
+
|
|
114
329
|
```
|
|
115
330
|
Usage: codecovcli [OPTIONS] COMMAND [ARGS]...
|
|
116
331
|
```
|
|
@@ -122,55 +337,55 @@ Codecov-cli supports user input. These inputs, along with their descriptions and
|
|
|
122
337
|
| `--codecov-yml-path` | The path for your codecov.yml | Optional
|
|
123
338
|
| `--enterprise-url` | Change the upload host (Enterprise use) | Optional
|
|
124
339
|
| `--version` | Codecov-cli's version | Optional
|
|
125
|
-
| `--verbose` or `-v` | Run the cli with verbose logging | Optional
|
|
340
|
+
| `--verbose` or `-v` | Run the cli with verbose logging | Optional
|
|
126
341
|
|
|
127
342
|
# Codecov-cli Commands
|
|
128
|
-
| Command | Description |
|
|
129
|
-
| :---: | :---: |
|
|
130
|
-
| `create-commit` | Saves the commit's metadata in codecov, it's only necessary to run this once per commit
|
|
131
|
-
| `create-report` | Creates an empty report in codecov with initial data e.g. report name, report's commit
|
|
132
|
-
| `do-upload` | Searches for and uploads coverage data to codecov
|
|
343
|
+
| Command | Description |
|
|
344
|
+
| :---: | :---: |
|
|
345
|
+
| `create-commit` | Saves the commit's metadata in codecov, it's only necessary to run this once per commit
|
|
346
|
+
| `create-report` | Creates an empty report in codecov with initial data e.g. report name, report's commit
|
|
347
|
+
| `do-upload` | Searches for and uploads coverage data to codecov
|
|
133
348
|
| `create-report-results` | Used for local upload. It tells codecov that you finished local uploading and want it to calculate the results for you to get them locally.
|
|
134
|
-
| `get-report-results` | Used for local upload. It asks codecov to provide you the report results you calculated with the previous command.
|
|
349
|
+
| `get-report-results` | Used for local upload. It asks codecov to provide you the report results you calculated with the previous command.
|
|
135
350
|
| `pr-base-picking` | Tells codecov that you want to explicitly define a base for your PR
|
|
136
351
|
| `upload-process` | A wrapper for 3 commands. Create-commit, create-report and do-upload. You can use this command to upload to codecov instead of using the previosly mentioned commands.
|
|
137
352
|
| `send-notifications` | A command that tells Codecov that you finished uploading and you want to be sent notifications. To disable automatically sent notifications please consider adding manual_trigger to your codecov.yml, so it will look like codecov: notify: manual_trigger: true.
|
|
138
|
-
>**Note**: Every command has its own different options that will be mentioned later in this doc. Codecov will try to load these options from your CI environment variables, if not, it will try to load them from git, if not found, you may need to add them manually.
|
|
353
|
+
>**Note**: Every command has its own different options that will be mentioned later in this doc. Codecov will try to load these options from your CI environment variables, if not, it will try to load them from git, if not found, you may need to add them manually.
|
|
139
354
|
|
|
140
355
|
|
|
141
356
|
|
|
142
|
-
## create-commit
|
|
357
|
+
## create-commit
|
|
143
358
|
`codecovcli create-commit [Options]`
|
|
144
359
|
|
|
145
360
|
| Option | Description | Usage
|
|
146
|
-
| :---: | :---: | :---: |
|
|
361
|
+
| :---: | :---: | :---: |
|
|
147
362
|
| -C, --sha, --commit-sha | Commit SHA (with 40 chars) | Required
|
|
148
363
|
|--parent-sha | SHA (with 40 chars) of what should be the parent of this commit | Optional
|
|
149
364
|
|-P, --pr, --pull-request-number| Specify the pull request number manually. Used to override pre-existing CI environment variables | Optional
|
|
150
365
|
|-B, --branch | Branch to which this commit belongs to | Optional
|
|
151
366
|
|-r, --slug | owner/repo slug used instead of the private repo token in Self-hosted | Required
|
|
152
|
-
|-t, --token | Codecov upload token | Required
|
|
367
|
+
|-t, --token | Codecov upload token | Required
|
|
153
368
|
|--git-service | Git Provider. Options: github, gitlab, bitbucket, github_enterprise, gitlab_enterprise, bitbucket_server | Required
|
|
154
|
-
|-h, --help | Shows usage, and command options
|
|
369
|
+
|-h, --help | Shows usage, and command options
|
|
155
370
|
|
|
156
371
|
|
|
157
372
|
## create-report
|
|
158
373
|
`codecovcli create-report [OPTIONS]`
|
|
159
374
|
|
|
160
375
|
| Option | Description | Usage
|
|
161
|
-
| :---: | :---: | :---: |
|
|
376
|
+
| :---: | :---: | :---: |
|
|
162
377
|
| -C, --sha, --commit-sha | Commit SHA (with 40 chars) | Required
|
|
163
378
|
|-r, --slug | owner/repo slug used instead of the private repo token in Self-hosted | Required
|
|
164
|
-
|-t, --token | Codecov upload token | Required
|
|
379
|
+
|-t, --token | Codecov upload token | Required
|
|
165
380
|
|--git-service | Git Provider. Options: github, gitlab, bitbucket, github_enterprise, gitlab_enterprise, bitbucket_server | Required
|
|
166
381
|
|--code| The code of the report. This is used in local uploading to isolate local reports from regular or cloud reports uploaded to codecov so they don't get merged. It's basically a name you give to your report e.g. local-report. | Optional
|
|
167
|
-
|-h, --help | Shows usage, and command options
|
|
382
|
+
|-h, --help | Shows usage, and command options
|
|
168
383
|
|
|
169
384
|
## do-upload
|
|
170
385
|
`codecovcli do-upload [OPTIONS]`
|
|
171
386
|
|
|
172
387
|
| Option | Description | Usage
|
|
173
|
-
| :---: | :---: | :---: |
|
|
388
|
+
| :---: | :---: | :---: |
|
|
174
389
|
|-C, --sha, --commit-sha| Commit SHA (with 40 chars) | Required
|
|
175
390
|
|--report-code | The code of the report defined when creating the report. If unsure, leave default | Optional
|
|
176
391
|
|--network-root-folder | Root folder from which to consider paths on the network section default: (Current working directory) | Optional
|
|
@@ -193,13 +408,13 @@ Codecov-cli supports user input. These inputs, along with their descriptions and
|
|
|
193
408
|
|-d, --dry-run | Don't upload files to Codecov | Optional
|
|
194
409
|
|--legacy, --use-legacy-uploader | Use the legacy upload endpoint | Optional
|
|
195
410
|
|--git-service | Git Provider. Options: github, gitlab, bitbucket, github_enterprise, gitlab_enterprise, bitbucket_server | Required
|
|
196
|
-
|-h, --help | Shows usage, and command options
|
|
411
|
+
|-h, --help | Shows usage, and command options
|
|
197
412
|
|
|
198
413
|
## create-report-results
|
|
199
414
|
`codecovcli create-report-results [OPTIONS]`
|
|
200
415
|
|
|
201
416
|
| Option | Description | Usage
|
|
202
|
-
| :---: | :---: | :---: |
|
|
417
|
+
| :---: | :---: | :---: |
|
|
203
418
|
|--commit-sha | Commit SHA (with 40 chars) | Required
|
|
204
419
|
|--code | The code of the report. If unsure, leave default | Required
|
|
205
420
|
|--slug | owner/repo slug | Required
|
|
@@ -211,7 +426,7 @@ Codecov-cli supports user input. These inputs, along with their descriptions and
|
|
|
211
426
|
`codecovcli get-report-results [OPTIONS]`
|
|
212
427
|
|
|
213
428
|
| Option | Description | Usage
|
|
214
|
-
| :---: | :---: | :---: |
|
|
429
|
+
| :---: | :---: | :---: |
|
|
215
430
|
|--commit-sha | Commit SHA (with 40 chars) | Required
|
|
216
431
|
|--code | The code of the report. If unsure, leave default | Required
|
|
217
432
|
|--slug | owner/repo slug | Required
|
|
@@ -223,7 +438,7 @@ Codecov-cli supports user input. These inputs, along with their descriptions and
|
|
|
223
438
|
`codecovcli pr-base-picking [OPTIONS]`
|
|
224
439
|
|
|
225
440
|
| Option | Description | Usage
|
|
226
|
-
| :---: | :---: | :---: |
|
|
441
|
+
| :---: | :---: | :---: |
|
|
227
442
|
|--base-sha | Base commit SHA (with 40 chars) | Required
|
|
228
443
|
|--pr | Pull Request id to associate commit with | Required
|
|
229
444
|
|--slug | owner/repo slug | Required
|
|
@@ -231,11 +446,11 @@ Codecov-cli supports user input. These inputs, along with their descriptions and
|
|
|
231
446
|
|--service | Git provider. Options: github, gitlab, bitbucket, github_enterprise, gitlab_enterprise, bitbucket_server | Optional
|
|
232
447
|
|-h, --help | Shows usage, and command options
|
|
233
448
|
|
|
234
|
-
## send-notifications
|
|
449
|
+
## send-notifications
|
|
235
450
|
`codecovcli send-notifications [OPTIONS]`
|
|
236
451
|
|
|
237
452
|
| Option | Description | Usage
|
|
238
|
-
| :---: | :---: | :---: |
|
|
453
|
+
| :---: | :---: | :---: |
|
|
239
454
|
| -C, --sha, --commit-sha TEXT |Commit SHA (with 40 chars) | Required
|
|
240
455
|
| -r, --slug TEXT |owner/repo slug used instead of the private repo token in Self-hosted | Required
|
|
241
456
|
| -t, --token TEXT |Codecov upload token | Required
|
|
@@ -262,7 +477,7 @@ are ignored by codecov (including README and configuration files)
|
|
|
262
477
|
|
|
263
478
|
# How to Use Local Upload
|
|
264
479
|
|
|
265
|
-
The CLI also supports "dry run" local uploading. This is useful if you prefer to see Codecov status checks and coverage reporting locally, in your terminal, as opposed to opening a PR and waiting for your full CI to run. Local uploads do not interfere with regular uploads made from your CI for any given commit / Pull Request.
|
|
480
|
+
The CLI also supports "dry run" local uploading. This is useful if you prefer to see Codecov status checks and coverage reporting locally, in your terminal, as opposed to opening a PR and waiting for your full CI to run. Local uploads do not interfere with regular uploads made from your CI for any given commit / Pull Request.
|
|
266
481
|
|
|
267
482
|
Local Upload is accomplished as follows:
|
|
268
483
|
|
|
@@ -277,11 +492,11 @@ codecovcli get-report-results --code <CODE>
|
|
|
277
492
|
|
|
278
493
|
Codecov will calculate the coverage results, and return them in your terminal, telling you whether your PR will fail or pass the coverage check.
|
|
279
494
|
|
|
280
|
-
Note: In order for Local Upload to work, it must be used against a commit on the origin repository. Local Upload does not work for arbitrary diffs or uncommitted changes on your local machine.
|
|
495
|
+
Note: In order for Local Upload to work, it must be used against a commit on the origin repository. Local Upload does not work for arbitrary diffs or uncommitted changes on your local machine.
|
|
281
496
|
|
|
282
497
|
# Work in Progress Features
|
|
283
498
|
|
|
284
|
-
The following features are somewhat implemented in code, but are not yet meant for use. These features will be documented once they are fully implemented in the CLI.
|
|
499
|
+
The following features are somewhat implemented in code, but are not yet meant for use. These features will be documented once they are fully implemented in the CLI.
|
|
285
500
|
|
|
286
501
|
## Plugin System
|
|
287
502
|
|
|
@@ -289,11 +504,11 @@ To provide extensibility to some of its commands, the CLI makes use of a plugin
|
|
|
289
504
|
|
|
290
505
|
## Static Analysis
|
|
291
506
|
|
|
292
|
-
The CLI can perform basic static analysis on Python code today. This static analysis is meant to power more future looking Codecov features and, as such, is not required or in active use today. As more functionality dependent on static analysis becomes available for use, we will document static analysis in detail here.
|
|
507
|
+
The CLI can perform basic static analysis on Python code today. This static analysis is meant to power more future looking Codecov features and, as such, is not required or in active use today. As more functionality dependent on static analysis becomes available for use, we will document static analysis in detail here.
|
|
293
508
|
|
|
294
509
|
# Contributions
|
|
295
510
|
|
|
296
|
-
This repository, like all of Codecov's repositories, strives to follow our general [Contributing guidelines](https://github.com/codecov/contributing). If you're considering making a contribution to this repository, we encourage review of our Contributing guidelines first.
|
|
511
|
+
This repository, like all of Codecov's repositories, strives to follow our general [Contributing guidelines](https://github.com/codecov/contributing). If you're considering making a contribution to this repository, we encourage review of our Contributing guidelines first.
|
|
297
512
|
|
|
298
513
|
## Requirements
|
|
299
514
|
|
|
@@ -306,8 +521,8 @@ git submodule update --init
|
|
|
306
521
|
```
|
|
307
522
|
Then, install dependencies with
|
|
308
523
|
```
|
|
309
|
-
pip install -r requirements.txt
|
|
310
|
-
python
|
|
524
|
+
pip install -r requirements.txt
|
|
525
|
+
python -m pip install --editable .
|
|
311
526
|
```
|
|
312
527
|
|
|
313
528
|
The C code shouldn't require any additional setup to get running, but depending on your environment, you may be prompted to install compilers and supporting tools. If errors are generated during installation, it is likely due to missing dependencies / tools required of the C code. In many cases, resulting error messages should be clear enough to determine what is missing and how to install it, but common errors will be collected here as they are encountered.
|
|
@@ -316,7 +531,7 @@ The C code shouldn't require any additional setup to get running, but depending
|
|
|
316
531
|
|
|
317
532
|
There are a few guidelines when developing in this system. Some notable folders:
|
|
318
533
|
|
|
319
|
-
1. `commands` - It's the folder that interacts with the caller. This is where the commands themselves should reside. These commands are not meant to do heavy lifting. They only do wiring, which is mostly parsing the input parameters.
|
|
534
|
+
1. `commands` - It's the folder that interacts with the caller. This is where the commands themselves should reside. These commands are not meant to do heavy lifting. They only do wiring, which is mostly parsing the input parameters.
|
|
320
535
|
2. `services` - It's where the heavy logic resides. It's mostly organized by which command needs them. Commands should generally be thin wrappers around these services.
|
|
321
536
|
3. `helpers` - This is meant for logic that is useful across different commands. For example, logging helpers, or the logic that searches folders.
|
|
322
537
|
|
|
@@ -328,7 +543,7 @@ dependencies in the `--no-binary` flag when building the requirements for the ma
|
|
|
328
543
|
# Releases
|
|
329
544
|
|
|
330
545
|
The standard way to making a new release is the following:
|
|
331
|
-
1) Open a PR that increases the version number in
|
|
546
|
+
1) Open a PR that increases the version number in pyproject.toml. As a rule of thumb, just add one to the micro/patch version (e.g., v0.1.6 -> v0.1.7).
|
|
332
547
|
|
|
333
548
|
2) Get the up-to-date master branch locally and run the `tag.release` command from the Makefile.
|
|
334
549
|
|