Skip to content

uvloop is now optional#1248

Merged
phenobarbital merged 3 commits into
masterfrom
new-drivers
Sep 7, 2024
Merged

uvloop is now optional#1248
phenobarbital merged 3 commits into
masterfrom
new-drivers

Conversation

@phenobarbital
Copy link
Copy Markdown
Owner

@phenobarbital phenobarbital commented Sep 7, 2024

Summary by Sourcery

Make uvloop an optional dependency and update the version number to 2.8.6. Remove uvloop installation from the PostgreSQL driver.

Enhancements:

  • Make uvloop an optional dependency by moving it to extras_require in setup.py.

Chores:

  • Update the version number from 2.8.4 to 2.8.6 in asyncdb/version.py.

@sourcery-ai
Copy link
Copy Markdown
Contributor

sourcery-ai Bot commented Sep 7, 2024

Reviewer's Guide by Sourcery

This pull request makes uvloop optional and updates several dependencies. The main changes include removing uvloop as a required dependency, adding it as an optional dependency, and updating versions of some packages.

File-Level Changes

Change Details Files
Made uvloop an optional dependency
  • Removed uvloop from the main install_requires list
  • Added uvloop to extras_require under a new 'uvloop' option
  • Kept uvloop in the 'default' extras_require list
setup.py
Updated versions of several dependencies
  • Updated duckdb from 0.10.2 to 1.0.0
  • Updated dask from 2023.3.0 to 2024.8.2
  • Updated polars from 0.20.4 to 1.6.0
setup.py
Removed uvloop installation from postgres driver
  • Removed import of uvloop
  • Removed uvloop event loop policy setting and installation
asyncdb/drivers/postgres.py
Bumped package version
  • Updated version from 2.8.4 to 2.8.6
asyncdb/version.py

Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • Continue your discussion with Sourcery by replying directly to review comments.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

@phenobarbital phenobarbital merged commit 31682fb into master Sep 7, 2024
@phenobarbital phenobarbital deleted the new-drivers branch September 7, 2024 22:02
Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey @phenobarbital - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Please provide more context in the PR description. Include the rationale for making uvloop optional, mention the package version updates, and explain any potential impacts on performance or functionality.
Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

Comment on lines -50 to -51
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
uvloop.install()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

question (performance): Explain the removal of uvloop setup for PostgreSQL driver

The removal of uvloop setup for the PostgreSQL driver could significantly impact performance. What's the rationale behind this change, and how does it align with making uvloop optional in setup.py?

phenobarbital added a commit that referenced this pull request Mar 20, 2026
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

Successfully merging this pull request may close these issues.

1 participant