agronholm/sqlacodegen

Option --generator only works in pre-release package

gregbrowndev opened this issue · 3 comments

Things to check first

  • I have searched the existing issues and didn't find my bug already reported there

  • I have checked that my bug is still present in the latest release

Sqlacodegen version

2.3.0.post1

SQLAlchemy version

1.4.48

RDBMS vendor

PostgreSQL

What happened?

Trying to follow README:

sqlacodegen --generator dataclasses sqlite:///database.db

Error:

sqlacodegen: error: unrecognized arguments: --generator sqlite:///database.db

It does work when 3.0.0rc2 installed with pre-release allowed:

pip install --pre sqlacodegen

Should ideally keep README and docs in branch until version is released to avoid confusion.

Cheers though!

Database schema for reproducing the bug

N/A

Confirming same bug in sqlacodegen = "^2.3.0.post1"

Works with 3.9.9rc2 with poetry also:

poetry remove sqlacodegen
poetry add sqlacodegen@3.0.0rc2

Yeah, not a bug. The final release was not supposed to take this long, but I've been bogged down in other projects.

same issue, but i found it works normally in 3.0.0rc3