diff --git a/.github/workflows/run-entry-points.yml b/.github/workflows/run-entry-points.yml deleted file mode 100644 index b42e319..0000000 --- a/.github/workflows/run-entry-points.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: run entry points - -on: - push: - pull_request: - -jobs: - build: - - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.8", "3.9", "3.10"] - - steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip!=22.1.* - python -m pip install --upgrade wheel setuptools - python -m pip install --upgrade . - - name: Test with pytest - run: | - yaqd-my-daemon --version - yaqd-my-daemon --help diff --git a/README.md b/README.md index 032ecc1..d1857d3 100644 --- a/README.md +++ b/README.md @@ -2,17 +2,12 @@ [![PyPI](https://img.shields.io/pypi/v/hart-protocol)](https://pypi.org/project/hart-protocol) [![Conda](https://img.shields.io/conda/vn/conda-forge/hart-protocol)](https://anaconda.org/conda-forge/hart-protocol) -[![yaq](https://img.shields.io/badge/framework-yaq-orange)](https://yaq.fyi/) [![black](https://img.shields.io/badge/code--style-black-black)](https://black.readthedocs.io/) [![ver](https://img.shields.io/badge/calver-YYYY.M.MICRO-blue)](https://calver.org/) [![log](https://img.shields.io/badge/change-log-informational)](https://github.com/yaq-project/hart-protocol/-/blob/main/CHANGELOG.md) -Yaqd Boilerplate contains all the boilerplate you need to create a yaq daemon. - -This package contains the following daemon(s): - -- https://yaq.fyi/daemons/my-daemon +A sans-io Python implementation of the [Highway Adressable Remote Transducer Protocol](https://en.wikipedia.org/wiki/Highway_Addressable_Remote_Transducer_Protocol). Maintainers: -- This package is currently unmaintained! +- [Blaise Thompson](https://github.com/untzag) diff --git a/hart_protocol/_my_daemon.py b/hart_protocol/_my_daemon.py deleted file mode 100644 index 0c508cd..0000000 --- a/hart_protocol/_my_daemon.py +++ /dev/null @@ -1,26 +0,0 @@ -__all__ = ["MyDaemon"] - -import asyncio -from typing import Dict, Any, List - -from yaqd_core import IsDaemon - - -class MyDaemon(IsDaemon): - _kind = "my-daemon" - - def __init__(self, name, config, config_filepath): - super().__init__(name, config, config_filepath) - # Perform any unique initialization - - async def update_state(self): - """Continually monitor and update the current daemon state.""" - # If there is no state to monitor continuously, delete this function - while True: - # Perform any updates to internal state - self._busy = False - # There must be at least one `await` in this loop - # This one waits for something to trigger the "busy" state - # (Setting `self._busy = True) - # Otherwise, you can simply `await asyncio.sleep(0.01)` - await self._busy_sig.wait() diff --git a/hart_protocol/my-daemon.toml b/hart_protocol/my-daemon.toml deleted file mode 100644 index 08d7989..0000000 --- a/hart_protocol/my-daemon.toml +++ /dev/null @@ -1,17 +0,0 @@ -protocol = "my-daemon" -doc = "" -traits = ["is-daemon"] - -[links] -source = "https://github.com/yaq-project/hart-protocol" -bugtracker = "https://github.com/yaq-project/hart-protocol/-/issues" - -[installation] -PyPI = "https://pypi.org/project/hart-protocol" - -[config] - -[state] - -[messages] - diff --git a/pyproject.toml b/pyproject.toml index 45db4f4..41bb994 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,11 +5,11 @@ build-backend = "flit_core.buildapi" [tool.flit.metadata] module = "hart_protocol" dist-name = "hart-protocol" -author = "yaq developers" -home-page = "https://yaq.fyi" +author = "Blaise Thompson" +home-page = "https://github.com/yaq-project/hart-protocol" description-file = "README.md" requires-python = ">=3.7" -requires = ["yaqd-core>=2020.06.3"] +requires = [] classifiers = [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Science/Research", @@ -18,6 +18,8 @@ classifiers = [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Topic :: Scientific/Engineering", ] @@ -28,10 +30,6 @@ Issues = "https://github.com/yaq-project/hart-protocol/issues" [tool.flit.metadata.requires-extra] dev = ["black", "pre-commit"] -[tool.flit.scripts] -yaqd-my-daemon = "hart_protocol._my_daemon:MyDaemon.main" - - [tool.black] line-length = 99 target-version = ['py37', 'py38']