[project]
name = "setuptools-rust"
version = "1.11.1"
description = "Setuptools Rust extension plugin"
readme = "README.md"
requires-python = ">=3.9"
keywords = ["distutils", "setuptools", "rust"]
authors = [
    {name = "Nikolay Kim", email = "fafhrd91@gmail.com"},
]
classifiers = [
    "Topic :: Software Development :: Version Control",
    "License :: OSI Approved :: MIT License",
    "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",
    "Development Status :: 5 - Production/Stable",
    "Operating System :: POSIX",
    "Operating System :: MacOS :: MacOS X",
    "Operating System :: Microsoft :: Windows",
]

dependencies = [
    "setuptools>=62.4",
    "semantic_version>=2.8.2,<3",
]

[project.entry-points."distutils.commands"]
clean_rust = "setuptools_rust:clean_rust"
build_rust = "setuptools_rust:build_rust"

[project.entry-points."distutils.setup_keywords"]
rust_extensions = "setuptools_rust.setuptools_ext:rust_extensions"

[project.entry-points."setuptools.finalize_distribution_options"]
setuptools_rust = "setuptools_rust.setuptools_ext:pyprojecttoml_config"

[project.urls]
Homepage = "https://github.com/PyO3/setuptools-rust"
Repository = "https://github.com/PyO3/setuptools-rust"
Documentation = "https://setuptools-rust.readthedocs.io"
Changelog = "https://github.com/PyO3/setuptools-rust/blob/main/CHANGELOG.md"

[build-system]
requires = ["setuptools>=62.4", "setuptools_scm"]
build-backend = "setuptools.build_meta"

[tool.ruff.lint]
extend-select = ["TID251"]

[tool.ruff.lint.extend-per-file-ignores]
"__init__.py" = ["F403"]

[tool.ruff.lint.flake8-tidy-imports.banned-api]
"subprocess.run".msg = "Use `_utils.run_subprocess` to ensure `env` is passed"
"subprocess.check_output".msg = "Use `_utils.check_subprocess_output` to ensure `env` is passed"

[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--doctest-modules"

[tool.setuptools]
packages = ["setuptools_rust"]
zip-safe = true

[tool.setuptools.package-data]
setuptools_rust = ["py.typed"]
