Skip to content

Update hatchling to 1.28.0#603

Merged
jan-janssen merged 4 commits intomainfrom
hatchling
Jan 4, 2026
Merged

Update hatchling to 1.28.0#603
jan-janssen merged 4 commits intomainfrom
hatchling

Conversation

@jan-janssen
Copy link
Copy Markdown
Member

@jan-janssen jan-janssen commented Jan 4, 2026

Summary by CodeRabbit

  • Chores
    • Updated the hatchling build system dependency from version 1.27.0 to 1.28.0 across build configuration files.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jan 4, 2026

📝 Walkthrough

Walkthrough

Hatchling build tool dependency is updated from version 1.27.0 to 1.28.0 across all project configuration files: two CI environment files, the Binder environment file, and the build system configuration.

Changes

Cohort / File(s) Summary
CI and Binder Environment Configuration
.ci_support/environment-docs.yml, .ci_support/environment.yml, binder/environment.yml
Hatchling version bumped from 1.27.0 to 1.28.0 in each conda environment file; no other dependencies affected
Build System Configuration
pyproject.toml
Hatchling version updated from 1.27.0 to 1.28.0 in the build-system requires section

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

🐰 A bump so small, yet everywhere it goes,
From 1.27 to 1.28 the version flows,
Four files now match, in harmony they sit,
Hatchling's ready—let the build script fit! ✨

Pre-merge checks

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Update hatchling to 1.28.0' directly and accurately describes the main change across all modified files, which is bumping the hatchling dependency version from 1.27.0 to 1.28.0.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c421093 and 81140a8.

📒 Files selected for processing (4)
  • .ci_support/environment-docs.yml
  • .ci_support/environment.yml
  • binder/environment.yml
  • pyproject.toml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
  • GitHub Check: unittest_qe
  • GitHub Check: unittest_matrix (macos-latest, 3.14)
  • GitHub Check: unittest_matrix (ubuntu-latest, 3.11)
  • GitHub Check: unittest_orb
  • GitHub Check: unittest_siesta
  • GitHub Check: unittest_matrix (ubuntu-latest, 3.14)
  • GitHub Check: unittest_old
  • GitHub Check: unittest_grace
  • GitHub Check: coverage
  • GitHub Check: unittest_gpaw
  • GitHub Check: notebooks
🔇 Additional comments (3)
.ci_support/environment-docs.yml (1)

24-24: LGTM!

The hatchling version bump is consistent with the other environment files in this PR.

pyproject.toml (1)

2-2: LGTM!

The build-system requirement is updated consistently with the conda environment files. The pinned version ensures reproducible builds.

binder/environment.yml (1)

20-20: LGTM!

The hatchling version is updated consistently across all environment files in this PR, ensuring uniform build behavior across CI, docs, and Binder environments.

- tqdm =4.67.1
- pyiron_vasp =0.2.18
- hatchling =1.27.0
- hatchling =1.28.0
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.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

# First, let's examine the actual file to see the change
cat -n .ci_support/environment.yml | head -25

Repository: pyiron/atomistics

Length of output: 540


🏁 Script executed:

# Search for all files that reference hatchling in the PR
rg -l "hatchling" --type yaml --type txt --type toml --type cfg

Repository: pyiron/atomistics

Length of output: 88


🌐 Web query:

hatchling 1.28.0 release notes changelog pypi

💡 Result:

Hatchling 1.28.0 — release notes / changelog summary:

  • Version: 1.28.0 (released 2025-11-26 on the project changelog; PyPI upload 2025-11-27). (hatch.pypa.io)
  • Notable changes:
    • Changed: dropped support for Python 3.9. (hatch.pypa.io)
    • Added: sbom-files option and sbom_files build data to the wheel build target (for including SBOM files). (hatch.pypa.io)

Sources:

  • Official Hatchling changelog (history). (hatch.pypa.io)
  • PyPI release page for hatchling (shows the 1.28.0 files and upload metadata). (pypi.org)

Citations:


🏁 Script executed:

# Find Python version requirements
fd -e toml -e py -e yml | xargs rg -l "python.*3\.(9|10|11|12)" -i | head -20

Repository: pyiron/atomistics

Length of output: 75


🏁 Script executed:

# Check project configuration files for Python requirements
cat pyproject.toml | head -50

Repository: pyiron/atomistics

Length of output: 1444


🏁 Script executed:

# Check GitHub Actions workflows to see if Python 3.9 is still tested
fd -e yml -e yaml | grep -E "(workflow|github|ci|test)" | head -10

Repository: pyiron/atomistics

Length of output: 43


🏁 Script executed:

# Check for CI workflows
find .github -name "*.yml" -o -name "*.yaml" 2>/dev/null | head -10

Repository: pyiron/atomistics

Length of output: 176


🏁 Script executed:

# Check if any workflow tests on Python 3.9
find . -type f \( -name "*.yml" -o -name "*.yaml" \) | xargs grep -l "3.9" 2>/dev/null | head -10

Repository: pyiron/atomistics

Length of output: 43


🏁 Script executed:

# Check the main CI pipeline workflow
cat .github/workflows/pipeline.yml

Repository: pyiron/atomistics

Length of output: 14473


🏁 Script executed:

# Also check deploy workflow
cat .github/workflows/deploy.yml

Repository: pyiron/atomistics

Length of output: 1208


Critical incompatibility: hatchling 1.28.0 dropped Python 3.9 support, but the project declares requires-python = ">=3.9" in pyproject.toml.

The version bump to hatchling 1.28.0 introduces a breaking change. According to the official release notes, Python 3.9 support was removed in this version. However, the project still claims Python 3.9 compatibility in pyproject.toml (line 12: requires-python = ">=3.9, <3.15") and lists it in classifiers. This creates an inconsistency: users attempting to build with Python 3.9 will encounter a failure.

Either update pyproject.toml to require Python >=3.10 (removing the Python 3.9 classifier), or downgrade hatchling to a version that still supports Python 3.9.

🤖 Prompt for AI Agents
In .ci_support/environment.yml around line 19, hatchling is pinned to 1.28.0
which drops Python 3.9 support; resolve the mismatch between that pin and
pyproject.toml (requires-python = ">=3.9, <3.15") by either (A) downgrading
hatchling to the last version that supports Python 3.9 (e.g., pin hatchling to
<1.28, such as 1.27.x) in this file, or (B) updating pyproject.toml to require
Python >=3.10 and removing the Python 3.9 classifier; apply whichever path you
choose consistently across CI, environment.yml, and pyproject.toml classifiers.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.74%. Comparing base (c421093) to head (81140a8).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #603   +/-   ##
=======================================
  Coverage   86.74%   86.74%           
=======================================
  Files          42       42           
  Lines        2406     2406           
=======================================
  Hits         2087     2087           
  Misses        319      319           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jan-janssen jan-janssen merged commit 50548f8 into main Jan 4, 2026
29 checks passed
@jan-janssen jan-janssen deleted the hatchling branch January 4, 2026 11:26
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.

1 participant