File tree Expand file tree Collapse file tree 5 files changed +55
-0
lines changed Expand file tree Collapse file tree 5 files changed +55
-0
lines changed Original file line number Diff line number Diff line change @@ -61,3 +61,10 @@ publish-pypi: # publish the pypi package
61
61
@exec echo twine upload ./dist/* -py3-none-any.whl
62
62
@exec echo
63
63
@exec echo https://pypi.org/project/datalayer-core/# history
64
+
65
+ publish-conda : # publish the conda package
66
+ @exec echo
67
+ cd ./conda-recipe; ./publish-conda.sh
68
+ @exec echo
69
+ @exec echo https://anaconda.org/datalayer/datalayer-core
70
+ @exec echo conda install datalayer::datalayer-core
Original file line number Diff line number Diff line change
1
+ # Building the Conda Package
Original file line number Diff line number Diff line change
1
+ package :
2
+ name : datalayer-core
3
+ version : " {{ DATALAYER_CORE_VERSION }}"
4
+
5
+ source :
6
+ path : ../
7
+
8
+ channels :
9
+ - datalayer
10
+
11
+ build :
12
+ noarch : python
13
+ script : " {{ PYTHON }} -m pip install . -vv"
14
+
15
+ requirements :
16
+ build :
17
+ - python
18
+ - hatch-jupyter-builder>=0.5
19
+ - hatch-nodejs-version
20
+ - hatchling
21
+ run :
22
+ - python
23
+
24
+ test :
25
+ imports :
26
+ - datalayer_core
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ export DATALAYER_CORE_VERSION=1.0.23
4
+
5
+ CONDA_CHANNEL_NAME=datalayer
6
+ ORGANIZATION=datalayer
7
+
8
+ # Make sure the script stops on any error (errors are otherwise hard to spot)
9
+ set -o errtrace -o nounset -o pipefail -o errexit
10
+
11
+ rm -fr ./out
12
+
13
+ PKG_PATH=$( conda-build --output-folder ./out . -c defaults)
14
+
15
+ echo $PKG_PATH generated
16
+
17
+ # Upload the package to a conda channel.
18
+ # anaconda upload $PKG_PATH -c $CONDA_CHANNEL_NAME
19
+ # Upload the package to a conda organization.
20
+ anaconda upload --user $ORGANIZATION $PKG_PATH
You can’t perform that action at this time.
0 commit comments