Skip to content

Commit 6cc07ac

Browse files
authored
Merge pull request #499 from KhiopsML/497-updates-after-pypi-conda-forge-releases
Updates after pypi and conda-forge releases
2 parents bc72212 + 0c3f281 commit 6cc07ac

File tree

5 files changed

+54
-31
lines changed

5 files changed

+54
-31
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: 11.0.0
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:
@@ -223,8 +218,8 @@ jobs:
223218
tests.test_khiops_integrations.KhiopsRunnerEnvironmentTests.test_runner_environment_initialization
224219
225220
# Release is only executed on tags
226-
# Note: For this job to work the secrets variables KHIOPS_ANACONDA_CHANNEL_TOKEN and
227-
# KHIOPS_DEV_ANACONDA_CHANNEL_TOKEN must be set with valid anaconda.org access tokens
221+
# Note: For this job to work the secret variable KHIOPS_DEV_ANACONDA_CHANNEL_TOKEN
222+
# must be set with a valid anaconda.org access token
228223
release:
229224
if: github.ref_type == 'tag'
230225
needs: test
@@ -268,16 +263,6 @@ jobs:
268263
run: python -m conda_index ./khiops-conda
269264
- name: Upload the Package to anaconda.org
270265
run: |-
271-
# Set the anaconda.org channel
272-
ANACONDA_CHANNEL="${{ inputs.release-channel || 'khiops-dev' }}"
273-
274-
# For the release channel: upload without forcing
275-
if [[ "$ANACONDA_CHANNEL" == "khiops" ]]
276-
then
277-
anaconda --token "${{ secrets.KHIOPS_ANACONDA_CHANNEL_TOKEN }}" upload \
278-
--user "$ANACONDA_CHANNEL" ./khiops-conda/noarch/*.conda
279-
# For the dev channel: upload with forcing
280-
else
281-
anaconda --token "${{ secrets.KHIOPS_DEV_ANACONDA_CHANNEL_TOKEN }}" upload \
282-
--user "$ANACONDA_CHANNEL" --force ./khiops-conda/noarch/*.conda
283-
fi
266+
# Override versions, as the packages are pushed to a dev channel
267+
anaconda --token "${{ secrets.KHIOPS_DEV_ANACONDA_CHANNEL_TOKEN }}" upload \
268+
--user khiops-dev --force ./khiops-conda/noarch/*.conda

.github/workflows/dev-docker.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ env:
55
DEFAULT_IMAGE_INCREMENT: 0
66
DEFAULT_SERVER_REVISION: main
77
DEFAULT_PYTHON_VERSIONS: 3.8 3.9 3.10 3.11 3.12 3.13 3.14
8-
DEFAULT_KHIOPS_GCS_DRIVER_REVISION: 0.0.11
9-
DEFAULT_KHIOPS_S3_DRIVER_REVISION: 0.0.13
8+
DEFAULT_KHIOPS_GCS_DRIVER_REVISION: 0.0.14
9+
DEFAULT_KHIOPS_S3_DRIVER_REVISION: 0.0.14
1010
on:
1111
pull_request:
1212
paths: [packaging/docker/khiopspydev/Dockerfile.*, .github/workflows/dev-docker.yml]
@@ -38,11 +38,11 @@ on:
3838
description: Khiops Server Revision
3939
khiops-gcs-driver-revision:
4040
type: string
41-
default: 0.0.11
41+
default: 0.0.14
4242
description: Driver version for Google Cloud Storage remote files
4343
khiops-s3-driver-revision:
4444
type: string
45-
default: 0.0.13
45+
default: 0.0.14
4646
description: Driver version for AWS-S3 remote files
4747
concurrency:
4848
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

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>`_.

packaging/docker/khiopspydev/Dockerfile.ubuntu

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ RUN true \
6767
# khiops core \
6868
$CONDA install -y -n py${version}_conda ${RC_LABEL}khiops-core=$(echo ${KHIOPS_REVISION} | tr -d "-") ; \
6969
# remote files drivers installed in the conda environment \
70-
$CONDA install -y -n py${version}_conda -c khiops \
70+
$CONDA install -y -n py${version}_conda -c conda-forge \
7171
khiops-driver-s3=${KHIOPS_S3_DRIVER_REVISION} \
7272
khiops-driver-gcs=${KHIOPS_GCS_DRIVER_REVISION}; \
7373
done' \
@@ -83,7 +83,8 @@ RUN true \
8383
# Get Linux distribution codename \
8484
&& if [ -f /etc/os-release ]; then . /etc/os-release; fi \
8585
&& wget -O khiops-gcs.deb https://github.com/KhiopsML/khiopsdriver-gcs/releases/download/${KHIOPS_GCS_DRIVER_REVISION}/khiops-driver-gcs_${KHIOPS_GCS_DRIVER_REVISION}-1-${VERSION_CODENAME}.amd64.deb \
86-
&& wget -O khiops-s3.deb https://github.com/KhiopsML/khiopsdriver-s3/releases/download/${KHIOPS_S3_DRIVER_REVISION}/khiops-driver-s3_${KHIOPS_S3_DRIVER_REVISION}-1-${VERSION_CODENAME}.amd64.deb \
86+
# A little typo in the artifact name for version 0.0.14 needs fixing that is why a hardcoded version is used here \
87+
&& wget -O khiops-s3.deb https://github.com/KhiopsML/khiopsdriver-s3/releases/download/${KHIOPS_S3_DRIVER_REVISION}/khiops-driver-s3_0.0.13-1-${VERSION_CODENAME}.amd64.deb \
8788
&& (dpkg -i --force-all khiops-gcs.deb khiops-s3.deb || true) \
8889
&& apt-get -f -y install \
8990
&& rm -f khiops-gcs.deb khiops-s3.deb \

0 commit comments

Comments
 (0)