Commit 365e6403 authored by Jason R Laura's avatar Jason R Laura
Browse files

builds should not bush to anaconda

parent cb0c7236
Loading
Loading
Loading
Loading
+3 −15
Original line number Diff line number Diff line
@@ -18,31 +18,19 @@ conda = sh.Command('conda')

def build_and_publish(path, channel):
    binfile = conda.build("--output", path).strip()
    print "Building..."
    conda.build(path)
    print "Upload to Anaconda.org..."
    binstar.upload(binfile, force=True, channel=channel)


def conda_paths(project_name):
    conda_recipes_dir = os.path.join(project_name, 'conda')

    if not os.path.isdir(conda_recipes_dir):
        sys.exit('no such dir: {}'.format(conda_recipes_dir))

    for name in sorted(os.listdir(conda_recipes_dir)):
        yield os.path.join(conda_recipes_dir, name)


def main():
    parser = ArgumentParser()
    parser.add_argument('-p', '--project', required=True)
    parser.add_argument('-c', '--channel', required=False, default='main')
    parser.add_argument('-s', '--site', required=False, default=None)
    parser.add_argument('-b', '--build_dir', required=False, default='conda')
    args = parser.parse_args()
    
    for conda_path in conda_paths(args.project):
        build_and_publish(conda_path, channel=args.channel)
    build_and_publish(args.build_dir, channel=args.channel)
    return 0


conda/build.sh

0 → 100644
+2 −0
Original line number Diff line number Diff line
#!/bin/bash
$PYTHON setup.py install

conda/meta.yaml

0 → 100644
+30 −0
Original line number Diff line number Diff line
package:
  name: plio
  version: 0.1.0

source: 
  git_url: https://github.com/USGS-Astrogeology/plio.git

requirements:
  build: 
    - python 
    - numpy
    - pvl
    - protobuf 3.0.0b2
    - gdal >=2
    - h5py
    - pandas
    - sqlalchemy
    - pyyaml
  run:
    - python
    - numpy
    - pvl
    - protobuf 3.0.0b2
    - gdal >=2
    - h5py
    - pandas
    - sqlalchemy
    - pyyaml