Skip to content

Commit 0a05e5c

Browse files
committed
Add conda build recipe.
In sync with pavoljuhas/conda-recipes@ab9485d
1 parent 2a0015b commit 0a05e5c

File tree

4 files changed

+76
-0
lines changed

4 files changed

+76
-0
lines changed

conda-recipe/bld.bat

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"%PYTHON%" setup.py install
2+
if errorlevel 1 exit 1
3+
4+
:: Add more build steps here, if they are necessary.
5+
6+
:: See
7+
:: http://docs.continuum.io/conda/build.html
8+
:: for a list of environment variables that are set during the build process.

conda-recipe/build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
$PYTHON setup.py install
4+
5+
# Add more build steps here, if they are necessary.
6+
7+
# See
8+
# http://docs.continuum.io/conda/build.html
9+
# for a list of environment variables that are set during the build process.

conda-recipe/meta.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
package:
2+
name: diffpy.utils
3+
version: 1.1.post10
4+
5+
source:
6+
git_url: https://github.com/diffpy/diffpy.utils
7+
git_rev: 14087b2295e9f8053e26b480caedbe79f7955215
8+
# patches:
9+
# List any patch files here
10+
# - fix.patch
11+
12+
build:
13+
preserve_egg_dir: True
14+
15+
# If this is a new build for the same version, increment the build
16+
# number. If you do not include this key, it defaults to 0.
17+
number: 1
18+
19+
requirements:
20+
build:
21+
- python
22+
- setuptools
23+
24+
run:
25+
- python
26+
- setuptools
27+
- numpy >=1.3
28+
29+
test:
30+
# Python imports
31+
imports:
32+
- diffpy
33+
- diffpy.utils
34+
- diffpy.utils.parsers
35+
- diffpy.utils.tests
36+
37+
commands:
38+
# You can put test commands to be run here. Use this to test that the
39+
# entry points work.
40+
41+
# You can also put a file called run_test.py in the recipe that will be run
42+
# at test time.
43+
44+
requires:
45+
# Put any additional test requirements here. For example
46+
# - nose
47+
48+
about:
49+
home: https://github.com/diffpy/diffpy.utils/
50+
summary: Shared utilities for diffpy packages.
51+
license: Modified BSD License
52+
license_file: LICENSE.txt
53+
54+
# See http://docs.continuum.io/conda/build.html
55+
# for more information about meta.yaml.

conda-recipe/run_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env python
2+
3+
import diffpy.utils.tests
4+
assert diffpy.utils.tests.test().wasSuccessful()

0 commit comments

Comments
 (0)