Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option --generator only works in pre-release package #269

Open
2 tasks done
gregbrowndev opened this issue Jun 12, 2023 · 3 comments
Open
2 tasks done

Option --generator only works in pre-release package #269

gregbrowndev opened this issue Jun 12, 2023 · 3 comments
Labels

Comments

@gregbrowndev
Copy link

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

@Insighttful
Copy link

Insighttful commented Jun 20, 2023

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

@agronholm
Copy link
Owner

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

@crazydiamondzgy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants