Skip to content

Commit d83e0e5

Browse files
committed
Add conda recipe
1 parent af4a72b commit d83e0e5

File tree

9 files changed

+43
-0
lines changed

9 files changed

+43
-0
lines changed

conda.recipe/bld.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"%PYTHON%" setup.py install
2+
"%PREFIX%\Scripts\jupyter-nbextension.exe" install rise --py --sys-prefix
3+
if errorlevel 1 exit 1

conda.recipe/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"${PYTHON}" setup.py install
2+
"${PREFIX}/bin/jupyter-nbextension" install rise --py --sys-prefix

conda.recipe/meta.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package:
2+
name: rise
3+
version: {{ environ.get('GIT_DESCRIBE_TAG', '0.0.0.') }}
4+
5+
source:
6+
path: ../
7+
8+
build:
9+
number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
10+
{% if environ.get('GIT_DESCRIBE_NUMBER', '0') == '0' %}string: py{{ environ.get('PY_VER').replace('.', '') }}_0
11+
{% else %}string: py{{ environ.get('PY_VER').replace('.', '') }}_{{ environ.get('GIT_BUILD_STR', 'GIT_STUB') }}{% endif %}
12+
13+
requirements:
14+
build:
15+
- python
16+
- notebook >=4.2.0
17+
run:
18+
- python
19+
- notebook >=4.2.0
20+
21+
test:
22+
requires:
23+
- python
24+
- notebook >=4.2.0
25+
26+
about:
27+
home: https://github.com/damianavila/RISE
28+
license: BSD 3-Clause
29+
license_file: LICENSE.md

conda.recipe/post-link.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"%PREFIX%\Scripts\jupyter-nbextension.exe" enable rise --py --sys-prefix
2+
if errorlevel 1 exit 1

conda.recipe/post-link.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"${PREFIX}/bin/jupyter-nbextension" enable rise --py --sys-prefix

conda.recipe/pre-unlink.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"%PREFIX%\Scripts\jupyter-nbextension" disable rise --py --sys-prefix
2+
if errorlevel 1 exit 1

conda.recipe/pre-unlink.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"${PREFIX}/bin/jupyter-nbextension" disable rise --py --sys-prefix
2+
"${PREFIX}/bin/jupyter-serverextension" disable rise --py --sys-prefix

conda.recipe/run_test.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"%PREFIX%\python.exe" -c "print('placeholder')"

conda.recipe/run_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"${PREFIX}/bin/python" -c "print('placeholder')"

0 commit comments

Comments
 (0)