Wykres commitów

1000 Commity (7cc746e48328c10e7785c526cecdf25eae28c366)

Autor SHA1 Wiadomość Data
MVladislav 7cc746e483 refactor: base cleanup and bring project to run with test cases 2024-12-19 20:34:09 +01:00
Marius Kriegerowski fc7da78a41
Merge pull request #152 from sjlongland/feature/py311-bump-dependencies
Bump `poetry` and `pytest` Python 3.11 compatibility
2024-11-23 14:13:38 +01:00
Stuart Longland ce170f6e03
pyproject.toml: Bump `pytest` to resolve Python 3.11 issue.
```
______________________________________________ ERROR collecting tests/test_utils.py _______________________________________________
tests/test_utils.py:3: in <module>
    from hypothesis import provisional
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
../../../../.cache/pypoetry/virtualenvs/amqtt-4HWVaFGY-py3.11/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
    exec(co, module.__dict__)
../../../../.cache/pypoetry/virtualenvs/amqtt-4HWVaFGY-py3.11/lib/python3.11/site-packages/hypothesis/provisional.py:37: in <module>
    _comment, *_tlds = traversable.read_text(encoding="utf-8").splitlines()
/usr/lib/python3.11/importlib/resources/abc.py:83: in read_text
    with self.open(encoding=encoding) as strm:
/usr/lib/python3.11/importlib/resources/_adapters.py:141: in open
    raise FileNotFoundError("Can't open orphan path")
E   FileNotFoundError: Can't open orphan path
======================================================== warnings summary =========================================================
../../../../.cache/pypoetry/virtualenvs/amqtt-4HWVaFGY-py3.11/lib/python3.11/site-packages/passlib/utils/__init__.py:854
  /home/stuartl/.cache/pypoetry/virtualenvs/amqtt-4HWVaFGY-py3.11/lib/python3.11/site-packages/passlib/utils/__init__.py:854: DeprecationWarning: 'crypt' is deprecated and slated for removal in Python 3.13
    from crypt import crypt as _crypt

-- Docs: https://docs.pytest.org/en/stable/warnings.html
===================================================== short test summary info =====================================================
ERROR tests/test_utils.py - FileNotFoundError: Can't open orphan path
```
2023-10-17 13:42:10 +10:00
Stuart Longland 3120987de0
pyproject.toml: Update for Poetry 1.4/1.5
Can't install 1.2 now, and 1.3+ don't understand the old 1.2
`dev-dependencies` config option.

https://python-poetry.org/docs/1.4/managing-dependencies/#dependency-groups
2023-06-10 13:18:16 +10:00
Stuart Longland 395c2a6de2
pyproject.toml: Bump `mypy` version
The previous version does not play nice with Python 3.11:

