| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 853c012 commit fe396d3
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,7 @@ | |||
| 21 | 21 | ||
| 22 | 22 | ## Specifying a Python version | |
| 23 | 23 | ||
| 24 | - - If there is a specific version of Python that you need and you don't want to worry about any potential breaking changes due to patch updates (going from `3.7.5` to `3.7.6` for example), you should specify the **exact major, minor, and patch version** (such as `3.7.5`): | ||
| 24 | + If there is a specific version of Python that you need and you don't want to worry about any potential breaking changes due to patch updates (going from `3.7.5` to `3.7.6` for example), you should specify the **exact major, minor, and patch version** (such as `3.7.5`): | ||
| 25 | 25 | ||
| 26 | 26 | ```yaml | |
| 27 | 27 | steps: | |
@@ -31,10 +31,11 @@ steps: | |||
| 31 | 31 | python-version: '3.7.5' | |
| 32 | 32 | - run: python my_script.py | |
| 33 | 33 | ``` | |
| 34 | - - The only downside to this is that set-up will take a little longer since the exact version will have to be downloaded if the exact version is not already installed on the runner due to more recent versions. | ||
| 35 | - - MSI installers are used on Windows for this, so runs will take a little longer to set up vs MacOS and Linux. | ||
| 36 | 34 | ||
| 37 | - - You can specify **only a major and minor version** if you are okay with the most recent patch version being used: | ||
| 35 | + - The only downside to this is that set-up will take a little longer since the exact version will have to be downloaded if the exact version is not already installed on the runner due to more recent versions. | ||
| 36 | + - MSI installers are used on Windows for this, so runs will take a little longer to set up vs MacOS and Linux. | ||
| 37 | + | ||
| 38 | + You can specify **only a major and minor version** if you are okay with the most recent patch version being used: | ||
| 38 | 39 | ||
| 39 | 40 | ```yaml | |
| 40 | 41 | steps: | |
@@ -44,11 +45,11 @@ steps: | |||
| 44 | 45 | python-version: '3.7' | |
| 45 | 46 | - run: python my_script.py | |
| 46 | 47 | ``` | |
| 47 | - - There will be a single patch version already installed on each runner for every minor version of Python that is supported. | ||
| 48 | - - The patch version that will be preinstalled, will generally be the latest and every time there is a new patch released, the older version that is preinstalled will be replaced. | ||
| 49 | - - Using the most recent patch version will result in a very quick setup since no downloads will be required since a locally installed version of Python on the runner will be used. | ||
| 48 | + - There will be a single patch version already installed on each runner for every minor version of Python that is supported. | ||
| 49 | + - The patch version that will be preinstalled, will generally be the latest and every time there is a new patch released, the older version that is preinstalled will be replaced. | ||
| 50 | + - Using the most recent patch version will result in a very quick setup since no downloads will be required since a locally installed version of Python on the runner will be used. | ||
| 50 | 51 | ||
| 51 | - - You can specify the version with **prerelease tag** to download and set up an accurate pre-release version of Python: | ||
| 52 | + You can specify the version with **prerelease tag** to download and set up an accurate pre-release version of Python: | ||
| 52 | 53 | ||
| 53 | 54 | ```yaml | |
| 54 | 55 | steps: | |
@@ -59,7 +60,7 @@ steps: | |||
| 59 | 60 | - run: python my_script.py | |
| 60 | 61 | ``` | |
| 61 | 62 | ||
| 62 | - - It's also possible to use **x.y-dev syntax** to download and set up the latest patch version of Python, alpha and beta releases included. (for specified major & minor versions): | ||
| 63 | + It's also possible to use **x.y-dev syntax** to download and set up the latest patch version of Python, alpha and beta releases included. (for specified major & minor versions): | ||
| 63 | 64 | ||
| 64 | 65 | ```yaml | |
| 65 | 66 | steps: | |
@@ -70,7 +71,7 @@ steps: | |||
| 70 | 71 | - run: python my_script.py | |
| 71 | 72 | ``` | |
| 72 | 73 | ||
| 73 | - - You can also use several types of ranges that are specified in [semver](https://github.com/npm/node-semver#ranges), for instance: | ||
| 74 | + You can also use several types of ranges that are specified in [semver](https://github.com/npm/node-semver#ranges), for instance: | ||
| 74 | 75 | ||
| 75 | 76 | - **[hyphen ranges](https://github.com/npm/node-semver#hyphen-ranges-xyz---abc)** to download and set up the latest available version of Python (includes both pre-release and stable versions): | |
| 76 | 77 | ||
@@ -83,7 +84,7 @@ steps: | |||
| 83 | 84 | - run: python my_script.py | |
| 84 | 85 | ``` | |
| 85 | 86 | ||
| 86 | - - **[x-ranges](https://github.com/npm/node-semver#x-ranges-12x-1x-12-)** to specify the latest stable version of Python (for specified major version): | ||
| 87 | + **[x-ranges](https://github.com/npm/node-semver#x-ranges-12x-1x-12-)** to specify the latest stable version of Python (for specified major version): | ||
| 87 | 88 | ||
| 88 | 89 | ```yaml | |
| 89 | 90 | steps: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments