# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                py-flashy
version             0.0.2
revision            0

categories-append   science devel
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {pguyot @pguyot} openmaintainer

description         Minimal solver for deep learning experiments

long_description    Flashy is a minimal solver for deep learning \
                    experiments from Meta AI Research, providing \
                    distributed training utilities and experiment \
                    management.

homepage            https://github.com/fairinternal/flashy

checksums           rmd160  7a8f53aba0886c4e5e1c61216ffc9cb12e7f1c3c \
                    sha256  e7f5afc3130d5af5ddbce1d22f4a729f1900055488cb0b531cdbc190dc79e9fd \
                    size    72442

python.versions     313 314

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-colorlog \
                    port:py${python.version}-dora-search \
                    port:py${python.version}-numpy \
                    port:py${python.version}-pytorch

    # Remove tests directory that conflicts with other packages
    post-destroot {
        delete ${destroot}${python.pkgd}/tests
    }
}
