Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    martinRenou
    @martinRenou
    @wolfv is it normal that boa render does not output anything?

    It outputs this:

    
               _
              | |__   ___   __ _
              | '_ \ / _ \ / _` |
              | |_) | (_) | (_| |
              |_.__/ \___/ \__,_|
    
    Updating build index: /home/martin/miniconda3/envs/boa/conda-bld
    
    No numpy version specified in conda_build_config.yaml.  Falling back to default numpy value of 1.11
    WARNING:conda_build.metadata:No numpy version specified in conda_build_config.yaml.  Falling back to default numpy value of 1.11
    
    VARIANTS:
    
    Output: grayskull
    -----------------
    
    =========  ==================
    Package    Variant versions
    =========  ==================
    =========  ==================
    
    Output: greyskull
    -----------------
    
    =========  ==================
    Package    Variant versions
    =========  ==================
    =========  ==================
    
    
    Output: grayskull 0.7.3 BN: 1
    Variant: 
    Build:
    Host:
     - pip                                                                      None
     - python                         >=3.7                                     None
     - setuptools                     >=30.3.0                                  None
     - setuptools_scm                                                           None
    Run:
     - colorama                                                                 None
     - rapidfuzz                      >=0.7.6                                   None
     - pip                                                                      None
     - progressbar2                                                             None
     - python                         >=3.7                                     None
     - requests                                                                 None
     - ruamel.yaml                    >=0.15.3                                  None
     - ruamel.yaml.jinja2                                                       None
     - setuptools                     >=30.3.0                                  None
     - stdlib-list                                                              None
     - git                                                                      None
    
    Output: greyskull 0.7.3 BN: 1
    Variant: 
    Build:
    Host:
    Run:
     - grayskull                      PS PIN_SUBPACKAGE[x.x.x,False]                      None

    But it does not generate any file

    or maybe I'm not looking at the right place
    Wolf Vollprecht
    @wolfv
    nope that is correct for now
    martinRenou
    @martinRenou
    ok
    I'm trying to find a way to test it
    Wolf Vollprecht
    @wolfv
    unfortunately boa render doesn't exactly do "a lot" as of now
    martinRenou
    @martinRenou
    I thought maybe testing that boa outputs the right files would be a good approach
    Wolf Vollprecht
    @wolfv
    usually it should put all version numbers in there
    martinRenou
    @martinRenou
    ok
    Wolf Vollprecht
    @wolfv
    thats what conda render does. the issue is that we'd need to actually download all required packages
    because only in the packages is a reliable source for run_exports data ...
    martinRenou
    @martinRenou
    ok
    do you have an idea of how I should write tests for boa?
    Should I test the Python API directly?
    Or should I do functional testing with the cli
    Wolf Vollprecht
    @wolfv
    I think for now we can do two things:
    add 2-3 recipes and check that they build
    and for the variant stuff we should add some python based tests to make sure that we get it right
    there are some hairy bits in conda-build right now ...
    I would like to make it precise and simplify as much as possible without loosing too much functionality
    martinRenou
    @martinRenou

    check that they build

    This means only checking that the boa build does not return an error code?

    Wolf Vollprecht
    @wolfv
    yeah that, and we could unpack the finished package and check if the contents make sense
    martinRenou
    @martinRenou

    and for the variant stuff

    What are those variant stuffs you are talking about?

    Wolf Vollprecht
    @wolfv
    e.g. is there an info/index.json, info/files....
    conda supports building multiple variants of a given package
    e.g. you could define in you conda_build_config that you want to build against: numpy 1.14, 1.15, .1.18
    and then you get 3 variants of the same package
    martinRenou
    @martinRenou
    oh yeah I remember this, like mpi variants for example?
    Wolf Vollprecht
    @wolfv
    yep
    martinRenou
    @martinRenou
    ok
    Wolf Vollprecht
    @wolfv
    but then if you have two variants, it becomes a matrix
    with 3 it becomes a cube etc :)
    but then there is also zip-keys
    martinRenou
    @martinRenou

    unpack the finished package and check if the contents make sense

    is boa build supposed to create a ziped package?

    it only created a pkgs for me
    Wolf Vollprecht
    @wolfv
    huh!
    it should create a package in $CONDA/conda-bld/linux-64/...
    martinRenou
    @martinRenou
    repodata.json.bz2?
    Wolf Vollprecht
    @wolfv
    no, that's just the repodata
    martinRenou
    @martinRenou
    I builded grayskull, I don't see a graysjkull package under conda-bld
    Wolf Vollprecht
    @wolfv
    if you built grayskull, there should be grayskull-0.1-xxx.tar.bz2
    ah then it's in noarch
    possibly
    conda-bld/noarch/...
    martinRenou
    @martinRenou
    ok yeah I see it
    thanks
    can I somewhat output the tar file in a local directory? That might be easier for testing
    I thought this was the internal channel, sorry everyone for the noise