Skip to content

Commit

Permalink
Added files for conda recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilipp committed Mar 31, 2017
1 parent 86acdef commit 6d60e53
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,6 @@ target/

# Example ipython notebook checkpoints
*.ipynb_checkpoints/

# conda build files
recipe/meta.yaml
16 changes: 16 additions & 0 deletions ci/enhance_recipe.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""Add the missing informations to the conda recipe
"""
import os
import os.path as osp

with open(osp.join('recipe', 'meta.template')) as f:
s = f.read()

with open(osp.join('psy_simple', 'version.py')) as f:
exec(f.read())

s = s.replace('VERSION', __version__)
s = s.replace('PWD', os.getcwd())

with open(osp.join('recipe', 'meta.yaml'), 'w') as f:
f.write(s)
35 changes: 35 additions & 0 deletions recipe/meta.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{% set path = PWD %}
{% set version = VERSION %}
{% set name = "psy-simple" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
fn: {{ name }}-{{ version }}.tar.gz
url: file://{{ path }}/dist/{{ name }}-{{ version }}.tar.gz

build:
script: python setup.py install --single-version-externally-managed --record record.txt

requirements:
build:
- python
- setuptools
run:
- python
- setuptools
- psyplot

test:
imports:
- psy_simple
about:
home: https://github.com/Chilipp/psy-simple
license: GNU General Public License v2 (GPLv2)
summary: 'Psyplot plugin for simple visualization tasks'
license_family: GPL2
license_file: LICENSE
doc_url: http://psyplot.readthedocs.io/projects/psy-simple
dev_url: https://github.com/Chilipp/psy-simple

0 comments on commit 6d60e53

Please sign in to comment.