Skip to content

Commit

Permalink
Migrate to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
ldotlopez committed Dec 29, 2023
1 parent 243f2dc commit e90b976
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 25 deletions.
2 changes: 2 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ ipdb = "*"
ipython = "*"
pre-commit = "*"
homeassistant = "*"
build = "*"
twine = "*"

[requires]
python_version = "3"
37 changes: 35 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,45 @@
[project]
name = "homeassistant-historical-sensor"
version = "2.0.0rc3"
dependencies = [
"importlib-metadata; python_version >= '3.11'",
]
authors = [
{name = "Luis López", email = "[email protected]"},
]
readme = "README.md"
description ="Historical sensors for HomeAssistant"
license = {file = "LICENSE"}
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
requires-python = ">3.11"

[project.urls]
Homepage = "https://github.com/ldotlopez/ha-historical-sensor"
Issues = "https://github.com/ldotlopez/ha-historical-sensor/issues"
Repository = "https://github.com/ldotlopez/ha-historical-sensor.git"

[build-system]
requires = ["setuptools>=40.8.0", "wheel"]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"

[bdist_wheel]
universal = 1

[tool.black]
target-version = ['py39']
target-version = ['py311']

[tool.isort]
profile = "black"

[tool.mypy]
files = ['homeassistant_historical_sensor']

[tool.setuptools]
packages = ["homeassistant_historical_sensor"]
23 changes: 0 additions & 23 deletions setup.cfg

This file was deleted.

0 comments on commit e90b976

Please sign in to comment.