Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Aug 16, 2025

This PR contains the following updates:

Package Change Age Confidence
setuptools-scm ^8.2.0 -> ^9.0.0 age confidence

Release Notes

pypa/setuptools-scm (setuptools-scm)

v9.2.2

Compare Source

Fixed
  • fix #​1231: don't warn about tool.setuptools.dynamic.version when only using file finder.
    The warning about combining version guessing with setuptools dynamic versions should only
    be issued when setuptools-scm is performing version inference, not when it's only being
    used for its file finder functionality.

v9.2.1

Compare Source

Fixed
  • fix #​1216: accept and create a warning for usages of version = attr: in setuptools config.
    unfortunately dozens of projects cargo-culted that antipattern

v9.2.0

Compare Source

Added
  • add simplified activation via setuptools-scm[simple] extra

    A new streamlined way to enable version inference without requiring a [tool.setuptools_scm] section.
    When setuptools-scm[simple] is in build-system.requires and version is in project.dynamic,
    version inference is automatically enabled with default settings.

Removed
  • unchecked simplified activation - too many projects use setups where it would fail
Changed
  • refine activation logic and add unittest for the relevant cases instead of trying to speedrun setuptools

v9.1.1

Compare Source

Fixed
  • fix #​1194: correctly handle version keyword when pyproject metadata is missing

v9.1.0

Compare Source

Fixed
  • complete reiteration of the decision logic for enabling version inference on setuptools_scm

    • shared logic for the important parts
    • proper deferring based in precedence of finalize options vs version keyword
    • unittestable for the parsing parts and the decision steps

v9.0.3

Compare Source

Fixed
  • fix #​1184: verify version is dynamic if the dependency is used as indicator for enabling

v9.0.2

Compare Source

Fixed
  • fix #​1184: in case setuptools-scm is a indirect dependency and no pyproject.toml section exists - don't infer the version

v9.0.1

Compare Source

Fixed
  • fix #​1180: ensure version dumping works when no scm_version is given (problems in downstreams)
  • fix #​1181: config - reintroduce control over when we expect a section to be present
    as it turns out there's valid use cases where setuptools_scm is not direct part of the dependencies
  • add codespell pre-commit hook

v9.0.0

Compare Source

Breaking
  • fix #​1019: pass python version build tags from scm version to results properly
Added
  • add setuptools-scm console_scripts entry point to make the CLI directly executable
  • make Mercurial command configurable by environment variable SETUPTOOLS_SCM_HG_COMMAND
  • fix #​1099 use file modification times for dirty working directory timestamps instead of current time
  • fix #​1059: add SETUPTOOLS_SCM_PRETEND_METADATA environment variable to override individual ScmVersion fields
  • add scm parameter support to get_version() function for nested SCM configuration
  • fix #​987: expand documentation on git archival files and add cli tools for good defaults
  • fix #​311: document github/gitlab ci pipelines that enable auto-upload to test-pypi/pypi
  • fix #​1022: allow version_keyword to override infer_version when configuration differs
  • fix #​554: document fallback_root parameter in programmatic usage and configuration
Changed
  • add pip to test optional dependencies for improved uv venv compatibility
  • migrate to selectable entrypoints for better extensibility
  • improve typing for entry_points
  • refactor file modification time logic into shared helper function for better maintainability
  • reduce complexity of HgWorkdir.get_meta method by extracting focused helper methods
  • fix #​1150: enable setuptools-scm when we are a build requirement
  • feature #​1154: add the commit id the the default version file template
  • drop scriv
  • fix #​921: document setuptools version requirements more consistently - 61 as minimum asn 8 as recommended minimum
Fixed
  • fix #​1145: ensure GitWorkdir.get_head_date returns consistent UTC dates regardless of local timezone
  • fix #​687: ensure calendar versioning tests use consistent time context to prevent failures around midnight in non-UTC timezones
  • reintroduce Python 3.9 entrypoints shim for compatibility
  • fix #​1136: update customizing.md to fix missing import
  • fix #​1001: document the missing version schemes and add examples in the docs
  • fix #​1115: explicitly document file finder behaviour
  • fix #​879: add test that validates case different behavior on windows
  • migrate git describe command to new scm config
  • add support for failing on missing submodules
  • fix #​279: expand errors when scm can be found upwards and relative_to wasn't used
  • fix #​577: introduce explicit scmversion node and short node
  • fix #​1100: add workaround for readthedocs worktress to the docs
  • fix #​790: document shallow fail for rtd
  • fix #​474: expand version not found error message to provide clearer guidance about SETUPTOOLS_SCM_PRETEND_VERSION_FOR_* environment variables
  • fix #​324: document/recommend the v tag prefix
  • fix #​501: add py.typed
  • fix #​804: git - use fallback version instead of 0.0 when no version is found at all
  • fix #​1139: use logging.lastResort instead of a own replica to avoid polluting logging._handlerList
  • fix #​873: don't infer version in cli if --no-version is given
  • fix #​535: accept tags from a release action in the gh ui
  • fix #​1073: explain namespaces for release-branch-semver
  • fix #​1052: use consistent node hash length across all SCM backends
  • fix #​1045: reindent the __all__ in the version template for better readability
  • fix #​968: harden environment override finding with better normalization and typo suggestions
  • fix #​846: add support for failing on missing submodules

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/setuptools-scm-9.x branch from 5d9a14a to 4fa044c Compare October 27, 2025 02:00
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.

2 participants