FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

3.15.0rc1 by ChrisLovering · Pull Request #3 · python-discord/python-builds · GitHub

Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) .toml  (1) No extension  (1) All 3 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 2 additions & 2 deletions Dockerfile
This file contains hidden or 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
@@ -1,7 +1,7 @@
FROM buildpack-deps:bookworm AS builder-base
LABEL org.opencontainers.image.authors="Joe Banks <joe@owlcorp.uk>, Chris Lovering <cj@owlcorp.uk>"

ARG PYENV_VERSION="v2.6.11"
ARG PYENV_VERSION="v2.8.4"

RUN apt-get -y update \
&& apt-get install -y --no-install-recommends \
Expand All @@ -15,7 +15,7 @@ RUN apt-get -y update \
# Following guidance from https://github.com/python/cpython/blob/main/Tools/jit/README.md
RUN curl -o /tmp/llvm.sh https://apt.llvm.org/llvm.sh \
&& chmod +x /tmp/llvm.sh \
&& /tmp/llvm.sh 19 \
&& /tmp/llvm.sh 22 \
&& rm /tmp/llvm.sh

ENV PYENV_ROOT=/pyenv \
Expand Down
16 changes: 12 additions & 4 deletions scripts/find_version.py
This file contains hidden or 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
@@ -1,7 +1,9 @@
from pathlib import Path
import tomllib
import json
import os
from pathlib import Path

import tomllib


def resolve_version(friendly_version: str) -> str:
"""Resolve a friendly version like '3.10t' to an exact version like '3.10.12'."""
Expand Down Expand Up @@ -29,8 +31,14 @@ def resolve_version(friendly_version: str) -> str:
if not matching_versions:
raise ValueError(f"No matching versions found for base version '{base_version}'")

# Sort versions to get the latest
matching_versions.sort(key=lambda s: list(map(int, s.split('.'))))
def version_sort_key(s):
def part_key(p):
n, *rc = p.split('rc')
# rc suffix sorts below final release (no rc = inf)
return (int(n), int(rc[0]) if rc else float('inf'))
return [part_key(p) for p in s.split('.')]

matching_versions.sort(key=version_sort_key)

latest_version = matching_versions[-1]

Expand Down
4 changes: 3 additions & 1 deletion versions.toml
This file contains hidden or 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
Expand Up @@ -16,12 +16,14 @@

[config]
versions = [
"3.15",
"3.15t",
"3.15j",
"3.14",
"3.14t",
"3.14j",
"3.13",
"3.13t",
"3.12",
"3.11",
"3.10",
]
Loading

Back | FazBrowse Home | New Git URL