```
Package operations: 15 installs, 0 updates, 0 removals

  • Installing typed-ast (1.4.3): Failed

  ChefBuildError

  Backend subprocess exited when trying to invoke build_wheel

  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-cpython-311
  creating build/lib.linux-x86_64-cpython-311/typed_ast
  copying typed_ast/__init__.py -> build/lib.linux-x86_64-cpython-311/typed_ast
  copying typed_ast/ast27.py -> build/lib.linux-x86_64-cpython-311/typed_ast
  copying typed_ast/ast3.py -> build/lib.linux-x86_64-cpython-311/typed_ast
  copying typed_ast/conversions.py -> build/lib.linux-x86_64-cpython-311/typed_ast
  creating build/lib.linux-x86_64-cpython-311/typed_ast/tests
  copying ast3/tests/test_basics.py -> build/lib.linux-x86_64-cpython-311/typed_ast/tests
  running build_ext
  building '_ast27' extension
  creating build/temp.linux-x86_64-cpython-311
  creating build/temp.linux-x86_64-cpython-311/ast27
  creating build/temp.linux-x86_64-cpython-311/ast27/Custom
  creating build/temp.linux-x86_64-cpython-311/ast27/Parser
  creating build/temp.linux-x86_64-cpython-311/ast27/Python
  x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Iast27/Include -I/tmp/tmphb_kq6hh/.venv/include -I/usr/include/python3.11 -c ast27/Custom/typed_ast.c -o build/temp.linux-x86_64-cpython-311/ast27/Custom/typed_ast.o
  In file included from ast27/Custom/typed_ast.c:3:
  ast27/Custom/../Include/compile.h:5:10: fatal error: code.h: No such file or directory
      5 | #include "code.h"
        |          ^~~~~~~~
  compilation terminated.
  error: command '/usr/bin/x86_64-pc-linux-gnu-gcc' failed with exit code 1
```
2023-06-10 12:50:26 +10:00
Ryan Parry-Jones 08028ebef8 Update amqtt/mqtt/protocol/handler.py
Co-authored-by: not-f-elsner <123899677+not-f-elsner@users.noreply.github.com>
2023-02-27 18:52:11 +01:00
Ryan Parry-Jones 2acca01df5 Update amqtt/mqtt/protocol/handler.py
Co-authored-by: not-f-elsner <123899677+not-f-elsner@users.noreply.github.com>
2023-02-27 18:52:11 +01:00
rparry-jones d0eb64dc19 #126
- Updated protocol handlers to more reliably remove active waiters when task cancellation occurs
- Fixed checks where expecting a KeyError when it should be checking if not None
- Updated next_packet_id property to correctly check if there are any packet_ids available. Avoids infinite loop if all packet ids are used.
2023-02-27 18:52:11 +01:00
Marius Kriegerowski 1a2812c5fc
Merge pull request #114 from Yakifo/bugfix/server-connection-release
Bugfix/server connection release
2023-02-11 15:55:10 +01:00
Marius Kriegerowski 1aa84e28a4 move psutil to dev dependencies 2023-02-11 15:53:13 +01:00
Marius Kriegerowski 7fcdb0c13b broker: release server connection upon exception 2023-02-11 15:53:13 +01:00
Marius Kriegerowski 4944b0deae unit testing tcp connection to the broker 2023-02-11 15:53:06 +01:00
Florian Ludwig 7b2088bcd6 release 0.10.0-beta 2023-02-09 14:16:20 +01:00
Fabian Elsner 3912564bf1 Fixup python compatibility declaration 2023-02-09 13:49:38 +01:00
Florian Ludwig fda35f3e18 chore: prepare release 0.11.x 2023-02-09 13:49:38 +01:00
Fabian Elsner 3bf29cff4c Cleanup running task before shutdown 2023-02-09 12:42:48 +01:00
Fabian Elsner 96e89fb37f Fix test for Python 3.7 2023-02-09 12:42:48 +01:00
Fabian Elsner d438202610 Inverse excepts for more accurate log message in Python 3.7 2023-02-09 12:42:48 +01:00
Fabian Elsner a6b54a9dd5 Reduce log level from warning to info 2023-02-09 12:42:48 +01:00
Fabian Elsner d03dea0d05 Only log debug messages when enabled 2023-02-09 12:42:48 +01:00
Fabian Elsner 604c45ca7a Added test for broadcast loop cancellation 2023-02-09 12:42:48 +01:00
Fabian Elsner 85e3320da5 Fix task cancellation breaking broadcast loop
- Differentiate between broadcast shutdown and task cancellation
- Minor refactor to make the code more readable
- Improved and simplified logging
2023-02-09 12:42:48 +01:00
Marius Kriegerowski 19960e62df check if _disconnect_waiter is None when closing connection 2022-11-29 10:03:44 +01:00
Marc Billow 09ac98d39a Handle cleanup on close 2022-05-29 18:14:32 +02:00
Marc Billow b4a27c97b6 Implement client take-over 2022-05-29 18:14:32 +02:00
Florian Ludwig 63ecb375db Update readme to mention 0.10.1 release 2022-04-29 17:11:14 +02:00
Florian Ludwig c418ba38a2 Improve overview of release branches 2022-04-28 16:49:33 +02:00
Florian Ludwig 0ecd4342ef Also run GitHub Actions on v0.10.x branch 2022-04-27 11:52:45 +02:00
Robert Resch efddec98ca run pre-commit on all files 2022-04-17 12:28:23 +02:00
Robert Resch 1d6acb9934 remove deprecated/not used loop argument 2022-04-17 12:27:54 +02:00
Robert Resch f95f97be01 fix passing coroutine to asyncio.wait 2022-04-17 12:27:02 +02:00
Robert Resch c88bd0887d fix error when stop is called multiple 2022-04-17 12:27:02 +02:00
Robert Resch 1fc0cc8d3d fix deprecation warning 2022-04-17 12:27:02 +02:00
Robert Resch af57ee3ebd no need for asyncio.wait 2022-04-17 12:27:02 +02:00
Pierre-Luc Bertrand fcba3b6132 Refactor topic_checking to simplify booleans 2022-04-17 12:24:56 +02:00
Rémi Cardona a3f982c4d2 allow connections with username only
Section [MQTT-3.1.2-22] of the MQTT 3.1.1 only says that a password cannot be
given without a user. The reverse should be allowed. Fixes #79.
2022-04-17 12:05:25 +02:00
Robert Resch f71b99b086 don't filter topics if its explicit disabled 2022-04-14 17:35:02 +02:00
plbertrand 33486d110f Fix executable names
The executables have been renamed. This fixes the name in the documentation.
2022-03-28 00:05:09 +02:00
Florian Ludwig ecf64a4f82 python pre 3.9 compatibily 2022-02-06 14:42:51 +01:00
Florian Ludwig 42be5c145c reformat with black 2022-02-06 14:42:51 +01:00
Florian Ludwig e517622319 move flake9 config into separate file and ignore all style checks 2022-02-06 14:42:51 +01:00
Robert Resch 1bc2e06be2 fix flake8 error 2022-02-06 14:42:51 +01:00
Robert Resch 5181289d2b improve has_attr plugin tests 2022-02-06 14:42:51 +01:00
Florian Ludwig 0c993565b5 add changelog 2022-02-06 14:42:51 +01:00
Florian Ludwig d43b36f90c throw exception instance not class and add test 2022-02-06 14:42:51 +01:00
Florian Ludwig d50c1e25c9 0.11 changelog 2022-02-04 18:16:01 +01:00
Robert Resch 635e3adf5b fix EventLoggerPlugin.__getattr__ 2022-02-04 18:04:05 +01:00
Marc Mueller 3f05d35483 Remove fallback to yaml.load
* yaml.full_load was added in PyYAML 5.1, required is >=5.4
2022-01-30 22:03:38 +01:00
Marc Mueller 10c6575f02 Update dependencies 2022-01-30 22:03:38 +01:00
Joe Keenan 9e1056080b Remove leading slashes from example topics
Use of a leading slash is not best practice and should not appear in examples.
2022-01-30 21:57:09 +01:00