Skip to content

Commit

Permalink
Bump uvloop from 0.17.0 to 0.18.0 (#728)
Browse files Browse the repository at this point in the history
* Bump uvloop from 0.17.0 to 0.18.0

Bumps [uvloop](https://github.com/MagicStack/uvloop) from 0.17.0 to 0.18.0.
- [Release notes](https://github.com/MagicStack/uvloop/releases)
- [Commits](MagicStack/uvloop@v0.17.0...v0.18.0)

---
updated-dependencies:
- dependency-name: uvloop
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix instantiation

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aaron Bach <[email protected]>
  • Loading branch information
dependabot[bot] and bachya authored Oct 20, 2023
1 parent bbc45da commit 983ff9d
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 43 deletions.
6 changes: 1 addition & 5 deletions ecowitt2mqtt/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from __future__ import annotations

import argparse
import asyncio
import os
import sys
from typing import Any
Expand Down Expand Up @@ -440,9 +439,6 @@ def get_cli_arguments(args: list[str]) -> dict[str, Any]:

def main() -> None:
"""Run."""
loop = uvloop.new_event_loop()
asyncio.set_event_loop(loop)

cli_arguments = get_cli_arguments(sys.argv[1:])
env_vars = get_env_vars()
params: dict[str, Any] = env_vars | cli_arguments
Expand All @@ -451,4 +447,4 @@ def main() -> None:
params[CONF_VERBOSE] = True

ecowitt = Ecowitt(params)
loop.run_until_complete(ecowitt.async_start())
uvloop.run(ecowitt.async_start())
79 changes: 42 additions & 37 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ python = "^3.9.0"
python-multipart = ">=0.0.5,<0.0.7"
rapidfuzz = ">=2.13,<4.0"
uvicorn = ">=0.19.0"
uvloop = "^0.17.0"
uvloop = ">=0.17,<0.19"
voluptuous = "^0.13.1"

[tool.poetry.group.dev.dependencies]
Expand Down

0 comments on commit 983ff9d

Please sign in to comment.