diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..26158f7 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,37 @@ +[build-system] +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "json-to-openapi" +version = "1.0.0" +description = "A Python CLI tool that analyzes JSON data files and automatically generates valid OpenAPI 3.0 specification files" +readme = "README.md" +license = {text = "MIT"} +requires-python = ">=3.9" +dependencies = [ + "click>=8.0", + "jsonschema>=4.0", + "pyyaml>=6.0", +] + +[project.optional-dependencies] +dev = [ + "pytest>=7.0", + "pytest-cov>=4.0", +] + +[project.scripts] +json-to-openapi = "json_to_openapi.cli:main" + +[tool.setuptools.packages.find] +include = ["json_to_openapi*"] + +[tool.pytest.ini_options] +testpaths = ["tests"] +python_files = ["test_*.py"] +python_functions = ["test_*"] + +[tool.ruff] +line-length = 100 +target-version = "py39"