Skip to content

Migration from setup.py to pyproject.toml #491

Open
martin-springer wants to merge 2 commits intodevelopmentfrom
migrate-to-pyproject-toml
Open

Migration from setup.py to pyproject.toml #491
martin-springer wants to merge 2 commits intodevelopmentfrom
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 Report

❌ Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.82%. Comparing base (1d2d060) to head (77e8bd8).

Files with missing lines Patch % Lines
rdtools/__init__.py 60.00% 2 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##           development     #491      +/-   ##
===============================================
- Coverage        96.90%   96.82%   -0.09%     
===============================================
  Files               12       12              
  Lines             2329     2332       +3     
===============================================
+ Hits              2257     2258       +1     
- Misses              72       74       +2     

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

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