<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-guide.

</pre>
<p><a href="https://github.com/macports/macports-guide/commit/6245a4b95fc2b0350b4b7e3841a3cecdf51be579">https://github.com/macports/macports-guide/commit/6245a4b95fc2b0350b4b7e3841a3cecdf51be579</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 6245a4b95fc2b0350b4b7e3841a3cecdf51be579
</span>Author: reneeotten <reneeotten@users.noreply.github.com>
AuthorDate: Sat Jun 11 22:55:42 2022 -0400

<span style='display:block; white-space:pre;color:#404040;'>    guide: update Python versions
</span>---
 guide/xml/portgroup-python.xml | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/guide/xml/portgroup-python.xml b/guide/xml/portgroup-python.xml
</span><span style='display:block; white-space:pre;color:#808080;'>index 6c23411..72e49c6 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/guide/xml/portgroup-python.xml
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/guide/xml/portgroup-python.xml
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -23,15 +23,15 @@
</span>           <para>Defines the python versions supported by this port. If the
           port name starts with <quote>py-</quote>, then a subport will be defined for each
           version in the list. For example, if a port named <quote>py-foo</quote> declares
<span style='display:block; white-space:pre;background:#ffe0e0;'>-          <code>python.versions 26 27</code>, subports <quote>py26-foo</quote> and <quote>py27-foo</quote> will be
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-          created, and will depend on python26 and python27 respectively.</para>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+          <code>python.versions 39 310</code>, subports <quote>py39-foo</quote> and <quote>py310-foo</quote> will be
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+          created, and will depend on python39 and python310, respectively.</para>
</span>           <para>If the port name does not start with <quote>py-</quote>, it is interpreted
           as an application written in python rather than a python module. In
           this case, no subports are defined, and <varname>python.versions</varname> defaults to
           the value of <varname>python.default_version</varname>, which must be set. For example,
<span style='display:block; white-space:pre;background:#ffe0e0;'>-          if a port named <quote>mercurial</quote> sets <code>python.default_version 27</code>, then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-          <varname>python.versions</varname> will automatically be set to <quote>27</quote>, and a dependency
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-          on python27 will be added.</para>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+          if a port named <quote>mercurial</quote> sets <code>python.default_version 310</code>, then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+          <varname>python.versions</varname> will automatically be set to <quote>310</quote>, and a dependency
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+          on python310 will be added.</para>
</span> 
           <itemizedlist>
             <listitem>
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -40,7 +40,7 @@
</span>             <listitem>
               <para>Example:</para>
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-              <programlisting>python.versions     25 26 27</programlisting>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+              <programlisting>python.versions     38 39 310</programlisting>
</span>             </listitem>
           </itemizedlist>
         </listitem>
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -51,7 +51,7 @@
</span>         <listitem>
           <para>For modules (i.e., name starts with <quote>py-</quote>), this sets the
           subport that will be installed if the user asks to install <quote>py-foo</quote>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-          rather than, e.g., <quote>py26-foo</quote> or <quote>py27-foo</quote>. If not explicitly set, a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+          rather than, e.g., <quote>py39-foo</quote> or <quote>py310-foo</quote>. If not explicitly set, a
</span>           reasonable default is chosen from the list in <varname>python.versions</varname>.</para>
           <para>For applications (i.e., name does not start with <quote>py-</quote>), this chooses
           which version of python to use, and must be set. It can be changed
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -64,7 +64,7 @@
</span>             <listitem>
               <para>Example:</para>
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-              <programlisting>python.default_version     39</programlisting>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+              <programlisting>python.default_version     310</programlisting>
</span>             </listitem>
           </itemizedlist>
         </listitem>
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -258,8 +258,8 @@
</span> 
         <listitem>
           <para>The python version in use in the current subport, in normal
<span style='display:block; white-space:pre;background:#ffe0e0;'>-          dotted notation. For example, if <code>python.version</code> is <quote>26</quote>,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-          <code>python.branch</code> will be <quote>2.6</quote>.</para>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+          dotted notation. For example, if <code>python.version</code> is <quote>310</quote>,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+          <code>python.branch</code> will be <quote>3.10</quote>.</para>
</span>         </listitem>
       </varlistentry>
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -287,7 +287,7 @@
</span>         <listitem>
           <para>The Python dynamic library path, i.e.,
           <filename>${python.prefix}/Python</filename> (framework builds) or
<span style='display:block; white-space:pre;background:#ffe0e0;'>-          <filename>${prefix}/lib/libpython2.4.dylib</filename> (python24).</para>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+          <filename>${prefix}/lib/libpython2.7.dylib</filename> (python27).</para>
</span>         </listitem>
       </varlistentry>
 
</pre><pre style='margin:0'>

</pre>