<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/0a9fee024ab0d176a91dbe7ed5c3bac7b5f80a0f">https://github.com/macports/macports-ports/commit/0a9fee024ab0d176a91dbe7ed5c3bac7b5f80a0f</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 0a9fee024ab0d176a91dbe7ed5c3bac7b5f80a0f
</span>Author: Steven Thomas Smith <s.t.smith@ieee.org>
AuthorDate: Fri Jul 24 22:40:24 2020 -0400
<span style='display:block; white-space:pre;color:#404040;'> py-note-seq: Submission
</span>---
python/py-note-seq/Portfile | 81 +++++++++++++++++++++++++++++++++
python/py-note-seq/files/setup.py.patch | 26 +++++++++++
2 files changed, 107 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-note-seq/Portfile b/python/py-note-seq/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..1feebc81151
</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-note-seq/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,81 @@
</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 note-seq 76e5d6694f5b02e346d93633ca180d9bb5bca22a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# no official release; version from setup.py plus github commit date
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 0.0.0.20200707
</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;'>+platforms darwin
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Use machine learning to create art and music.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description ${description}. This is\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ the home for our serializable NoteSequence\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ representation along with utilities for: creating\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ them from various formats (e.g., MIDI, abc,\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MusicXML)\; manipulating them (e.g., slicing,\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ quantizing) extracting components (e.g., melodies,\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ drum tracks, chord)\; exporting them (e.g., to MIDI\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ or audio)\; or converting them to representations\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ useful for model training (e.g., one-hot tensors).
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://magenta.tensorflow.org/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname ${github.project}-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 3337fe1e411368818038a812b7b760c74f02b5cd \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 64fc0a0fd723898efd9ee36b683fab15559ba2cd8d1c8be8a55b72ee6bd241b7 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 955406
</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;'>+ # diff -NaurdwB ./note-seq-orig/setup.py ./note-seq-new/setup.py | sed -E -e 's/\.\/note-seq-(orig|new)*\/(setup.py)(\.[[:alnum:]]+)*/\.\/setup.py/' > ./setup.py.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles setup.py.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</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}-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}-attrs \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-bokeh \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-intervaltree \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-ipython \
</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}-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}-pandas \
</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}-protobuf3 \
</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;'>+
</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}-pylint \
</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;'>+ 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;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ github.livecheck.regex {([0-9.]+)}
</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-note-seq/files/setup.py.patch b/python/py-note-seq/files/setup.py.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..8cdf2a84be9
</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-note-seq/files/setup.py.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,26 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ./setup.py 2020-07-03 21:21:01.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ./setup.py 2020-07-06 12:24:35.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -27,7 +27,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 'intervaltree >= 2.1.0',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 'IPython',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 'librosa >= 0.6.2',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 'numba == 0.48.0', # temporary fix for librosa import
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ 'numba >= 0.48.0', # temporary fix for librosa import
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 'numpy',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 'pandas >= 0.18.1',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 'pretty_midi >= 0.2.6',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -59,11 +59,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ keywords='note_seq note sequences',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ packages=find_packages(),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ # fix issue DistutilsError('the `allow-hosts` option is not supported '
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install_requires=REQUIRED_PACKAGES,
</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;'>++ # 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;'>++ 'pytest-xdist', # 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>