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: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
strategy:
matrix:
python:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
Expand Down
96 changes: 0 additions & 96 deletions .github/workflows/listgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,102 +13,6 @@ on:
permissions: {}

jobs:
pre-list-legacy:
strategy:
matrix:
python:
- "3.9"

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false

- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
# NOTE: matrix.python is intentionally not used here.
python-version: "3.x"

- name: support deps
run: make dev INSTALL_EXTRA=support

- name: build pre-list
env:
LISTGEN_PYTHON_VERSION: "${{ matrix.python }}"
run: |
./env/bin/python ./support/fetch-sphinx.py "${LISTGEN_PYTHON_VERSION}" > pre-list.txt

- name: upload pre-list
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: pre-list-${{ matrix.python }}
path: pre-list.txt

expand-list-legacy:
needs: pre-list-legacy
strategy:
matrix:
python:
# - "3.7" # EOL
# - "3.8" # EOL
- "3.9"

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false

- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: ${{ matrix.python }}

- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
name: pre-list-${{ matrix.python }}

- name: walk modules
env:
LISTGEN_PYTHON_VERSION: ${{ matrix.python }}
LISTGEN_DRY_RUN: ${{ inputs.dry-run }}
run: |
python ./support/walk-modules.py "${LISTGEN_PYTHON_VERSION}.txt" < pre-list.txt
rm pre-list.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"

if [[ "${LISTGEN_DRY_RUN}" == "true" ]]; then
git diff
fi

- name: create PR
if: ${{ !inputs.dry-run }}
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
with:
commit-message: "[BOT] update list for ${{ matrix.python }}"
branch: update-stdlib-list-${{ matrix.python }}
base: main
branch-suffix: timestamp
title: "[BOT] update list for ${{ matrix.python }}"
body: |
This is an automated pull request, updating `${{ matrix.python }}.txt` after a detected change.

Please review manually before merging.
assignees: "woodruffw"
reviewers: "woodruffw"

expand-list:
strategy:
matrix:
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = []
requires-python = ">=3.9"
requires-python = ">=3.10"

[project.urls]
Homepage = "https://pypi.org/project/stdlib-list/"
Expand All @@ -37,8 +37,6 @@ test = ["pytest", "pytest-cov", "coverage[toml]"]
lint = ["mypy", "ruff"]
doc = ["sphinx", "furo"]
dev = ["build", "stdlib-list[test,lint,doc]"]
# CI only: used for list generation for Python versions < 3.10.
support = ["sphobjinv"]

[tool.mypy]
allow_redefinition = true
Expand Down
13 changes: 0 additions & 13 deletions support/fetch-sphinx.py

This file was deleted.