diff --git a/pyproject.toml b/pyproject.toml index 48b6015..327f22d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,39 +1,59 @@ [build-system] -requires = ["setuptools>=61.0"] +requires = ["setuptools>=61.0", "wheel"] build-backend = "setuptools.build_meta" [project] -name = "curl-to-code-converter" -version = "1.0.0" -description = "A CLI tool that converts cURL commands into code snippets in various programming languages" +name = "localapi-docs" +version = "0.1.0" +description = "A CLI tool that generates local, privacy-focused API documentation server from OpenAPI/Swagger specs" readme = "README.md" +requires-python = ">=3.9" license = {text = "MIT"} -requires-python = ">=3.7" +authors = [ + {name = "LocalAPI Contributors"} +] +keywords = ["api", "documentation", "openapi", "swagger", "cli"] classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", - "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 = [ + "click>=8.1.0", + "pydantic>=2.0.0", + "jinja2>=3.1.0", + "pyyaml>=6.0.0", + "openapi-spec-validator>=0.6.0", + "python-json-logger>=2.0.0", ] -keywords = ["curl", "converter", "cli", "code-generation", "http"] - -[project.scripts] -curl-to-code = "curl_to_code_converter.__main__:main" - -[project.urls] -Homepage = "https://github.com/example/curl-to-code-converter" [project.optional-dependencies] dev = [ "pytest>=7.0.0", - "ruff>=0.1.0", + "pytest-cov>=4.0.0", ] +[project.scripts] +localapi-docs = "src.cli:main" + [tool.setuptools.packages.find] where = ["."] -include = ["curl_to_code_converter*"] + +[tool.pytest.ini_options] +testpaths = ["tests"] +python_files = ["test_*.py"] +python_classes = ["Test*"] +python_functions = ["test_*"] +addopts = "-v --tb=short" + +[tool.coverage.run] +source = ["src"] +omit = ["tests/*"] + +[tool.coverage.report] +exclude_lines = ["pragma: no cover", "def __repr__", "raise AssertionError", "raise NotImplementedError"]