<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-contrib.
</pre>
<p><a href="https://github.com/macports/macports-contrib/commit/bbaad8160d634483e488bf40a3f65bb3cf49ae8b">https://github.com/macports/macports-contrib/commit/bbaad8160d634483e488bf40a3f65bb3cf49ae8b</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new bbaad81 pypi2port: default to Python 3.8, do not use Python 2.7 anywhere (#9)
</span>bbaad81 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit bbaad8160d634483e488bf40a3f65bb3cf49ae8b
</span>Author: Herby Gillot <herby.gillot@gmail.com>
AuthorDate: Fri Aug 14 17:06:26 2020 -0400
<span style='display:block; white-space:pre;color:#404040;'> pypi2port: default to Python 3.8, do not use Python 2.7 anywhere (#9)
</span>---
pypi2port/pypi2port.py | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/pypi2port/pypi2port.py b/pypi2port/pypi2port.py
</span><span style='display:block; white-space:pre;color:#808080;'>index c811472..3eda69c 100755
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/pypi2port/pypi2port.py
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/pypi2port/pypi2port.py
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -345,7 +345,7 @@ def search_license(license):
</span> return licenses[i]
<span style='display:block; white-space:pre;background:#ffe0e0;'>-def port_testing(name, portv='27'):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+def port_testing(name, portv='38'):
</span> """ Port Testing function for various phase implementations """
euid = os.geteuid()
if euid:
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -370,7 +370,7 @@ def port_testing(name, portv='27'):
</span> os.execlpe('sudo', *args)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-def port_fetch(name, portv='27'):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+def port_fetch(name, portv='38'):
</span> """ Fetch phase implementation """
try:
command = "sudo port -t fetch dports/python/py-" + \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -382,7 +382,7 @@ def port_fetch(name, portv='27'):
</span> return False
<span style='display:block; white-space:pre;background:#ffe0e0;'>-def port_checksum(name, portv='27'):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+def port_checksum(name, portv='38'):
</span> """ Checksum phase implementation """
try:
command = "sudo port -t checksum dports/python/py-" + \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -394,7 +394,7 @@ def port_checksum(name, portv='27'):
</span> return False
<span style='display:block; white-space:pre;background:#ffe0e0;'>-def port_extract(name, portv='27'):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+def port_extract(name, portv='38'):
</span> """ Checksum phase implementation """
try:
command = "sudo port -t extract dports/python/py-" + \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -406,7 +406,7 @@ def port_extract(name, portv='27'):
</span> return False
<span style='display:block; white-space:pre;background:#ffe0e0;'>-def port_patch(name, portv='27'):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+def port_patch(name, portv='38'):
</span> """ Patch phase implementation """
try:
command = "sudo port -t patch dports/python/py-" + \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -418,7 +418,7 @@ def port_patch(name, portv='27'):
</span> return False
<span style='display:block; white-space:pre;background:#ffe0e0;'>-def port_configure(name, portv='27'):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+def port_configure(name, portv='38'):
</span> """ Configure phase implementation """
try:
command = "sudo port -t configure dports/python/py-" + \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -430,7 +430,7 @@ def port_configure(name, portv='27'):
</span> return False
<span style='display:block; white-space:pre;background:#ffe0e0;'>-def port_build(name, portv='27'):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+def port_build(name, portv='38'):
</span> """ Build phase implementation """
try:
command = "sudo port -t build dports/python/py-" + \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -442,7 +442,7 @@ def port_build(name, portv='27'):
</span> return False
<span style='display:block; white-space:pre;background:#ffe0e0;'>-def port_destroot(name, portv='27'):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+def port_destroot(name, portv='38'):
</span> """ Destroot phase implementation """
try:
command = "sudo port -t destroot dports/python/py-" + \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -454,7 +454,7 @@ def port_destroot(name, portv='27'):
</span> return False
<span style='display:block; white-space:pre;background:#ffe0e0;'>-def port_clean(name, portv='27'):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+def port_clean(name, portv='38'):
</span> """ Clean phase implementation """
try:
command = "sudo port -t clean dports/python/py-" + \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -592,10 +592,10 @@ def create_portfile(dict, file_name, dict2):
</span>
python_vers = dict['requires_python']
if python_vers:
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file.write('python.versions 27 {0}\n\n'.format(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file.write('python.versions 38 {0}\n\n'.format(
</span> dict['requires_python']))
else:
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file.write('python.versions 27 38\n\n')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file.write('python.versions 38\n\n')
</span>
print("Finding dependencies...")
file.write('if {${name} ne ${subport}} {\n')
</pre><pre style='margin:0'>
</pre>