Skip to content

MAINT: Move setuptools_scm config to pyproject.toml#165

Merged
arokem merged 1 commit into
tractometry:mainfrom
arokem:move_scm_setuptools
Jan 22, 2026
Merged

MAINT: Move setuptools_scm config to pyproject.toml#165
arokem merged 1 commit into
tractometry:mainfrom
arokem:move_scm_setuptools

Conversation

@arokem

@arokem arokem commented Jan 21, 2026

Copy link
Copy Markdown
Member

Also gets rid of horrid hack to avoid local versions, which cannot be uploaded to testpypi for purpose of testing uploads on merges.

Also gets rid of horrid hack to avoid local versions, which cannot be
uploaded to testpypi for purpose of testing uploads on merges.
Copilot AI review requested due to automatic review settings January 21, 2026 23:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates setuptools_scm configuration from setup.py to pyproject.toml and replaces a custom local version hack with the built-in no-local-version scheme. This modernizes the package configuration and solves the TestPyPI upload issue more cleanly.

Changes:

  • Removed custom local_version function and related imports from setup.py
  • Moved setuptools_scm configuration to pyproject.toml using the no-local-version built-in scheme
  • Maintained the same version file output path (AFQ/version.py)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
setup.py Removed setuptools_scm configuration, custom local_version function, and unused imports (string, setuptools_scm.get_version)
pyproject.toml Added setuptools_scm configuration with write_to and local_scheme settings

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@arokem
arokem merged commit 09e86d7 into tractometry:main Jan 22, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants