Skip to content

Commit

Permalink
adding pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnnnnnnnnnnnn committed Aug 20, 2024
1 parent b406038 commit 69358ab
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "etekcity_esf551_ble"
version = "0.1.0"
authors = [
{ name="Ron", email="ronnnnnnn@gmail.com" },
]
description = "An unofficial Python package for interacting with Etekcity ESF-551 Smart Fitness Scales using BLE. Not affiliated with Etekcity, VeSync Co., Ltd., or any of their subsidiaries."
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"bleak",
"bleak_retry_connector",
]

[project.urls]
"Homepage" = "https://github.com/ronnnnnnnnnnnnn/etekcity_esf551_ble"
"Bug Tracker" = "https://github.com/ronnnnnnnnnnnnn/etekcity_esf551_ble/issues"

[tool.hatch.build.targets.wheel]
packages = ["src/etekcity_esf551_ble"]

[tool.hatch.build.targets.sdist]
include = [
"/src",
]
2 changes: 1 addition & 1 deletion src/etekcity_esf551_ble/bluetooth.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class BluetoothScanningMode(Enum):
ACTIVE = "active"


SCANNING_MODE_TO_BLEAK = {
SCANNING_MODE_TO_BLEAK: dict[BluetoothScanningMode, str] = {
BluetoothScanningMode.ACTIVE: "active",
BluetoothScanningMode.PASSIVE: "passive",
}
Expand Down

0 comments on commit 69358ab

Please sign in to comment.