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

Remove psycopg2 dependency #553

Merged
merged 3 commits into from
Sep 27, 2021
Merged

Remove psycopg2 dependency #553

merged 3 commits into from
Sep 27, 2021

Conversation

jenhagg
Copy link
Collaborator

@jenhagg jenhagg commented Sep 24, 2021

Purpose

Reduce the installation overhead and avoid related errors due compilation, etc.

What the code is doing

We aren't using this package except in tests, and don't really need to be running those right now - keeping them around in case they are useful when we switch to sqlite or alternate data store. For now they are moved to a sql folder and we tell pytest to ignore anything in there. As a result, we can simplify the ci workflow to just use pytest-local.

Testing

Ran tox -e pytest-local and also built the docs locally - as expected there is an error generating docs for modules that import psycopg2, but those are simply omitted, and the rest of the docs look fine.

Time estimate

5 min

@jenhagg jenhagg self-assigned this Sep 24, 2021
@jenhagg jenhagg added the dependencies Pull requests that update a dependency file label Sep 24, 2021
Copy link
Contributor

@kasparm kasparm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That works and looks good to me.
Thanks @jon-hagg

@jenhagg jenhagg merged commit c1b9173 into develop Sep 27, 2021
@jenhagg jenhagg deleted the jon/psycopg2 branch September 27, 2021 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants