Skip to content
Snippets Groups Projects
Commit 365e6403 authored by Jason R Laura's avatar Jason R Laura
Browse files

builds should not bush to anaconda

parent cb0c7236
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
#!/bin/bash
$PYTHON setup.py install
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment