Skip to content

Commit 33f23aa

Browse files
authored
Merge pull request #501 from KhiopsML/499-backport-updates-after-pypi-conda-forge-releases
backport updates after pypi and conda-forge releases
2 parents e531c2e + 240f025 commit 33f23aa

File tree

3 files changed

+47
-25
lines changed

3 files changed

+47
-25
lines changed

.github/workflows/conda.yml

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ on:
1414
khiops-samples-version:
1515
default: 10.3.2
1616
description: khiops-samples version
17-
release-channel:
18-
type: choice
19-
default: khiops-dev
20-
options: [khiops-dev, khiops]
21-
description: Anaconda channel to release
2217
push:
2318
tags: ['*']
2419
pull_request:
@@ -205,8 +200,8 @@ jobs:
205200
tests.test_khiops_integrations.KhiopsRunnerEnvironmentTests.test_runner_environment_initialization
206201
207202
# Release is only executed on tags
208-
# Note: For this job to work the secrets variables KHIOPS_ANACONDA_CHANNEL_TOKEN and
209-
# KHIOPS_DEV_ANACONDA_CHANNEL_TOKEN must be set with valid anaconda.org access tokens
203+
# Note: For this job to work the secret variable KHIOPS_DEV_ANACONDA_CHANNEL_TOKEN
204+
# must be set with a valid anaconda.org access token
210205
release:
211206
if: github.ref_type == 'tag'
212207
needs: test
@@ -232,16 +227,6 @@ jobs:
232227
run: python -m conda_index ./khiops-conda
233228
- name: Upload the Package to anaconda.org
234229
run: |-
235-
# Set the anaconda.org channel
236-
ANACONDA_CHANNEL="${{ inputs.release-channel || 'khiops-dev' }}"
237-
238-
# For the release channel: upload without forcing
239-
if [[ "$ANACONDA_CHANNEL" == "khiops" ]]
240-
then
241-
anaconda --token "${{ secrets.KHIOPS_ANACONDA_CHANNEL_TOKEN }}" upload \
242-
--user "$ANACONDA_CHANNEL" ./khiops-conda/noarch/*.conda
243-
# For the dev channel: upload with forcing
244-
else
245-
anaconda --token "${{ secrets.KHIOPS_DEV_ANACONDA_CHANNEL_TOKEN }}" upload \
246-
--user "$ANACONDA_CHANNEL" --force ./khiops-conda/noarch/*.conda
247-
fi
230+
# Override versions, as the packages are pushed to a dev channel
231+
anaconda --token "${{ secrets.KHIOPS_DEV_ANACONDA_CHANNEL_TOKEN }}" upload \
232+
--user khiops-dev --force ./khiops-conda/noarch/*.conda

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,28 @@ in two ways:
1313

1414
## Installation
1515

16+
Using `conda`
1617
```bash
17-
conda install -c conda-forge -c khiops khiops
18+
conda create -n khiops-env
19+
conda activate khiops-env
20+
conda install -c conda-forge khiops
1821
```
19-
Other install methods are documented at the [Khiops website][khiops-install].
22+
23+
Using `pip` under Linux (in a `bash` shell)
24+
```bash
25+
python -m venv khiops-venv
26+
source khiops-venv/bin/activate
27+
pip install -U khiops
28+
```
29+
30+
Using `pip` under Windows (in a `powershell` shell)
31+
```shell
32+
python -m venv khiops-venv
33+
khiops-venv\Scripts\activate
34+
pip install -U khiops
35+
```
36+
37+
Other installation methods are documented at the [Khiops website][khiops-install].
2038

2139
### Requirements
2240
- [Python][python] (>=3.8)

doc/index.rst

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,30 @@ Welcome to the Khiops Python API documentation page.
66

77
Installation
88
------------
9-
Khiops is better installed with `conda package manager <https://docs.conda.io/en/latest/>`_
9+
Khiops can be installed with `conda package manager <https://docs.conda.io/en/latest/>`_
1010

11-
.. code-block:: shell
11+
.. code-block:: bash
1212
13-
conda install -c conda-forge -c khiops khiops
13+
conda create -n khiops-env
14+
conda activate khiops-env
15+
conda install -c conda-forge khiops
16+
17+
Alternatively, you can install in a virtual environment using `pip`,
18+
under Linux (in a `bash` shell) :
19+
20+
.. code-block:: bash
21+
22+
python -m venv khiops-venv
23+
source khiops-venv/bin/activate
24+
pip install -U khiops
25+
26+
under Windows (in a `powershell` shell) :
27+
28+
.. code-block:: powershell
29+
30+
python -m venv khiops-venv
31+
khiops-venv\Scripts\activate
32+
pip install -U khiops
1433
1534
More details and other install methods are documented at the `Khiops website
1635
<https://www.khiops.org/setup>`_.

0 commit comments

Comments
 (0)