[med-svn] [Git][python-team/packages/python-stdlib-list][upstream] New upstream version 0.11.1
Colin Watson (@cjwatson)
gitlab at salsa.debian.org
Mon Feb 24 18:17:08 GMT 2025
Colin Watson pushed to branch upstream at Debian Python Team / packages / python-stdlib-list
Commits:
cc12e628 by Colin Watson at 2025-02-24T18:14:14+00:00
New upstream version 0.11.1
- - - - -
10 changed files:
- .github/workflows/ci.yml
- .github/workflows/docs.yml
- .github/workflows/listgen.yml
- .github/workflows/release.yml
- + .github/workflows/zizmor.yml
- pyproject.toml
- stdlib_list/__init__.py
- stdlib_list/base.py
- stdlib_list/lists/3.13.txt
- tests/test_base.py
Changes:
=====================================
.github/workflows/ci.yml
=====================================
@@ -20,6 +20,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout at v4
+ with:
+ persist-credentials: false
- uses: actions/setup-python at v5
with:
@@ -47,8 +49,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout at v4
+ with:
+ persist-credentials: false
+
- uses: actions/setup-python at v5
with:
python-version: "3.x"
+
- name: lint
run: make lint INSTALL_EXTRA=lint
=====================================
.github/workflows/docs.yml
=====================================
@@ -11,6 +11,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout at v4
+ with:
+ persist-credentials: false
- uses: actions/setup-python at v5
with:
=====================================
.github/workflows/listgen.yml
=====================================
@@ -15,25 +15,29 @@ jobs:
strategy:
matrix:
python:
- - "3.7"
- - "3.8"
- "3.9"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout at v4
+ with:
+ persist-credentials: false
+
- uses: actions/setup-python at v5
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 at v4
with:
@@ -53,6 +57,8 @@ jobs:
steps:
- uses: actions/checkout at v4
+ with:
+ persist-credentials: false
- uses: actions/setup-python at v5
with:
@@ -114,6 +120,9 @@ jobs:
steps:
- uses: actions/checkout at v4
+ with:
+ persist-credentials: false
+
- uses: actions/setup-python at v5
with:
=====================================
.github/workflows/release.yml
=====================================
@@ -20,22 +20,20 @@ jobs:
steps:
- uses: actions/checkout at v4
+ with:
+ persist-credentials: false
- uses: actions/setup-python at v5
with:
python-version: "3.x"
- name: deps
- run: python -m pip install -U setuptools build wheel
+ run: python -m pip install -U build
- name: build
run: python -m build
- name: publish
- uses: pypa/gh-action-pypi-publish at v1.10.3
-
- - name: sign
- uses: sigstore/gh-action-sigstore-python at v3.0.0
+ uses: pypa/gh-action-pypi-publish at v1.12.4
with:
- inputs: ./dist/*.tar.gz ./dist/*.whl
- release-signing-artifacts: true
+ attestations: true
=====================================
.github/workflows/zizmor.yml
=====================================
@@ -0,0 +1,36 @@
+name: GitHub Actions Security Analysis with zizmor 🌈
+
+on:
+ push:
+ branches: ["main"]
+ pull_request:
+ branches: ["**"]
+
+jobs:
+ zizmor:
+ name: zizmor latest via PyPI
+ runs-on: ubuntu-latest
+ permissions:
+ security-events: write
+ # required for workflows in private repositories
+ contents: read
+ actions: read
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout at v4
+ with:
+ persist-credentials: false
+
+ - name: Install the latest version of uv
+ uses: astral-sh/setup-uv at v5
+
+ - name: Run zizmor 🌈
+ run: uvx zizmor --format sarif . > results.sarif
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Upload SARIF file
+ uses: github/codeql-action/upload-sarif at v3
+ with:
+ sarif_file: results.sarif
+ category: zizmor
=====================================
pyproject.toml
=====================================
@@ -11,7 +11,7 @@ include = ["tests/"]
[project]
name = "stdlib-list"
dynamic = ["version"]
-description = "A list of Python Standard Libraries (2.7 through 3.12)."
+description = "A list of Python Standard Libraries (2.7 through 3.13)."
readme = "README.md"
license = { file = "LICENSE" }
authors = [{ name = "Jack Maney", email = "jackmaney at gmail.com" }]
=====================================
stdlib_list/__init__.py
=====================================
@@ -1,4 +1,4 @@
-__version__ = "0.11.0"
+__version__ = "0.11.1"
# Import all the things that used to be in here for backwards-compatibility reasons
from .base import (
=====================================
stdlib_list/base.py
=====================================
@@ -19,6 +19,7 @@ long_versions = [
"3.10",
"3.11",
"3.12",
+ "3.13",
]
short_versions = [".".join(x.split(".")[:2]) for x in long_versions]
=====================================
stdlib_list/lists/3.13.txt
=====================================
@@ -3,6 +3,7 @@ __main__
_abc
_aix_support
_android_support
+_apple_support
_ast
_asyncio
_bisect
=====================================
tests/test_base.py
=====================================
@@ -1,4 +1,4 @@
-import pkgutil
+from importlib import resources
import pytest
@@ -22,9 +22,17 @@ def test_get_canonical_version_raises(version):
@pytest.mark.parametrize("version", [*stdlib_list.short_versions, *stdlib_list.long_versions])
def test_self_consistent(version):
list_path = f"lists/{stdlib_list.get_canonical_version(version)}.txt"
- modules = pkgutil.get_data("stdlib_list", list_path).decode().splitlines()
+ modules = resources.files("stdlib_list").joinpath(list_path).read_text().splitlines()
for mod_name in modules:
assert stdlib_list.in_stdlib(mod_name, version)
assert modules == stdlib_list.stdlib_list(version)
+
+
+ at pytest.mark.parametrize(
+ "version_file", [f.name for f in resources.files("stdlib_list").joinpath("lists").iterdir()]
+)
+def test_self_consistent_reverse(version_file):
+ version = version_file.removesuffix(".txt")
+ assert stdlib_list.stdlib_list(version)
View it on GitLab: https://salsa.debian.org/python-team/packages/python-stdlib-list/-/commit/cc12e62810933edcda7d4fc9fd342a0d4ddb8918
--
View it on GitLab: https://salsa.debian.org/python-team/packages/python-stdlib-list/-/commit/cc12e62810933edcda7d4fc9fd342a0d4ddb8918
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20250224/45b2afd6/attachment-0001.htm>
More information about the debian-med-commit
mailing list