-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #187 from home-assistant/synesthesiam-20241231-pyp…
…roject Transition to pyproject.toml
- Loading branch information
Showing
10 changed files
with
57 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,5 @@ | ||
"""Shared access to package resources""" | ||
|
||
import os | ||
import typing | ||
from pathlib import Path | ||
import importlib.metadata | ||
|
||
try: | ||
import importlib.resources | ||
|
||
files = importlib.resources.files # type: ignore | ||
except (ImportError, AttributeError): | ||
# Backport for Python < 3.9 | ||
import importlib_resources # type: ignore | ||
|
||
files = importlib_resources.files | ||
|
||
_PACKAGE = "hassil" | ||
_DIR = Path(typing.cast(os.PathLike, files(_PACKAGE))) | ||
|
||
__version__ = (_DIR / "VERSION").read_text(encoding="utf-8").strip() | ||
__version__ = importlib.metadata.version("hassil") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[build-system] | ||
requires = ["setuptools>=62.3"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "hassil" | ||
version = "2.1.0" | ||
license = {text = "Apache-2.0"} | ||
description = "The Home Assistant Intent Language parser" | ||
readme = "README.md" | ||
authors = [ | ||
{name = "The Home Assistant Authors", email = "[email protected]"} | ||
] | ||
keywords = ["home", "assistant", "intent", "recognition"] | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Developers", | ||
"Topic :: Text Processing :: Linguistic", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.13", | ||
] | ||
requires-python = ">=3.8.0" | ||
dependencies = [ | ||
"PyYAML>=6.0,<7", | ||
"unicode-rbnf>=2.2,<3" | ||
] | ||
|
||
[project.urls] | ||
"Source Code" = "http://github.com/home-assistant/hassil" | ||
|
||
[tool.setuptools] | ||
platforms = ["any"] | ||
zip-safe = true | ||
include-package-data = true | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["hassil"] | ||
exclude = ["tests", "tests.*"] | ||
|
||
[project.scripts] | ||
hassil = "hassil.__main__:main" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
build>=1,<2 | ||
black==24.8.0 | ||
flake8==7.1.1 | ||
mypy==1.14.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tox] | ||
env_list = | ||
py{38,39,310,311,312} | ||
py{38,39,310,311,312,313} | ||
minversion = 4.12.1 | ||
|
||
[testenv] | ||
|