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

SQLAlchemy should be an extra/optional dependency #498

Open
pcroland opened this issue Dec 28, 2023 · 4 comments
Open

SQLAlchemy should be an extra/optional dependency #498

pcroland opened this issue Dec 28, 2023 · 4 comments

Comments

@pcroland
Copy link

pcroland commented Dec 28, 2023

I think SQLAlchemy should be an optional dependency. I do a pyinstaller build for one of my tools. The tool fetches some titles from an IMDb ID and I don't use any feature that would require SQLAlchemy, but it adds 13MBs to the package.

@uyar
Copy link
Collaborator

uyar commented Dec 28, 2023

This was discussed in #75. Personally I agree but it would be quite a breaking change.

@pcroland
Copy link
Author

Is there a way with poetry to not install it or add a dummy package as SQLAlchemy? I'm interested in any hacky solution.

@uyar
Copy link
Collaborator

uyar commented Dec 28, 2023

Is there a way with poetry to not install it or add a dummy package as SQLAlchemy? I'm interested in any hacky solution.

With poetry, I don't know. Manually removing it (and its dependencies) from the lock file might work. For pip, there's the no-deps option but that would mean manually installing the other dependencies (lxml).

https://stackoverflow.com/questions/12759761/pip-force-install-ignoring-dependencies/12759996#12759996

@uyar
Copy link
Collaborator

uyar commented Dec 29, 2023

Or you could run your own extra PyPI server and put a dummy SQLAlchemy package there.

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

No branches or pull requests

2 participants