Conversation
The daf release command was failing because it expected version to be in setup.py, but the project migrated to pyproject.toml (PEP 517/518/621). Changes: - ReleaseManager now checks pyproject.toml first, falls back to setup.py - Update version in pyproject.toml when it exists - Skip empty setup.py files (modern format after migration) - Show correct file names in error messages and commits - Added 8 comprehensive tests for pyproject.toml support - Maintains full backward compatibility with setup.py-only projects The fix ensures daf release works for both modern (pyproject.toml) and legacy (setup.py) Python projects. Test Results: - All 8 new tests pass - All 3654 existing tests pass - Manual verification: daf release 2.2.0 --dry-run works correctly Fixes: #360 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Update session ID and start timestamp in _session.json - Add new session section to memory.md - Increment total sessions counter to 6 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #360: The
daf releasecommand was failing because it expected the version to be insetup.py, but the project migrated topyproject.toml(PEP 517/518/621) format.Changes Made
1. Updated
ReleaseManagerclass (devflow/release/manager.py):pyproject_fileattribute to track pyproject.toml locationread_current_version()to checkpyproject.tomlfirst, then fall back tosetup.pyupdate_version_files()to updatepyproject.tomlwhen it existssetup.pyfiles (modern format after migration)2. Updated
release_command.py(devflow/cli/commands/release_command.py):pyproject.tomlvssetup.py)3. Added comprehensive test coverage (
tests/test_release_manager_pyproject.py):pyproject.tomlsetup.pyfor backward compatibilitypyproject.tomlsetup.pyfilesHow It Works
The fix implements smart detection:
pyproject.tomlexists with a version field → read/write theresetup.pyexists with version field → use it (backward compatibility)This ensures the release command works for:
pyproject.toml(like DevAIFlow)setup.pyTesting
Steps to test
Scenarios tested
daf release 2.2.0 --dry-runworks correctlyDeployment considerations
Notes:
setup.pyTest Results
🤖 Generated with Claude Code
Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com