Skip to content

Commit

Permalink
Downgrade to Python < 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
pirmink committed Dec 20, 2023
1 parent 612cbb4 commit d78ea49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ GH pages of this repository (https://meteoswiss-apn.github.io/mch-python-bluepri

## Preparation

Ensure that your active Python version is 3.11 or higher.
Ensure that your active Python version is 3.7 or higher.
The recommended way to manage Python versions is with `Conda`
(https://docs.conda.io/en/latest/).
On CSCS machines it is recommended to install the leaner `Miniconda`
Expand Down Expand Up @@ -40,20 +40,21 @@ First you have to install copier and its requirements. Ideally you do this in a
```bash
conda create --name blueprint
conda activate blueprint
conda install copier
conda install pip
pip install copier
```

## Create your Python package from our template
You can now produce your Python package from a copier template by running
```
conda activate blueprint
copier copy [email protected]:MeteoSwiss-APN/mch-python-blueprint.git </path/to/destination>
copier [email protected]:MeteoSwiss-APN/mch-python-blueprint.git </path/to/destination>
```
If you need to generate your project from a specific commit hash or branch of the blueprint you can run with --vcs-ref

```
conda activate blueprint
copier copy --vcs-ref <branch> [email protected]:MeteoSwiss-APN/mch-python-blueprint.git </path/to/destination>
copier --vcs-ref <branch> [email protected]:MeteoSwiss-APN/mch-python-blueprint.git </path/to/destination>
```

**Warning:**
Expand Down
4 changes: 2 additions & 2 deletions tmpl/tools/setup_miniconda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ INSTALL_PREFIX=${PWD}
USER_INSTALL=false

# here the conda version is fixed, the sha256 hash has to be set accordingly
MINICONDA_URL=https://repo.anaconda.com/miniconda/Miniconda3-py311_23.10.0-1-Linux-x86_64.sh
SHA256=d0643508fa49105552c94a523529f4474f91730d3e0d1f168f1700c43ae67595
MINICONDA_URL=https://repo.anaconda.com/miniconda/Miniconda3-py310_22.11.1-1-Linux-x86_64.sh
SHA256=00938c3534750a0e4069499baf8f4e6dc1c2e471c86a59caa0dd03f4a9269db6

# Eval command line options
while getopts p:u flag; do
Expand Down

0 comments on commit d78ea49

Please sign in to comment.