Skip to content

Commit

Permalink
Add Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Dec 27, 2023
1 parent 52c8043 commit 910b2da
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
9 changes: 9 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ <h2 id="consumer-about">About consumer statistics</h2>
The data set is smoothed using a 1-month sliding window algorithm.
</p>
</div>
<div class="col-sm-6">
</div>
</div>
<div class="row">
<div class="col-sm-6">
<h2 id="consumer-glibc-readiness-3.13">glibc readiness for python 3.13 (Preview)</h2>
<div><div id="consumer-glibc-readiness-3.13-plot" class="plotly-graph-div"></div></div>
</div>
<div class="col-sm-6">
<h2 id="consumer-glibc-readiness-3.12">glibc readiness for python 3.12</h2>
<div><div id="consumer-glibc-readiness-3.12-plot" class="plotly-graph-div"></div></div>
Expand Down Expand Up @@ -248,6 +256,7 @@ <h2 id="thanks">Thanks</h2>
load_plot("consumer-glibc-version-plot", data.index, data.glibc_version, true, "%", "reversed", true);
load_plot("consumer-python-version-plot-non-eol", data.index, data.python_version_non_eol, true, "%", "normal", false, data.python_version.keys);
load_plot("consumer-glibc-version-plot-non-eol", data.index, data.glibc_version_non_eol, true, "%", "reversed", true);
load_plot("consumer-glibc-readiness-3.13-plot", data.index, data.glibc_readiness["3.13"], true, "%", "reversed", true);
load_plot("consumer-glibc-readiness-3.12-plot", data.index, data.glibc_readiness["3.12"], true, "%", "reversed", true);
load_plot("consumer-glibc-readiness-3.11-plot", data.index, data.glibc_readiness["3.11"], true, "%", "reversed", true);
load_plot("consumer-glibc-readiness-3.10-plot", data.index, data.glibc_readiness["3.10"], true, "%", "reversed", true);
Expand Down
5 changes: 5 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ def run(session: nox.Session) -> None:
session.run("python", "update.py", *session.posargs)


@nox.session(python=PYTHON_VERSION)
def serve(session: nox.Session) -> None:
session.run("python", "-m", "http.server", "-d", "build")


@nox.session(python=PYTHON_VERSION, venv_backend="none")
def timestamp(session: nox.Session) -> None:
"""Get timestamp for PyPI package cache on GHA"""
Expand Down
5 changes: 4 additions & 1 deletion update_consumer_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"3.10": pd.to_datetime("2026-10-04"),
"3.11": pd.to_datetime("2027-10-24"),
"3.12": pd.to_datetime("2028-10-04"),
"3.13": pd.to_datetime("2029-10-01"),
}


Expand Down Expand Up @@ -291,7 +292,9 @@ def update(path: Path, start: datetime, end: datetime):
out["glibc_version_non_eol"] = glibc_version_non_eol

python_versions_no_pep600_pip = ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9"]
python_versions = python_versions_no_pep600_pip + ["3.10", "3.11", "3.12"]
python_versions = python_versions_no_pep600_pip + [
v for v in PYTHON_EOL if v not in python_versions_no_pep600_pip
]
python_version = dict[str, list[str] | list[float]]()
python_version_non_eol = dict[str, list[str] | list[float]]()
policy_readiness = dict[str, dict[str, list[str] | list[float]]]()
Expand Down
2 changes: 1 addition & 1 deletion update_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# python implementations are a bit more complicated...
IMPL_X2 = ("cp27",)
IMPL_CP3_FIRST = 5
IMPL_CP3_LAST = 12
IMPL_CP3_LAST = 13
IMPL_PP3 = tuple(f"pp3{i}" for i in range(7, 9 + 1))
# that's what is ultimately displayed
IMPLEMENTATIONS = tuple(
Expand Down

0 comments on commit 910b2da

Please sign in to comment.