| [build-system] |
| requires = ["hatchling", "hatch-requirements-txt", "hatch-fancy-pypi-readme>=22.5.0"] |
| build-backend = "hatchling.build" |
|
|
| [project] |
| name = "gradio" |
| dynamic = ["version", "dependencies", "optional-dependencies", "readme"] |
| description = "Python library for easily interacting with trained machine learning models" |
| license = "Apache-2.0" |
| requires-python = ">=3.8" |
| authors = [ |
| { name = "Abubakar Abid", email = "team@gradio.app" }, |
| { name = "Ali Abid", email = "team@gradio.app" }, |
| { name = "Ali Abdalla", email = "team@gradio.app" }, |
| { name = "Dawood Khan", email = "team@gradio.app" }, |
| { name = "Ahsen Khaliq", email = "team@gradio.app" }, |
| { name = "Pete Allen", email = "team@gradio.app" }, |
| { name = "Ömer Faruk Özdemir", email = "team@gradio.app" }, |
| ] |
| keywords = ["machine learning", "reproducibility", "visualization"] |
|
|
| classifiers = [ |
| 'Development Status :: 5 - Production/Stable', |
| 'License :: OSI Approved :: Apache Software License', |
| 'Operating System :: OS Independent', |
| 'Programming Language :: Python :: 3', |
| 'Programming Language :: Python :: 3 :: Only', |
| 'Programming Language :: Python :: 3.8', |
| 'Programming Language :: Python :: 3.9', |
| 'Programming Language :: Python :: 3.10', |
| 'Programming Language :: Python :: 3.11', |
| 'Topic :: Scientific/Engineering', |
| 'Topic :: Scientific/Engineering :: Artificial Intelligence', |
| 'Topic :: Scientific/Engineering :: Visualization', |
| ] |
|
|
| [project.scripts] |
| gradio = "gradio.cli:cli" |
| upload_theme = "gradio.themes.upload_theme:main" |
|
|
| [project.urls] |
| Homepage = "https://github.com/gradio-app/gradio" |
|
|
| [tool.hatch.version] |
| path = "gradio/package.json" |
| pattern = ".*\"version\":\\s*\"(?P<version>[^\"]+)\"" |
|
|
| [tool.hatch.metadata.hooks.requirements_txt] |
| filename = "requirements.txt" |
|
|
| [tool.hatch.metadata.hooks.requirements_txt.optional-dependencies] |
| oauth = ["requirements-oauth.txt"] |
|
|
| [tool.hatch.metadata.hooks.fancy-pypi-readme] |
| content-type = "text/markdown" |
| fragments = [ |
| { path = "README.md" }, |
| ] |
|
|
| [[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]] |
| pattern = "(website/homepage|readme_files)/" |
| replacement = 'https://raw.githubusercontent.com/gradio-app/gradio/main/\g<1>/' |
|
|
| [[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]] |
| pattern = 'demo/([\S]*.gif)' |
| replacement = 'https://raw.githubusercontent.com/gradio-app/gradio/main/demo/\g<1>' |
|
|
| [tool.hatch.build] |
| artifacts = [ |
| "/gradio/templates", |
| ] |
|
|
|
|
| [tool.hatch.build.targets.sdist] |
| include = [ |
| "/gradio", |
| "/test", |
| "/README.md", |
| "/requirements.txt", |
| "/requirements-oauth.txt", |
| ] |
|
|
| [tool.pyright] |
| include = ["gradio/**/*.py"] |
| exclude = ["gradio/themes/"] |
|
|
| [tool.ruff] |
| target-version = "py37" |
| extend-select = [ |
| "B", |
| "C", |
| "I", |
| "N", |
| "SIM", |
| "UP", |
| ] |
| ignore = [ |
| "C901", |
| "B023", |
| "B008", |
| "B017", |
| "B028", |
| "E501", |
| "SIM105", |
| "SIM117", |
| "UP007", |
| ] |
|
|
| [tool.ruff.per-file-ignores] |
| "demo/*" = [ |
| "E402", |
| "E741", |
| "F405", |
| "I", |
| ] |
| "gradio/__init__.py" = [ |
| "F401", |
| ] |
| "gradio/routes.py" = [ |
| "UP006", |
| ] |
|
|
| [tool.pytest.ini_options] |
| GRADIO_ANALYTICS_ENABLED = "False" |