Skip to content

Commit

Permalink
feat: start repo (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Aug 24, 2022
1 parent eac4601 commit 4e330ec
Show file tree
Hide file tree
Showing 10 changed files with 370 additions and 27 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,10 @@ jobs:
fail-fast: false
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
os:
- ubuntu-latest
- windows-latest
- macOS-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -82,7 +78,7 @@ jobs:
# - Create GitHub release
# - Publish to PyPI
- name: Python Semantic Release
uses: relekang/python-semantic-release@v7.27.1
uses: relekang/python-semantic-release@v7.31.4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
pypi_token: ${{ secrets.PYPI_TOKEN }}
2 changes: 1 addition & 1 deletion .idea/watcherTasks.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))

from typing import Any, List

# -- Project information -----------------------------------------------------

Expand All @@ -40,7 +40,7 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = []
exclude_patterns: List[Any] = []


# -- Options for HTML output -------------------------------------------------
Expand Down
135 changes: 125 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ packages = [
"Changelog" = "https://github.com/bluetooth-devices/thermopro-ble/blob/main/CHANGELOG.md"

[tool.poetry.dependencies]
python = "^3.7"
python = "^3.9"

# Documentation Dependencies
Sphinx = {version = "^5.0", optional = true}
sphinx-rtd-theme = {version = "^1.0", optional = true}
myst-parser = {version = "^0.18", optional = true}
bluetooth-sensor-state-data = ">=1.6.0"
sensor-state-data = ">=2.3.1"

[tool.poetry.extras]
docs = [
Expand Down
33 changes: 32 additions & 1 deletion src/thermopro_ble/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
__version__ = "0.0.1"
"""Parser for ThermoPro BLE advertisements."""
from __future__ import annotations

from sensor_state_data import (
BinarySensorDeviceClass,
BinarySensorValue,
DeviceKey,
SensorDescription,
SensorDeviceClass,
SensorDeviceInfo,
SensorUpdate,
SensorValue,
Units,
)

from .parser import ThermoProBluetoothDeviceData

__version__ = "0.3.0"

__all__ = [
"ThermoProBluetoothDeviceData",
"BinarySensorDeviceClass",
"BinarySensorValue",
"SensorDescription",
"SensorDeviceInfo",
"DeviceKey",
"SensorUpdate",
"SensorDeviceClass",
"SensorDeviceInfo",
"SensorValue",
"Units",
]
2 changes: 0 additions & 2 deletions src/thermopro_ble/main.py

This file was deleted.

Loading

0 comments on commit 4e330ec

Please sign in to comment.