You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/developers_guide.html
+47-15Lines changed: 47 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -203,8 +203,13 @@ <h5 class="sidebar-header">On this page</h5>
203
203
204
204
<h2id="setup">Setup</h2>
205
205
206
+
<divclass="alert alert-info">
207
+
Please familiarise yourself with the [contributing guide](https://github.com/pyocd/pyOCD/blob/main/CONTRIBUTING.md)
208
+
before beginning any development on pyOCD or related projects.
209
+
</div>
210
+
206
211
<p>PyOCD developers are strongly recommended to setup a working environment using either
207
-
<ahref="https://virtualenv.pypa.io/en/latest/">virtualenv</a> or the built-in <codeclass="highlighter-rouge">venv</code> module (only use of virtualenv is shown
212
+
<ahref="https://virtualenv.pypa.io/en/latest/">virtualenv</a> or the built-in <codeclass="highlighter-rouge">venv</code> module (only use of <codeclass="highlighter-rouge">venv</code> is shown
208
213
below, but the two are equivalent). After cloning the code, you can setup a virtualenv and install the pyOCD
209
214
dependencies for the current platform by following the detailed steps below.</p>
210
215
@@ -218,7 +223,6 @@ <h2 id="setup">Setup</h2>
218
223
</ul>
219
224
</li>
220
225
<li><ahref="https://git-scm.com/downloads">Install Git</a>. Add to PATH.</li>
221
-
<li><ahref="https://virtualenv.pypa.io/en/latest/">Install virtualenv</a> in your global Python installation, eg: <codeclass="highlighter-rouge">pip install virtualenv</code>. Not needed if using the built-in <codeclass="highlighter-rouge">venv</code> module.</li>
222
226
<li><ahref="https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm">Install GNU Arm Embedded toolchain</a>.
223
227
This provides <codeclass="highlighter-rouge">arm-none-eabi-gdb</code> used for testing the gdbserver. Add to PATH.</li>
<p>If you switch branches, you may need to reinstall.</p>
258
+
259
+
<p>Because the <codeclass="highlighter-rouge">develop</code> branch doesn’t have version tags except older tags from the <codeclass="highlighter-rouge">develop</code> branch point,
260
+
the version number of pyOCD might be significantly out of date. If this is an issue, you can override the
261
+
version by setting the <codeclass="highlighter-rouge">SETUPTOOLS_SCM_PRETEND_VERSION</code> environmment variable to the desired version number
262
+
(without a “v” prefix).</p>
263
+
264
+
<p><strong>Step 4.</strong> Develop</p>
251
265
252
266
<p>See the <ahref="/docs/adding_new_targets.html">porting guide</a> for how to add new devices. Of course, we welcome
253
267
all improvements and changes. See the <ahref="https://github.com/pyocd/pyOCD/blob/main/CONTRIBUTING.md">contributor statement</a> for some guidelines.</p>
254
268
255
-
<p>Normally you should work from the <codeclass="highlighter-rouge">develop</code> branch. See the <ahref="#branch-configuration-policy">branch policy</a> below for
256
-
more information about branches.</p>
269
+
<p>See the <ahref="#branch-configuration-policy">branch policy</a> below for details about branches and which branch you should
270
+
work from.</p>
257
271
258
-
<p><strong>Step 4.</strong> Test</p>
272
+
<p>If you’d like suggestions for something to work on, from small to large, the
273
+
<ahref="https://join.slack.com/t/pyocd/shared_invite/zt-wmy3zvg5-nRLj1GBWYh708TVfIx9Llg">Slack</a> workspace is a great
274
+
way to engage with the community and maintainers.</p>
275
+
276
+
<p><strong>Step 5.</strong> Test</p>
259
277
260
278
<p>To run the unit tests, you can execute the following.</p>
261
279
@@ -274,25 +292,39 @@ <h2 id="steps">Steps</h2>
274
292
$ python ./automated_test.py
275
293
</code></pre></div></div>
276
294
277
-
<p><strong>Step 5.</strong> Pull request</p>
295
+
<p><strong>Step 6.</strong> Pull request</p>
278
296
279
297
<p>Once you are satisfied with your changes and all automated tests pass, please create a
280
-
<ahref="https://github.com/pyocd/pyOCD/pull/new/develop">new pull request</a> against the <codeclass="highlighter-rouge">develop</code> branch on GitHub to share your work.</p>
298
+
<ahref="https://github.com/pyocd/pyOCD/pull/new">new pull request</a> on GitHub to share your work. Please see below for
299
+
which branch to target.</p>
281
300
282
-
<p>Pull requests should be made after a changeset is <ahref="https://www.atlassian.com/git/tutorials/merging-vs-rebasing/workflow-walkthrough">rebased onto <codeclass="highlighter-rouge">develop</code></a>.</p>
301
+
<p>Pull requests should be made after a changeset is
<li><codeclass="highlighter-rouge">main</code>: Stable branch reflecting the most recent release.</li>
290
-
<li><codeclass="highlighter-rouge">develop</code>: Active development branch for the next version. Merged into <codeclass="highlighter-rouge">main</code> at release time.</li>
309
+
<li><codeclass="highlighter-rouge">main</code>: Stable branch reflecting the most recent release. May contain bug fixes not yet released, but no new
310
+
feature commits are allowed.</li>
311
+
<li><codeclass="highlighter-rouge">develop</code>: Active development branch for the next minor version. Merged into <codeclass="highlighter-rouge">main</code> at release time.</li>
291
312
</ul>
292
313
293
314
<p>There may be other development branches present to host long term development of major new features and backwards incompatible changes, such as API changes.</p>
294
315
295
-
<p>Changes should generally be made against the <codeclass="highlighter-rouge">develop</code> branch.</p>
316
+
<p>The branch that your changes should be made against depends on the type and complexity of the changes:</p>
317
+
318
+
<ul>
319
+
<li>Only a bug fix: please target <codeclass="highlighter-rouge">main</code>.</li>
320
+
<li>Any other changes, or a mix of changes: target the <codeclass="highlighter-rouge">develop</code> branch. This is also a good choice if you aren’t sure.</li>
321
+
</ul>
322
+
323
+
<p>Maintainers will cherry-pick commits between <codeclass="highlighter-rouge">main</code> and <codeclass="highlighter-rouge">develop</code> as necessary to keep fixes in sync.</p>
324
+
325
+
<p>If you have any questions about how best to submit changes or the branch policy, please ask in the
326
+
<ahref="https://join.slack.com/t/pyocd/shared_invite/zt-wmy3zvg5-nRLj1GBWYh708TVfIx9Llg">Slack</a> workspace or
327
+
<ahref="https://github.com/pyocd/pyOCD/discussions">GitHub Discussions</a>. We’ll be happy to help.</p>
Copy file name to clipboardExpand all lines: docs/installing.html
+15-8Lines changed: 15 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -204,28 +204,31 @@ <h5 class="sidebar-header">On this page</h5>
204
204
<p>PyOCD requires <ahref="https://python.org/">Python</a> 3.6 or later, and a recent version of <ahref="https://libusb.info/">libusb</a>. It runs on macOS,
205
205
Linux, FreeBSD, and Windows platforms.</p>
206
206
207
-
<p>The latest stable version of pyOCD may be installed via <ahref="https://pip.pypa.io/en/stable/index.html">pip</a>
207
+
<p>The latest stable version of pyOCD may be installed or upgraded via <ahref="https://pip.pypa.io/en/stable/index.html">pip</a>
<p><em>Note: depending on your system, you may need to use <codeclass="highlighter-rouge">python</code> instead of <codeclass="highlighter-rouge">python3</code>.</em></p>
214
214
215
-
<p>The latest pyOCD package is available <ahref="https://pypi.python.org/pypi/pyOCD/">on PyPI</a> as well as
0 commit comments