Skip to content

Commit

Permalink
py-transformers: 4.48.1, new python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
i0ntempest committed Jan 31, 2025
1 parent 97f42ae commit 6514650
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions python/py-transformers/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ PortSystem 1.0
PortGroup github 1.0
PortGroup python 1.0

github.setup huggingface transformers 4.21.2 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
github.setup huggingface transformers 4.48.1 v
revision 0
name py-${github.project}
categories-append textproc
Expand All @@ -28,11 +26,11 @@ long_description Transformers provides thousands of pretrained \

homepage https://huggingface.co/transformers/

python.versions 39 310
python.versions 39 310 311 312

checksums rmd160 fcc0a020b12dd1cc2eedff7f63ca538a64eba388 \
sha256 3c0fb2162e24db7faf8807e591a6d7545e752ce54aa98aaa653eb1661a4d6789 \
size 10238764
checksums rmd160 bc2147fe77d20d23cb19269fdbc3947338b97f28 \
sha256 cf44e7c0b0d921edd2a87e63403e45815df200b33b55786bf7a842c0df186b1f \
size 19561987

if {${name} ne ${subport}} {
python.pep517 yes
Expand Down Expand Up @@ -75,6 +73,7 @@ if {${name} ne ${subport}} {
port:py${python.version}-requests \
port:py${python.version}-sacrebleu \
port:py${python.version}-sacremoses \
port:py${python.version}-safetensors \
port:py${python.version}-scikit-learn \
port:py${python.version}-seqeval \
port:py${python.version}-soundfile \
Expand All @@ -93,7 +92,7 @@ if {${name} ne ${subport}} {
port:py${python.version}-unidic-lite \
port:py${python.version}-uvicorn

if {${python.version} eq 310} {
if {${python.version} ne 39} {
depends_run-replace \
path:${python.pkgd}/tensorflow:py${python.version}-tensorflow \
path:${python.pkgd}/tensorflow:py${python.version}-tensorflow-macos
Expand Down

0 comments on commit 6514650

Please sign in to comment.