Skip to content

Migration from setup.py to pyproject.toml #491

Merged
martin-springer merged 3 commits intorelease_321from
migrate-to-pyproject-toml
Mar 20, 2026
Merged

Migration from setup.py to pyproject.toml #491
martin-springer merged 3 commits intorelease_321from
migrate-to-pyproject-toml

Conversation

@martin-springer
Copy link
Collaborator

Modernizes the package build configuration by replacing setup.py, setup.cfg, versioneer.py, and MANIFEST.in with a single pyproject.toml file. Uses setuptools as the build backend and setuptools-scm for automatic version management from git tags (replacing versioneer). Updates rdtools/__init__.py to use importlib.metadata for version retrieval.

Changes

  • Added pyproject.toml with all project metadata, dependencies, optional dependencies, URLs, pytest config, and package data
  • Removed setup.py, setup.cfg, versioneer.py, MANIFEST.in, and rdtools/_version.py
  • Updated rdtools/__init__.py to use importlib.metadata.version() instead of versioneer

Checklist

  • Code changes are covered by tests
  • Code changes have been evaluated for compatibility/integration with TrendAnalysis
  • New functions added to __init__.py
  • API.rst is up to date, along with other sphinx docs pages
  • Example notebooks are rerun and differences in results scrutinized
  • Updated changelog

@codecov-commenter
Copy link

codecov-commenter commented Mar 6, 2026

Codecov Report

❌ Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.69%. Comparing base (3c594db) to head (55b4a3a).

Files with missing lines Patch % Lines
rdtools/__init__.py 60.00% 2 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##           development     #491      +/-   ##
===============================================
- Coverage        97.03%   96.69%   -0.34%     
===============================================
  Files               12       12              
  Lines             2329     2332       +3     
===============================================
- Hits              2260     2255       -5     
- Misses              69       77       +8     

☔ 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.

@martin-springer martin-springer changed the base branch from development to release_321 March 20, 2026 13:44
@martin-springer martin-springer merged commit b505b3f into release_321 Mar 20, 2026
26 of 29 checks passed
@martin-springer martin-springer deleted the migrate-to-pyproject-toml branch March 20, 2026 15:38
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