question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve UsePython to allow installation versions on-flight

See original GitHub issue

Problem

Currently, UsePython task just switches versions that are pre-cached on image (example).

It works for the most of the use-cases, because image always contains latest patch version for every major.minor pair. However, some customers prefer to specify exact version of Python and would like to control it by themselves / freeze specific version. Current implementation of UsePython doesn’t allow it.

Proposal

Versions of Python can be installed on-flight from https://github.com/actions/python-versions. This repo distributes versions of Python via GH releases. Also it contains versions-manifest.json as an index of versions.

Installation on-flight is pretty quick and should cover those use-cases. Also it is not a breaking change because task will try to download version only in case if it is not found locally.

The same changes were already done for GitHub Actions task setup-python. Related PRs:

  1. https://github.com/actions/setup-python/pull/85
  2. https://github.com/actions/toolkit/pull/382

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:48
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
mattipcommented, Aug 6, 2020

This would be very useful for trying out versions of python without waiting for deployment of a new image.

2reactions
DaniilShmelevcommented, Mar 5, 2022

This feature will be released in the next few weeks in UsePythonVersion@0.202.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python - Airplane Docs
This guide will get you up and running with an example Python task. For specific details see: Installing dependencies · Using the Python...
Read more >
How can I get the version defined in setup.py (setuptools) in ...
No need for parsing in setup.py. Just import that python file and use version. There are no side effects of importing as this...
Read more >
Writing Plugins for X-Plane using Python - YouTube
In this video, we explore using Python to write plugins for X- Plane. Thedemonstration program disables analog trim axes while the autopilot ...
Read more >
Drone Programming With Python Course | 3 Hours - YouTube
Then we will look at the installations and the basic movements ... And even though we will be using a specific drone for...
Read more >
What's New In Python 3.10 — Python 3.11.1 documentation
PEP 604, Allow writing union types as X | Y ... While an “imperative” series of instructions using nested “if” statements could be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found