-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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` | ||
|
@@ -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:** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters