Skip to content

Commit e4b8994

Browse files
committed
modernize conda recipe
1 parent c9e82fa commit e4b8994

File tree

4 files changed

+34
-44
lines changed

4 files changed

+34
-44
lines changed

condarecipe/larray-editor/bld.bat

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
"%PYTHON%" -m pip install . --no-deps --ignore-installed -vvv
2-
if errorlevel 1 exit 1
3-
:: Add more build steps here, if they are necessary.
1+
:: Ref: https://github.com/ContinuumIO/menuinst/wiki/Menus-in-Conda-Recipes
2+
:: See: https://docs.conda.io/projects/conda-build/en/latest/user-guide/environment-variables.html
3+
:: for a list of environment variables that are set during the build process.
4+
:: e.g. %PREFIX% = (...)\Miniconda
45

5-
:: https://github.com/ContinuumIO/menuinst/wiki/Menus-in-Conda-Recipes
6-
:: %PREFIX%\Menu = (...)\Miniconda\Menu
76
if not exist "%PREFIX%\Menu" mkdir "%PREFIX%\Menu"
87
copy "%RECIPE_DIR%\larray-editor.json" "%PREFIX%\Menu"
98
copy "%SRC_DIR%\larray_editor\images\larray.ico" "%PREFIX%\Menu"
109
copy "%SRC_DIR%\larray_editor\images\larray-help.ico" "%PREFIX%\Menu"
1110

12-
:: See
13-
:: https://conda.io/docs/user-guide/tasks/build-packages/environment-variables.html
14-
:: for a list of environment variables that are set during the build process.
11+
"%PYTHON%" -m pip install . --no-deps -vv
12+
if errorlevel 1 exit 1

condarecipe/larray-editor/build.sh

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
#!/bin/bash
22

3-
$PYTHON -m pip install . --no-deps --ignore-installed -vvv
3+
# Ref: https://github.com/ContinuumIO/menuinst/wiki/Menus-in-Conda-Recipes
4+
# See https://docs.conda.io/projects/conda-build/en/latest/user-guide/environment-variables.html
5+
# for a list of environment variables that are set during the build process.
46

5-
# Add more build steps here, if they are necessary.
7+
#mkdir -p "$PREFIX/Menu"
8+
#if [ $OSX_ARCH ]
9+
#then
10+
# cp "$RECIPE_DIR/larray-editor.json" "$PREFIX/Menu"
11+
# cp "$SRC_DIR/larray_editor/images/larray.png" "$PREFIX/Menu"
12+
#else
13+
# cp "$RECIPE_DIR/larray-editor.json" "$PREFIX/Menu"
14+
# cp "$SRC_DIR/larray_editor/images/larray.png" "$PREFIX/Menu"
15+
#fi
616

7-
# See
8-
# https://conda.io/docs/user-guide/tasks/build-packages/environment-variables.html
9-
# for a list of environment variables that are set during the build process.
17+
"$PYTHON" -m pip install . --no-deps -vv || exit 1

condarecipe/larray-editor/conda_build_config.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.

condarecipe/larray-editor/meta.yaml

Lines changed: 15 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,54 @@
1+
{% set version = "0.33-dev" %}
2+
13
package:
24
name: larray-editor
3-
version: 0.33-dev
5+
version: {{ version }}
46

57
source:
6-
git_tag: 0.33-dev
8+
git_tag: {{ version }}
79
git_url: https://github.com/larray-project/larray-editor.git
8-
# git_tag: master
9-
# git_url: file://c:/Users/gdm/devel/larray-editor/.git
1010

1111
build:
12-
# If this is a new build for the same version, increment the build number
12+
noarch: python
1313
number: 0
14-
# this is not used since we provide explicit build scripts (bld.bat and build.sh)
15-
# script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vvv"
1614
entry_points:
1715
- larray-editor = larray_editor.start:main
1816

1917
requirements:
20-
build:
21-
- pip
18+
host:
2219
- python
20+
- pip
2321

24-
# requires larray >= 0.32 because of the LArray -> Array rename
2522
run:
2623
- python
24+
# requires larray >= 0.32 because of the LArray -> Array rename
2725
- larray >=0.32
2826
- matplotlib
29-
- ipykernel !=5.0, !=5.1
27+
# - excluded versions 5.0 and 5.1.0 of ipykernel because these versions make the console useless after any exception
28+
# https://github.com/larray-project/larray-editor/issues/166
29+
- ipykernel !=5.0,!=5.1.0
3030
- pyqt >=4.6 # for API v2
3131
- qtpy
3232

3333
test:
34-
# requires:
35-
# - pytest
36-
# - pytest-runner
37-
3834
imports:
3935
- larray_editor
4036

41-
# commands:
42-
# # You can also put a file called run_test.py in the recipe that will be run at test time.
43-
# - pytest --pyargs larray_editor
44-
4537
app:
4638
entry: larray-editor
47-
# I can't seem to make this work
4839
# icon: larray.png
49-
summary: Graphical User Interface for LArray
40+
summary: "Graphical User Interface for LArray"
5041
type: desk
5142

5243
about:
5344
home: https://github.com/larray-project/larray-editor
54-
license: GPL-3.0
45+
license: GPL-3.0-only
5546
license_family: GPL
5647
license_file: LICENSE
57-
summary: Graphical User Interface for LArray
48+
summary: "Graphical User Interface for LArray"
49+
dev_url: https://github.com/larray-project/larray-editor
5850

5951
extra:
6052
recipe-maintainers:
6153
- alixdamman
6254
- gdementen
63-
64-
# See
65-
# https://conda.io/docs/user-guide/tasks/build-packages/index.html
66-
# for more information about meta.yaml

0 commit comments

Comments
 (0)