-
Notifications
You must be signed in to change notification settings - Fork 2
daf release command fails with pyproject.toml - expects setup.py version field #360
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working