Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
23 changes: 17 additions & 6 deletions .github/workflows/listgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,14 @@ jobs:
python ./support/walk-modules.py "${LISTGEN_PYTHON_VERSION}.txt" < pre-list.txt
rm pre-list.txt

sort -u -o ./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt" \
./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt" \
"${LISTGEN_PYTHON_VERSION}.txt"
if [[ -f "./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt"" ]]; then
sort -u -o ./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt" \
./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt" \
"${LISTGEN_PYTHON_VERSION}.txt"
else
sort -u -o ./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt" \
"${LISTGEN_PYTHON_VERSION}.txt"
fi

rm "${LISTGEN_PYTHON_VERSION}.txt"

Expand Down Expand Up @@ -102,6 +107,7 @@ jobs:
python:
- "3.10"
- "3.11"
- "3.12"

runs-on: ubuntu-latest

Expand All @@ -119,9 +125,14 @@ jobs:
run: |
python ./support/walk-modules.py "${LISTGEN_PYTHON_VERSION}.txt"

sort -u -o ./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt" \
./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt" \
"${LISTGEN_PYTHON_VERSION}.txt"
if [[ -f "./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt"" ]]; then
sort -u -o ./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt" \
./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt" \
"${LISTGEN_PYTHON_VERSION}.txt"
else
sort -u -o ./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt" \
"${LISTGEN_PYTHON_VERSION}.txt"
fi

rm "${LISTGEN_PYTHON_VERSION}.txt"

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![CI](https://github.com/pypi/stdlib-list/actions/workflows/ci.yml/badge.svg)](https://github.com/pypi/stdlib-list/actions/workflows/ci.yml)

This package includes lists of all of the standard libraries for Python 2.6
through 3.11.
through 3.12.

**IMPORTANT**: If you're on Python 3.10 or newer, you **probably don't need this library**.
See [`sys.stdlib_module_names`](https://docs.python.org/3/library/sys.html#sys.stdlib_module_names)
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ stdlib-list
===========

This package includes lists of all of the standard libraries for Python 2.6
through 3.11.
through 3.12.

.. note::

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include = ["tests/"]
[project]
name = "stdlib-list"
dynamic = ["version"]
description = "A list of Python Standard Libraries (2.7 through 3.11)."
description = "A list of Python Standard Libraries (2.7 through 3.12)."
readme = "README.md"
license = { file = "LICENSE" }
authors = [{ name = "Jack Maney", email = "jackmaney@gmail.com" }]
Expand Down
1 change: 1 addition & 0 deletions stdlib_list/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"3.9",
"3.10",
"3.11",
"3.12",
]

short_versions = [".".join(x.split(".")[:2]) for x in long_versions]
Expand Down