Steps to Reproduce
- Run
daf release 2.1.0 --dry-run
- Observe error: "Could not find version in setup.py"
Actual Behavior
The daf release command fails when the project uses pyproject.toml for package configuration instead of setup.py. The command tries to parse version from setup.py which only contains setup() with no version parameter.
Expected Behavior
The daf release command should support both setup.py and pyproject.toml formats. It should:
- First check if version exists in pyproject.toml under
[project] section
- Fall back to setup.py if pyproject.toml doesn't exist
- Support updating version in both files during release process
Additional Context
DevAIFlow migrated to pyproject.toml in an earlier version but the release automation wasn't updated. Manual release process from RELEASING.md works but requires manual version updates in both:
- devflow/init.py
- pyproject.toml
Workaround
Use manual release process from RELEASING.md until fixed.
Steps to Reproduce
daf release 2.1.0 --dry-runActual Behavior
The
daf releasecommand fails when the project uses pyproject.toml for package configuration instead of setup.py. The command tries to parse version from setup.py which only containssetup()with no version parameter.Expected Behavior
The
daf releasecommand should support both setup.py and pyproject.toml formats. It should:[project]sectionAdditional Context
DevAIFlow migrated to pyproject.toml in an earlier version but the release automation wasn't updated. Manual release process from RELEASING.md works but requires manual version updates in both:
Workaround
Use manual release process from RELEASING.md until fixed.