Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Auto pull recipes from conda forge #255

Open
CJ-Wright opened this issue Jan 19, 2018 · 3 comments
Open

Auto pull recipes from conda forge #255

CJ-Wright opened this issue Jan 19, 2018 · 3 comments
Milestone

Comments

@CJ-Wright
Copy link
Collaborator

It might be nice to have a system which trolls through conda forge for new versions of the recipes.

@danielballan
Copy link
Contributor

Definitely! I don't like our current system of copy/paste, and this has been bothering me.

If we did adopt a tool for this it would have to be really simple because we already have more complexity around the build system than we have the capacity to maintain.

@CJ-Wright
Copy link
Collaborator Author

CJ-Wright commented Jan 19, 2018

Just for locality (this was in a PR comment), this is what I currently run:

import os
from contextlib import contextmanager
@contextmanager
def indir(d):
    """Context manager for temporarily entering into a directory. Copyright (c) 2017, Anthony Scopatz
"""
    old_d = os.getcwd()
    ![cd @(d)]
    yield
    ![cd @(old_d)]
a = ['xpdsim', 'xpdtools', 'shed', 'xpdacq', 'xpdan']
t = 'https://raw.githubusercontent.com/conda-forge/{}-feedstock/master/recipe/meta.yaml'
for b in a:
    os.makedirs(b, exists_ok=True)
    with indir(b):
        if 'meta.yaml' in g`*`:
            rm meta.yaml
        wget @(t.format(b))

This plus Travis (running a nightly cron job) plus doctr to push the new recipes back to github could be all you needed to have a running system.

Only major changes here would be:

  1. A revert of the deletion if the wget failed
  2. a = g*` to do this for all directories
  3. Pull the entire recipe folder so we pull the build.* and patches.

@justcalamari

@CJ-Wright CJ-Wright mentioned this issue Jan 19, 2018
@mrakitin mrakitin added this to the nsls-ii-forge milestone Mar 15, 2019
mrakitin added a commit to mrakitin/lightsource2-recipes that referenced this issue Jun 28, 2019
@mrakitin
Copy link
Member

May be worth to keep it open to see how we can use it for syncing between https://github.com/nsls-ii-forge and this repo before we fully abandon our internal builder.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants