Andrew Mirsky
f171fe9a8f
lint and mypy cleanup and exceptions due to the need to support imports from different locations depending on python version
2025-05-17 14:05:30 -04:00
Andrew Mirsky
b982e4242a
Merge pull request #165 from MVladislav/main
...
Refactor and Enhancement of AMQTT Codebase
2025-05-17 13:35:36 -04:00
MVladislav
36697261ca
refactor: update _feed_buffer param info
...
Co-authored-by: Andrew Mirsky <andrew@mirsky.net>
2025-05-17 18:00:43 +02:00
MVladislav
5bee2a9af9
refactor: update pre-commit versions
2025-05-17 17:55:13 +02:00
MVladislav
2c4bfd55c1
refactor: update 'astral-sh/setup-uv' version
2025-05-17 17:54:49 +02:00
MVladislav
e1ec9bb0f5
merge: pull request #6 from ajmirsky/beta4_to_rc1
...
resolving the merge conflicts `mvladislav/amqtt` and `Yakifo/amqtt`
2025-05-17 17:53:14 +02:00
MVladislav
4c90b878e2
refactor: Update README.rst
...
remove white-space
2025-05-17 17:50:46 +02:00
Andrew Mirsky
129aa60ec9
Merge branch 'beta4_to_rc1' into add_python310_support
2025-05-16 17:34:01 -04:00
Andrew Mirsky
da2af91ce4
fixing lint errors. removing mutually exclusive checks
2025-05-16 17:31:10 -04:00
Andrew Mirsky
c289ae9132
Merge branch 'main' into beta4_to_rc1
2025-05-16 17:25:09 -04:00
Andrew Mirsky
688f09a562
using 'typing_extensions' package and 'ImportError' fallbacks to support 3.10+
2025-05-16 14:21:16 -04:00
Andrew Mirsky
3e47e31f73
updating version
2025-05-16 13:56:58 -04:00
Andrew Mirsky
15e0e9a24e
cleaning up incorrect resolutions of merge conflicts
2025-05-16 13:56:00 -04:00
Andrew Mirsky
3cddea336e
merging up from 'origin/main' and resolving merge conflicts
2025-05-16 13:45:59 -04:00
MVladislav
613e532949
refactor: improve property accessors and enhance code readability across multiple modules
2025-04-06 19:58:20 +02:00
MVladislav
12d5cb6866
refactor: modularize broker listener startup and improve session management
...
- Extracted listener startup logic into a separate method `_start_listeners` for better readability and maintainability.
- Created helper methods for SSL context creation.
- Improved session cleanup during shutdown by centralizing logic in `_cleanup_session`.
- Refactored message handling and subscription management into dedicated methods for clarity.
- Updated tests to reflect changes in method visibility for matching topics.
2025-04-06 19:03:30 +02:00
MVladislav
3e0902cc8b
refactor: update base project confs
2025-04-04 21:06:41 +02:00
MVladislav
03979450ec
refactor: update .gitignore to include additional patterns and improve file exclusions
2025-04-04 19:22:11 +02:00
MVladislav
338ff39b17
chore: update version to 0.11.0-beta4, add clear_queues method, and improve resource management in PluginManager and BrokerProtocolHandler
2025-04-04 19:18:17 +02:00
MVladislav
7b8b949c46
fix( #0 ): update uv.lock
2025-04-01 20:22:21 +02:00
MVladislav
0019f5d024
refactor: manual merge some changes from last commits
2025-04-01 20:18:38 +02:00
MVladislav
769d108b1f
refactor: version updates and linter updates
2025-04-01 20:07:14 +02:00
MVladislav
0afe361bd0
fix( #0 ): renaming file and fix usage
...
- logging was renamed as logging_a now better as logging_amqtt with fix inside pyproject.toml
- renamed codecs => codecs_a => codecs_amqtt
2025-01-16 20:01:16 +01:00
MVladislav
6512671d54
refactor: github workflow changes
...
- remove file for "Python package" complete for now
- CI comment test with version 3.12 for now
- update setup-uv to v5 #8
2025-01-12 22:49:04 +01:00
MVladislav
57bfec0ea8
refactor: more cleanup/linting especial Pylint
2025-01-12 22:44:19 +01:00
MVladislav
40d1214c79
refactor: checking open pull requests:
...
- #119 :: not working in test cases, only comment
- #153 :: updated
- #61 :: removed try block as described
- #72 :: function included
2025-01-12 21:28:42 +01:00
MVladislav
a024b174d0
refactor: more cleanup/linting
2025-01-12 20:52:50 +01:00
MVladislav
6ddfefb9a2
refactor: update websockets 14.1
2025-01-11 19:57:12 +01:00
Luis Linares
440e8ff945
refactor(broker): make tasks queue a member of the broker instance
...
This enables implementing non-standard routing behavior from
custom classes inheriting from Broker()
2025-01-08 09:38:33 +01:00
Luis Linares
186c51014e
fix(handler): set remote_* attributes of session object on connect
...
They seem to have been forgotten when writing init_from_connect()
2025-01-08 09:38:33 +01:00
Luis Linares
a911ba7b92
chore(auth): add a type annotation
2025-01-08 09:38:33 +01:00
MVladislav
1a72fa8e39
refactor: formatting
2024-12-29 19:23:27 +01:00
Marius Kriegerowski
b5a11c3e82
Merge pull request #130 from Yakifo/fix-accidental-py3-refactor-comment
...
revert accidental commented stopping of handler
2024-12-29 13:54:04 +01:00
Marius Kriegerowski
47c6585b23
Update readme.rst
2024-12-28 19:25:38 +01:00
Marius Kriegerowski
f69f577943
Merge pull request #161 from martin-pil/main
...
Replace pkg_resources with importlib.metadata
2024-12-28 19:21:52 +01:00
MVladislav
8c253e7c57
refactor: update renovate
2024-12-21 12:00:17 +01:00
MVladislav
4771fe3375
refactor: update readme
2024-12-21 11:58:35 +01:00
MVladislav
7c001d69b2
refactor: bigger code upgrade and improves
...
- add github workflows
- update project.toml by disable multi parts to not see every needed fix now
- improve tests cases
- improve code quality
- ...
2024-12-21 11:52:26 +01:00
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
Martin Pilros
f2b0f995d0
Replace pkg_resources with importlib.metadata
...
pkg_resources is removed in python 3.12 and replaced
by importlib.metadata.
2024-10-09 11:28:36 +02: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