Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use extras to allow use of some backends and not others? #62

Open
Jc2k opened this issue Feb 6, 2022 · 0 comments
Open

Use extras to allow use of some backends and not others? #62

Jc2k opened this issue Feb 6, 2022 · 0 comments
Assignees

Comments

@Jc2k
Copy link
Owner

Jc2k commented Feb 6, 2022

The original plan was to put something like this in pyproject.toml:

[tool.poetry.dependencies]
python = "^3.9"
cryptography = ">=2.9.2"
commentjson = "^0.9.0"
zeroconf = { version=">=0.32.0", optional=True }
aiocoap = { version=">=0.4.1", optional=True }
bleak = { version=">=0.4.1", optional=True }

[tool.poetry.extras]
ble = ["bleak"]
coap = ["aiocoap", "zeroconf"]
ip = ["zeroconf]

Then refer to aiohomekit as aiohomekit[ble,coap,ip] in HA manifests.

The SUPPORTS_ const are a bit pointless without this.

If poetry can be configured to pull in all 3 into dev env by default i'd still want to do this I think.

@Jc2k Jc2k added this to the 1.0.0 milestone Feb 6, 2022
@Jc2k Jc2k self-assigned this Feb 6, 2022
@Jc2k Jc2k removed this from the 1.0.0 milestone Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant