1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
From:
Subject: Debian changes
The Debian packaging of python-discovery30303 is maintained in git, using a workflow
similar to the one described in dgit-maint-merge(7).
The Debian delta is represented by this one combined patch; there isn't a
patch queue that can be represented as a quilt series.
A detailed breakdown of the changes is available from their canonical
representation -- git commits in the packaging repository.
For example, to see the changes made by the Debian maintainer in the first
upload of upstream version 1.2.3, you could use:
% git clone https://git.dgit.debian.org/python-discovery30303
% cd python-discovery30303
% git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'
(If you have dgit, use `dgit clone python-discovery30303`, rather than plain `git clone`.)
We don't use debian/source/options single-debian-patch because it has bugs.
Therefore, NMUs etc. may nevertheless have made additional patches.
---
diff --git a/README.md b/README.md
index 1344929..991eabc 100644
--- a/README.md
+++ b/README.md
@@ -1,35 +1,5 @@
# Discovery 30303
-<p align="center">
- <a href="https://github.com/bdraco/discovery30303/actions?query=workflow%3ACI">
- <img src="https://img.shields.io/github/workflow/status/bdraco/discovery30303/CI/main?label=CI&logo=github&style=flat-square" alt="CI Status" >
- </a>
- <a href="https://discovery30303.readthedocs.io">
- <img src="https://img.shields.io/readthedocs/discovery30303.svg?logo=read-the-docs&logoColor=fff&style=flat-square" alt="Documentation Status">
- </a>
- <a href="https://codecov.io/gh/bdraco/discovery30303">
- <img src="https://img.shields.io/codecov/c/github/bdraco/discovery30303.svg?logo=codecov&logoColor=fff&style=flat-square" alt="Test coverage percentage">
- </a>
-</p>
-<p align="center">
- <a href="https://python-poetry.org/">
- <img src="https://img.shields.io/badge/packaging-poetry-299bd7?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAASCAYAAABrXO8xAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJJSURBVHgBfZLPa1NBEMe/s7tNXoxW1KJQKaUHkXhQvHgW6UHQQ09CBS/6V3hKc/AP8CqCrUcpmop3Cx48eDB4yEECjVQrlZb80CRN8t6OM/teagVxYZi38+Yz853dJbzoMV3MM8cJUcLMSUKIE8AzQ2PieZzFxEJOHMOgMQQ+dUgSAckNXhapU/NMhDSWLs1B24A8sO1xrN4NECkcAC9ASkiIJc6k5TRiUDPhnyMMdhKc+Zx19l6SgyeW76BEONY9exVQMzKExGKwwPsCzza7KGSSWRWEQhyEaDXp6ZHEr416ygbiKYOd7TEWvvcQIeusHYMJGhTwF9y7sGnSwaWyFAiyoxzqW0PM/RjghPxF2pWReAowTEXnDh0xgcLs8l2YQmOrj3N7ByiqEoH0cARs4u78WgAVkoEDIDoOi3AkcLOHU60RIg5wC4ZuTC7FaHKQm8Hq1fQuSOBvX/sodmNJSB5geaF5CPIkUeecdMxieoRO5jz9bheL6/tXjrwCyX/UYBUcjCaWHljx1xiX6z9xEjkYAzbGVnB8pvLmyXm9ep+W8CmsSHQQY77Zx1zboxAV0w7ybMhQmfqdmmw3nEp1I0Z+FGO6M8LZdoyZnuzzBdjISicKRnpxzI9fPb+0oYXsNdyi+d3h9bm9MWYHFtPeIZfLwzmFDKy1ai3p+PDls1Llz4yyFpferxjnyjJDSEy9CaCx5m2cJPerq6Xm34eTrZt3PqxYO1XOwDYZrFlH1fWnpU38Y9HRze3lj0vOujZcXKuuXm3jP+s3KbZVra7y2EAAAAAASUVORK5CYII=" alt="Poetry">
- </a>
- <a href="https://github.com/ambv/black">
- <img src="https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square" alt="black">
- </a>
- <a href="https://github.com/pre-commit/pre-commit">
- <img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=flat-square" alt="pre-commit">
- </a>
-</p>
-<p align="center">
- <a href="https://pypi.org/project/discovery30303/">
- <img src="https://img.shields.io/pypi/v/discovery30303.svg?logo=python&logoColor=fff&style=flat-square" alt="PyPI Version">
- </a>
- <img src="https://img.shields.io/pypi/pyversions/discovery30303.svg?style=flat-square&logo=python&logoColor=fff" alt="Supported Python versions">
- <img src="https://img.shields.io/pypi/l/discovery30303.svg?style=flat-square" alt="License">
-</p>
-
Discover devices that respond on port 30303
## Installation
diff --git a/tests/test_init.py b/tests/test_init.py
index f0f7b48..27c68a5 100644
--- a/tests/test_init.py
+++ b/tests/test_init.py
@@ -3,6 +3,7 @@ import contextlib
from unittest.mock import MagicMock, patch
import pytest
+import pytest_asyncio
from discovery30303 import (
AIODiscovery30303,
@@ -12,7 +13,7 @@ from discovery30303 import (
)
-@pytest.fixture
+@pytest_asyncio.fixture
async def mock_discovery_aio_protocol():
"""Fixture to mock an asyncio connection."""
loop = asyncio.get_running_loop()
|