diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b2db956 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,37 @@ +[build-system] +build-backend = "setuptools.build_meta" +requires = ["setuptools>=77.0"] + +[project] +name = "ha-philipsjs" +version = "3.2.3" +license = "MIT" +description = "jointSPACE API for Home-Assistant" +readme = "README.md" +authors = [{ name = "Daniel Perna", email = "danielperna84@gmail.com" }] +requires-python = ">=3.9" +keywords = ["jointSPACE"] +classifiers = [ + "Intended Audience :: Developers", + "Operating System :: OS Independent", +] +dependencies = [ + "cryptography", + "httpx>=0.22.0", +] + +[project.optional-dependencies] +tests = [ + "pytest>3.6.4", + "pytest-cov<2.6", + "pytest-asyncio>=0.20.2", + "coveralls", + "pytest-mock", + "respx>=0.17.0", +] + +[project.urls] +"Homepage" = "https://github.com/danielperna84/ha-philipsjs" + +[tool.setuptools.packages.find] +include = ["haphilipsjs*"] diff --git a/setup.cfg b/setup.cfg index 4ee33b4..74c027f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,3 @@ -[metadata] -description-file = README.md - [tool:pytest] testpaths = tests asyncio_mode = auto diff --git a/setup.py b/setup.py deleted file mode 100644 index 684be6a..0000000 --- a/setup.py +++ /dev/null @@ -1,53 +0,0 @@ -import os -from setuptools import setup, find_packages - -def readme(): - with open('README.md') as f: - return f.read() - -PACKAGE_NAME = 'ha-philipsjs' -HERE = os.path.abspath(os.path.dirname(__file__)) -VERSION = '3.2.3' - -PACKAGES = find_packages(exclude=['tests', 'tests.*', 'dist', 'ccu', 'build']) - -REQUIRES = [ - "cryptography", - "httpx>=0.22.0", -] - -setup( - name=PACKAGE_NAME, - version=VERSION, - license='MIT License', - url='https://github.com/danielperna84/ha-philipsjs', - download_url='https://github.com/danielperna84/ha-philipsjs/tarball/'+VERSION, - author='Daniel Perna', - author_email='danielperna84@gmail.com', - description='jointSPACE API for Home-Assistant', - long_description=readme(), - long_description_content_type='text/markdown', - packages=PACKAGES, - include_package_data=True, - zip_safe=False, - platforms='any', - install_requires=REQUIRES, - keywords=['jointSPACE'], - classifiers=[ - 'Intended Audience :: Developers', - 'License :: OSI Approved :: MIT License', - 'Operating System :: OS Independent', - 'Programming Language :: Python :: 3.8' - ], - extras_require={ - 'tests': [ - 'pytest>3.6.4', - 'pytest-cov<2.6', - 'pytest-asyncio>=0.20.2', - 'coveralls', - 'pytest-mock', - 'respx>=0.17.0', - ] - }, - python_requires='>=3.8' -)