From 450db6c9254b4691149d8a22c79f1fe87e5e2f47 Mon Sep 17 00:00:00 2001 From: Jackson Vieira Date: Wed, 3 Dec 2025 13:52:30 -0300 Subject: [PATCH] build: add pyproject.toml with modern Python packaging configuration --- pyproject.toml | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..ccf2b7e --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,66 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "evolutionapi" +version = "0.1.1" +description = "Client Python para a API Evolution" +readme = "README.md" +requires-python = ">=3.8" +license = {text = "MIT"} +authors = [ + {name = "Davidson Gomes", email = "contato@agenciadgcode.com"} +] +keywords = ["evolution", "api", "whatsapp", "client"] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "Programming Language :: Python :: 3", + "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", +] + +dependencies = [ + "requests>=2.25.1", + "requests-toolbelt>=1.0.0", + "python-socketio>=5.11.1", +] + +[project.urls] +Homepage = "https://github.com/EvolutionAPI/evolution-client-python" +Repository = "https://github.com/EvolutionAPI/evolution-client-python" +Issues = "https://github.com/EvolutionAPI/evolution-client-python/issues" + +[tool.hatch.build.targets.wheel] +packages = ["evolutionapi"] + +[tool.ruff] +line-length = 100 +target-version = "py38" + +[tool.ruff.lint] +select = [ + "E", # pycodestyle errors + "W", # pycodestyle warnings + "F", # pyflakes + "I", # isort + "N", # pep8-naming + "UP", # pyupgrade + "B", # flake8-bugbear + "C4", # flake8-comprehensions + "SIM", # flake8-simplify +] +ignore = [ + "E501", # line too long (handled by formatter) +] + +[tool.ruff.lint.isort] +known-first-party = ["evolutionapi"] + +[tool.ruff.format] +quote-style = "double" +indent-style = "space"