Skip to content

daf release command fails with pyproject.toml - expects setup.py version field #360

@itdove

Description

@itdove

Steps to Reproduce

  1. Run daf release 2.1.0 --dry-run
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions