Skip to content

Commit 0209388

Browse files
authored
Add Conda release script (#571)
1 parent 1d8103e commit 0209388

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

conda/README.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
# How to Build the Package and Publish to Anaconda.org
22

3-
From the root of the repository, run:
4-
```bash
5-
docker run -v .:/quix-streams -w /quix-streams --rm -it continuumio/miniconda3 bash
6-
```
7-
8-
Obtain Anaconda API Token from https://anaconda.org/quixio/settings/access.
9-
Inside the container, execute the following commands:
10-
```bash
11-
export ANACONDA_API_TOKEN='<Anaconda API Token>'
12-
export QUIXSTREAMS_VERSION=$(grep '__version__' ./quixstreams/__init__.py | cut -d '"' -f 2)
13-
conda install --yes conda-build anaconda-client
14-
conda build --channel conda-forge --user quixio ./conda
15-
```
3+
1. Make sure you are on `main` branch and it is up to date.
4+
2. Get `quix` Anaconda API Token from https://anaconda.org/quixio/settings/access.
5+
3. Test without uploading to Anaconda: `./conda/test.sh`
6+
4. Build and publish: `ANACONDA_API_TOKEN='<Anaconda API Token>' ./conda/release.sh`
167

178
# How to upgrade requirements
189

19-
1. Bump requirements in `conda/meta.yaml` and/or in `conda/post-link.sh`.
10+
1. Bump requirements in `conda/meta.yaml` and/or `conda/post-link.sh`.
2011
2. Run `./conda/test.sh` to make sure everything works.

conda/release.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
QUIXSTREAMS_VERSION=$(grep '__version__' ./quixstreams/__init__.py | cut -d '"' -f 2)
2+
3+
docker run --rm \
4+
-v ./conda:/conda \
5+
-w /conda \
6+
-e ANACONDA_API_TOKEN=$ANACONDA_API_TOKEN \
7+
-e QUIXSTREAMS_VERSION=$QUIXSTREAMS_VERSION \
8+
continuumio/miniconda3 bash -c 'conda install --yes conda-build anaconda-client && conda build --channel conda-forge --user quixio .'

0 commit comments

Comments
 (0)