Skip to content

Commit

Permalink
Migrate setuptools to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Woyken committed Feb 6, 2024
1 parent c279c4e commit 78f9a90
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 28 deletions.
37 changes: 37 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
30 changes: 2 additions & 28 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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()
1 change: 1 addition & 0 deletions src/pyelectroluxocp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Python package wrapper around Electrolux OneApp (OCP) api."""

__all__ = ["OneAppApi"]
__version__ = "0.0.10"

from .oneAppApi import OneAppApi

0 comments on commit 78f9a90

Please sign in to comment.