diff --git a/conda_build_recipes/01_minimum/meta.yaml b/conda_build_recipes/01_minimum/meta.yaml new file mode 100644 index 0000000..4666d64 --- /dev/null +++ b/conda_build_recipes/01_minimum/meta.yaml @@ -0,0 +1,3 @@ +package: + name: abc + version: 1.2.3 diff --git a/conda_build_recipes/02_local_source/meta.yaml b/conda_build_recipes/02_local_source/meta.yaml new file mode 100644 index 0000000..d0460fe --- /dev/null +++ b/conda_build_recipes/02_local_source/meta.yaml @@ -0,0 +1,6 @@ +package: + name: abc + version: 1.2.3 + +source: + path: . diff --git a/conda_build_recipes/02_local_source/somefile.txt b/conda_build_recipes/02_local_source/somefile.txt new file mode 100644 index 0000000..e69de29 diff --git a/conda_build_recipes/03_copy_file/bld.bat b/conda_build_recipes/03_copy_file/bld.bat new file mode 100644 index 0000000..576c301 --- /dev/null +++ b/conda_build_recipes/03_copy_file/bld.bat @@ -0,0 +1 @@ +COPY somefile.txt %PREFIX% \ No newline at end of file diff --git a/conda_build_recipes/03_copy_file/build.sh b/conda_build_recipes/03_copy_file/build.sh new file mode 100644 index 0000000..0300503 --- /dev/null +++ b/conda_build_recipes/03_copy_file/build.sh @@ -0,0 +1 @@ +cp somefile.txt $PREFIX diff --git a/conda_build_recipes/03_copy_file/meta.yaml b/conda_build_recipes/03_copy_file/meta.yaml new file mode 100644 index 0000000..d0460fe --- /dev/null +++ b/conda_build_recipes/03_copy_file/meta.yaml @@ -0,0 +1,6 @@ +package: + name: abc + version: 1.2.3 + +source: + path: . diff --git a/conda_build_recipes/03_copy_file/somefile.txt b/conda_build_recipes/03_copy_file/somefile.txt new file mode 100644 index 0000000..e69de29 diff --git a/conda_build_recipes/04_python_in_build/bld.bat b/conda_build_recipes/04_python_in_build/bld.bat new file mode 100644 index 0000000..d96252f --- /dev/null +++ b/conda_build_recipes/04_python_in_build/bld.bat @@ -0,0 +1 @@ +COPY somefile.py %SP_DIR% \ No newline at end of file diff --git a/conda_build_recipes/04_python_in_build/build.sh b/conda_build_recipes/04_python_in_build/build.sh new file mode 100644 index 0000000..9a2c473 --- /dev/null +++ b/conda_build_recipes/04_python_in_build/build.sh @@ -0,0 +1 @@ +cp somefile.py $SP_DIR diff --git a/conda_build_recipes/04_python_in_build/meta.yaml b/conda_build_recipes/04_python_in_build/meta.yaml new file mode 100644 index 0000000..477e037 --- /dev/null +++ b/conda_build_recipes/04_python_in_build/meta.yaml @@ -0,0 +1,12 @@ +package: + name: abc + version: 1.2.3 + +source: + path: . + +requirements: + host: + - python + run: + - python diff --git a/conda_build_recipes/04_python_in_build/somefile.py b/conda_build_recipes/04_python_in_build/somefile.py new file mode 100644 index 0000000..6bbfbb5 --- /dev/null +++ b/conda_build_recipes/04_python_in_build/somefile.py @@ -0,0 +1 @@ +print("yes I'm a file. I live in {}".format(__file__)) diff --git a/conda_build_recipes/05_test_python/bld.bat b/conda_build_recipes/05_test_python/bld.bat new file mode 100644 index 0000000..d96252f --- /dev/null +++ b/conda_build_recipes/05_test_python/bld.bat @@ -0,0 +1 @@ +COPY somefile.py %SP_DIR% \ No newline at end of file diff --git a/conda_build_recipes/05_test_python/build.sh b/conda_build_recipes/05_test_python/build.sh new file mode 100644 index 0000000..9a2c473 --- /dev/null +++ b/conda_build_recipes/05_test_python/build.sh @@ -0,0 +1 @@ +cp somefile.py $SP_DIR diff --git a/conda_build_recipes/05_test_python/meta.yaml b/conda_build_recipes/05_test_python/meta.yaml new file mode 100644 index 0000000..0f208ac --- /dev/null +++ b/conda_build_recipes/05_test_python/meta.yaml @@ -0,0 +1,20 @@ +package: + name: abc + version: 1.2.3 + +source: + path: . + +requirements: + host: + - python + run: + - python + +test: + commands: + - test -e $SP_DIR/somefile.py # [unix] + - IF NOT EXIST %SP_DIR%/somefile.py exit 1 # [win] + - python -m somefile + imports: + - somefile diff --git a/conda_build_recipes/05_test_python/somefile.py b/conda_build_recipes/05_test_python/somefile.py new file mode 100644 index 0000000..6bbfbb5 --- /dev/null +++ b/conda_build_recipes/05_test_python/somefile.py @@ -0,0 +1 @@ +print("yes I'm a file. I live in {}".format(__file__)) diff --git a/conda_build_recipes/06_has_run_exports/meta.yaml b/conda_build_recipes/06_has_run_exports/meta.yaml new file mode 100644 index 0000000..eb09ba4 --- /dev/null +++ b/conda_build_recipes/06_has_run_exports/meta.yaml @@ -0,0 +1,7 @@ +package: + name: has_run_exports + version: 1.0 + +build: + run_exports: + - {{ pin_subpackage("has_run_exports") }} diff --git a/conda_build_recipes/07_uses_run_exports/meta.yaml b/conda_build_recipes/07_uses_run_exports/meta.yaml new file mode 100644 index 0000000..5e3bee2 --- /dev/null +++ b/conda_build_recipes/07_uses_run_exports/meta.yaml @@ -0,0 +1,7 @@ +package: + name: uses_run_exports + version: 1.0 + +requirements: + host: + - has_run_exports