diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..4597a01 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,48 @@ +[build-system] +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "stubgen" +version = "0.1.0" +description = "A CLI tool that automatically generates Python type stub files (.pyi) from untyped Python code" +readme = "README.md" +license = {text = "MIT"} +requires-python = ">=3.9" +classifiers = [ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] +dependencies = [ + "click>=8.0", + "asttokens>=2.0", + "typing-extensions>=4.0", +] + +[project.optional-dependencies] +dev = [ + "pytest>=7.0", + "pytest-cov", +] + +[tool.stubgen] +exclude_patterns = ["tests/*", "*/__pycache__/*", "*/.venv/*", "*/venv/*"] +infer_depth = 3 +strict_mode = false +interactive = false + +[project.scripts] +stubgen = "stubgen.cli:main" + +[tool.setuptools.packages.find] +include = ["stubgen*"] + +[tool.pytest.ini_options] +testpaths = ["tests"] +python_files = ["test_*.py"]