Commit Graph

18 Commits

Author SHA1 Message Date
Felix Weiler-Detjen
f887416610 Rename classes in docs reference. 2025-02-05 12:15:09 +01:00
Felix Weiler-Detjen
4e6adfca1a Fix error in release.yml 2025-01-10 14:53:59 +00:00
Felix Weiler-Detjen
6c210bdf78 Fix mqtt sender not sending any messages via ssl. 2025-01-10 14:43:46 +00:00
Felix Weiler
98099f5b00 Refactor heisskleber core, remove synchronous implementations (#156)
* #129 AsyncTcpSource enhancements
- retry connection on startup (behavior is configurable)
- reconnect if data receiving fails (EOF received)
- add Python logging
- add unit tests

* remove syncronous implementations.

* WIP: Refactor packer/unpacker

* Refactor type hints and topic handling in console sink.

* Remove comma from tcp config enum definitions

* Remove references to deleted synchronous classes.

* Hopefully stable interface for Packer and Unpacker.

* WIP: Working with protocols and generics

* Finalized Sink, Source definition.

* Rename mqtt source and sink files

* Rename mqtt publisher and subscriber.

* Fix start function to async.

* Update documentation.

* Remove recursion from udp source.

* rename unpack to unpacker, stay consistent.

* Renaming in tests.

* Make MqttSource generic.

* Configure pyproject.toml to move to uv

* Add nox support.

* Update documentation with myst-parser and sphinx.

* Mess with autogeneration of __call__ signatures.

* Add dynamic versioning to hatch

* Asyncio wrapper for pyserial.

* Add docstrings for serial sink and source.

* Refactor config handling (#171)

* Removes deprecated "verbose" and "print_std" parameters

* Adds class methods for config generation from dictionary or file (yaml or json at this point)

* Run-time type checking via __post_init__() function

* Add serial dependency.

* WIP

* Move broker to bin/

* Update docs.

* WIP: Need to update docstrings to make ruff happy.

* Move source files to src/

* Fix tests for TcpSource.

* WIP: Remove old tests.

* Fix docstrings in mqtt classes.

* Make default tcp unpacker json_unpacker.

* No failed tests if there are no tests

* Update test pipeline

* Update ruff pre-commit

* Updated ruff formatting

* Format bin/

* Fix type hints

* No type checking

* Make stop() async

* Only test on ubuntu for now

* Don't be so strict about sphinx warnings.

* Rename TestConf for pytest naming compability.

* Install package in editable mode for ci tests.

* Update dependencies for docs generation.

* Add keepalive and will to mqtt, fixes #112.

* Update readme to reflect changes in usage.

* Requested fixes for console adapters.

* Raise correct errors in unpacker and packer.

* Correct logger name for mqtt sink.

* Add config options for stopbits and parity to Serial.

* Remove exception logging call from yaml parser.

* Add comments to clear up very implicit test.

* Rename Sink -> Sender, Source -> Receiver.

* Rename sink and source in tests.

* Fix tests.

---------

Co-authored-by: Adrian Weiler <a.weiler@aldea.de>
2024-12-09 19:32:34 +01:00
Felix Weiler
334f8a257d Fix coverage report generation. (#81)
* Fix coverage report generation.

* Only run action on push to main

* Don't run tests on tests themselves.

* Fix on push directive
2024-02-23 11:14:23 +08:00
dependabot[bot]
0908b63b40 Bump virtualenv from 20.23.0 to 20.25.0 in /.github/workflows (#38)
Bumps [virtualenv](https://github.com/pypa/virtualenv) from 20.23.0 to 20.25.0.
- [Release notes](https://github.com/pypa/virtualenv/releases)
- [Changelog](https://github.com/pypa/virtualenv/blob/main/docs/changelog.rst)
- [Commits](https://github.com/pypa/virtualenv/compare/20.23.0...20.25.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-22 09:27:06 +08:00
dependabot[bot]
1e4f1ffddf Bump actions/setup-python from 4.6.1 to 5.0.0 (#41)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4.6.1 to 5.0.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4.6.1...v5.0.0)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-22 09:23:00 +08:00
dependabot[bot]
bd5798f41b Bump actions/cache from 2 to 4 (#53)
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-22 09:21:35 +08:00
dependabot[bot]
576e557853 Bump pip from 23.3.1 to 24.0 in /.github/workflows (#59)
Bumps [pip](https://github.com/pypa/pip) from 23.3.1 to 24.0.
- [Changelog](https://github.com/pypa/pip/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/pip/compare/23.3.1...24.0)

---
updated-dependencies:
- dependency-name: pip
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-22 09:21:11 +08:00
dependabot[bot]
18d44704a1 Bump codecov/codecov-action from 3 to 4 (#66)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-22 09:20:31 +08:00
Felix Weiler
03e6a056ff Add codecov action and dependencies. (#58) 2024-02-08 10:25:47 +01:00
felix
d9a8874074 Remove release workflow. Fix tests. 2023-11-23 17:56:46 +01:00
felix
16d305e2c7 Add permissions flag to release action. 2023-11-23 17:49:17 +01:00
felix
f4a28fee19 Remove nox, switch to simpler test workflow. 2023-11-23 17:44:33 +01:00
felix
bd52534038 Update constraints for workflows. 2023-11-23 17:04:46 +01:00
felix
ac24be561e Fixed workflows (hopefully). 2023-11-23 16:55:40 +01:00
felix
e9bef8d6c3 Update dependencies to satisfy dependabot. 2023-11-23 16:35:58 +01:00
felix
757187cf73 Add workflows for labels, release, test. 2023-11-23 11:15:02 +01:00