diff --git a/pyproject.toml b/pyproject.toml index fed528d..e4d393c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,40 @@ +[project] +name = "pyelectroluxocp" +dependencies = [ + "aiohttp>=3.9.0", +] +requires-python = ">=3.10" +authors = [ + {name = "Woyken"}, +] +maintainers = [ + {name = "Woyken"}, +] +description = "Electrolux OneApp OCP API" +readme = "README.md" +license = {file = "LICENSE"} +keywords = ["home", "automation", "electrolux", "aeg", "ocp", "oneapp", "api"] +classifiers = [ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3.10", + "Topic :: Home Automation", + "Topic :: Software Development :: Libraries :: Python Modules", +] +dynamic = ["version"] + +[project.urls] +Homepage = "https://github.com/Woyken/py-electrolux-ocp/" +Documentation = "https://github.com/Woyken/py-electrolux-ocp/blob/main/README.md" +Repository = "https://github.com/Woyken/py-electrolux-ocp.git" +"Bug Tracker" = "https://github.com/Woyken/py-electrolux-ocp/issues" +Changelog = "https://github.com/Woyken/py-electrolux-ocp/releases/" + +[tool.setuptools.dynamic] +version = {attr = "pyelectroluxocp.__version__"} + [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index e594416..6068493 100644 --- a/setup.py +++ b/setup.py @@ -1,29 +1,3 @@ -import setuptools +from setuptools import setup -with open("README.md", "r") as readmeFile: - long_description = readmeFile.read() - -setuptools.setup( - author="Woyken", - classifiers=[ - "Development Status :: 3 - Alpha", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - "Programming Language :: Python :: 3.10", - "Topic :: Home Automation", - "Topic :: Software Development :: Libraries :: Python Modules", - ], - description="Electrolux OneApp OCP API", - install_requires=["aiohttp"], - keywords="home automation electrolux aeg ocp oneapp api", - license="MIT License", - long_description_content_type="text/markdown", - long_description=long_description, - name="pyelectroluxocp", - package_dir={"": "src"}, - packages=setuptools.find_packages(where="src"), - url="https://github.com/Woyken/py-electrolux-ocp", - version="0.0.9", - zip_safe=False, -) +setup() diff --git a/src/pyelectroluxocp/__init__.py b/src/pyelectroluxocp/__init__.py index e1bd9a6..f34766b 100644 --- a/src/pyelectroluxocp/__init__.py +++ b/src/pyelectroluxocp/__init__.py @@ -1,5 +1,6 @@ """Python package wrapper around Electrolux OneApp (OCP) api.""" __all__ = ["OneAppApi"] +__version__ = "0.0.10" from .oneAppApi import OneAppApi