[med-svn] [Git][python-team/packages/python-stdlib-list][master] 3 commits: New upstream version 0.11.1
Colin Watson (@cjwatson)
gitlab at salsa.debian.org
Mon Feb 24 18:17:06 GMT 2025
Colin Watson pushed to branch master 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
- - - - -
e115e542 by Colin Watson at 2025-02-24T18:14:26+00:00
Update upstream source from tag 'upstream/0.11.1'
Update to upstream version '0.11.1'
with Debian dir 78c6a90bc3da23d96dc32722ff95d529c8930c96
- - - - -
1a13b3f9 by Colin Watson at 2025-02-24T18:16:33+00:00
releasing package python-stdlib-list version 0.11.1-1
- - - - -
11 changed files:
- .github/workflows/ci.yml
- .github/workflows/docs.yml
- .github/workflows/listgen.yml
- .github/workflows/release.yml
- + .github/workflows/zizmor.yml
- debian/changelog
- 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
=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+python-stdlib-list (0.11.1-1) unstable; urgency=medium
+
+ * Team upload.
+ * New upstream release.
+
+ -- Colin Watson <cjwatson at debian.org> Mon, 24 Feb 2025 18:16:20 +0000
+
python-stdlib-list (0.11.0-1) unstable; urgency=medium
* Team upload.
=====================================
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/-/compare/f21982b1be9126063b16f9ab10976be3618214a1...1a13b3f99902e58d6170157eeeb926287a5468f3
--
View it on GitLab: https://salsa.debian.org/python-team/packages/python-stdlib-list/-/compare/f21982b1be9126063b16f9ab10976be3618214a1...1a13b3f99902e58d6170157eeeb926287a5468f3
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/1f53098c/attachment-0001.htm>
More information about the debian-med-commit
mailing list