<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/7c262b039221a4c303856855473bf8fe578ad424">https://github.com/macports/macports-ports/commit/7c262b039221a4c303856855473bf8fe578ad424</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 7c262b039221a4c303856855473bf8fe578ad424
</span>Author: Steven Thomas Smith <s.t.smith@ieee.org>
AuthorDate: Fri Jul 24 22:34:52 2020 -0400
<span style='display:block; white-space:pre;color:#404040;'> py-magenta: Submission
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> * Depends upon: https://github.com/macports/macports-ports/pull/7840
</span>---
python/py-magenta/Portfile | 95 +++++++++++++++++++++++++++++++++
python/py-magenta/files/setup.cfg.patch | 8 +++
python/py-magenta/files/setup.py.patch | 13 +++++
3 files changed, 116 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-magenta/Portfile b/python/py-magenta/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..a53d7def9d2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-magenta/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,95 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup python 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup magenta magenta 2.1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name py-${github.project}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories-append audio
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license Apache-2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Magenta: Music and Art Generation with Machine Intelligence
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description Magenta is a research project exploring the role\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ of machine learning in the process of creating art\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ and music. Primarily this involves developing new\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ deep learning and reinforcement learning\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ algorithms for generating songs, images, drawings,\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ and other materials. But it's also an exploration\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ in building smart tools and interfaces that allow\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ artists and musicians to extend (not replace!)\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ their processes using these models.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 ba439f067e7974b5b508e1154599d1e82a4ca450 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 f3cd8d8ef556cd1ca19ad1d307e79fd1089f0600738d4738b545b3b5b07151ba \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 19670492
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+python.versions 37 38
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${name} ne ${subport}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-pip \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-pyobjc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-pytest-runner \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-wheel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-pylint \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-setuptools
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_run-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-absl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-apache-beam \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-dm-sonnet \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-imageio \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-librosa \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-matplotlib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-mido \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-mir_eval \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-note-seq \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-numba \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-numpy \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-Pillow \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-pygtrie \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-pretty-midi \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-scikit-image \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-scipy \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-six \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-sk-video \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-sox \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-tensor2tensor \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-tensorflow \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-tensorflow-datasets \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-tensorflow-probability \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-tf-slim \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-wheel \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:sox \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_test-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-pytest \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-pytest-xdist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # diff -NaurdwB ./py-magenta-orig/setup.py ./py-magenta-new/setup.py | sed -E -e 's/\.\/py-magenta-(orig|new)*\/(setup\.py)(\.[[:alnum:]]+)*/\.\/setup.py/' > ./setup.py.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles setup.cfg.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ setup.py.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.cmd py.test-${python.branch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.target
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.env-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PYTHONPATH=${worksrcpath}/build/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set docdir ${prefix}/share/doc/${subport}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${docdir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 -W ${worksrcpath} LICENSE README.md \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${docdir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.type none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-magenta/files/setup.cfg.patch b/python/py-magenta/files/setup.cfg.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..3ad0d8f9c5e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-magenta/files/setup.cfg.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ./setup.cfg 2020-07-24 08:46:14.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ./setup.cfg 2020-07-24 08:46:47.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2,4 +2,4 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test=pytest
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [tool:pytest]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-addopts=--disable-warnings --pylint
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++addopts=--disable-warnings
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-magenta/files/setup.py.patch b/python/py-magenta/files/setup.py.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..f6b7430b352
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-magenta/files/setup.py.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ./setup.py 2020-07-24 08:14:22.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ./setup.py 2020-07-24 08:24:54.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -148,10 +148,4 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ package_data={
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 'magenta': ['models/image_stylization/evaluation_images/*.jpg'],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ },
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- setup_requires=['pytest-runner', 'pytest-pylint'],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- tests_require=[
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 'pytest >= 5.2.0',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 'pytest-xdist < 1.30.0', # 1.30 has problems working with pylint plugin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 'pylint >= 2.4.2',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ )
</span></pre><pre style='margin:0'>
</pre>