Function
makePythonVersion
(
major: number,
minor: number,
discontinueDate?: Date
)
Source from the content-addressed store, hash-verified
| 41 | )!; |
| 42 | |
| 43 | function makePythonVersion( |
| 44 | major: number, |
| 45 | minor: number, |
| 46 | discontinueDate?: Date |
| 47 | ): PythonVersion { |
| 48 | return { |
| 49 | major, |
| 50 | minor, |
| 51 | pipPath: `pip${major}.${minor}`, |
| 52 | pythonPath: `python${major}.${minor}`, |
| 53 | runtime: `python${major}.${minor}`, |
| 54 | discontinueDate, |
| 55 | }; |
| 56 | } |
| 57 | |
| 58 | // The order must be most recent first |
| 59 | const allOptions: PythonVersion[] = [ |
Tested by
no test coverage detected