Skip to content

Fix unit tests for setuptools v82 compatibility#190

Open
Copilot wants to merge 3 commits intorenovate/setuptools-82.xfrom
copilot/sub-pr-187
Open

Fix unit tests for setuptools v82 compatibility#190
Copilot wants to merge 3 commits intorenovate/setuptools-82.xfrom
copilot/sub-pr-187

Conversation

Copy link

Copilot AI commented Feb 13, 2026

Setuptools v82 removed the deprecated pkg_resources module, breaking passlib==1.7.4 which depends on it.

Changes

  • Replaced passlib with secrets module: The only usage was passlib.pwd.genword(length=10) for GPG key password generation in src/admin_gpg.py. Replaced with Python's built-in secrets.choice() over an alphanumeric alphabet.
  • Removed passlib dependency from requirements.txt
  • Extracted _PASSWORD_ALPHABET constant at module level for maintainability
# Before
from passlib.pwd import genword
password = genword(length=10)

# After
import secrets
import string

_PASSWORD_ALPHABET = string.ascii_letters + string.digits
password = "".join(secrets.choice(_PASSWORD_ALPHABET) for _ in range(10))

The secrets module provides cryptographically strong random generation suitable for passwords and tokens.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits February 13, 2026 05:09
Co-authored-by: alithethird <39213991+alithethird@users.noreply.github.com>
Co-authored-by: alithethird <39213991+alithethird@users.noreply.github.com>
Copilot AI changed the title [WIP] Update dependency setuptools to version 82 Fix unit tests for setuptools v82 compatibility Feb 13, 2026
Copilot AI requested a review from alithethird February 13, 2026 05:12
@arturo-seijas arturo-seijas marked this pull request as ready for review February 23, 2026 09:59
@arturo-seijas arturo-seijas requested a review from a team as a code owner February 23, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants