1[build-system] 2requires = ["setuptools>=58.5.0"] 3build-backend = "setuptools.build_meta" 4 5[project] 6name = "yapf" 7description = "A formatter for Python code" 8authors = [{ name = "Google Inc." }] 9maintainers = [{ name = "Bill Wendling", email = "morbo@google.com" }] 10dynamic = ["version"] 11license = { file = "LICENSE" } 12readme = "README.md" 13requires-python = ">=3.7" 14classifiers = [ 15 'Development Status :: 4 - Beta', 16 'Environment :: Console', 17 'Intended Audience :: Developers', 18 'License :: OSI Approved :: Apache Software License', 19 'Operating System :: OS Independent', 20 'Programming Language :: Python', 21 'Programming Language :: Python :: 3 :: Only', 22 'Programming Language :: Python :: 3.7', 23 'Programming Language :: Python :: 3.8', 24 'Programming Language :: Python :: 3.9', 25 'Programming Language :: Python :: 3.10', 26 'Programming Language :: Python :: 3.11', 27 'Topic :: Software Development :: Libraries :: Python Modules', 28 'Topic :: Software Development :: Quality Assurance', 29] 30dependencies = ['platformdirs>=3.5.1', 'tomli>=2.0.1; python_version<"3.11"'] 31 32[project.scripts] 33yapf = "yapf:run_main" 34yapf-diff = "yapf_third_party.yapf_diff.yapf_diff:main" 35 36[project.urls] 37# https://daniel.feldroy.com/posts/2023-08-pypi-project-urls-cheatsheet 38Home = 'https://github.com/google/yapf' 39Changelog = 'https://github.com/google/yapf/blob/main/CHANGELOG.md' 40Docs = 'https://github.com/google/yapf/blob/main/README.md#yapf' 41Issues = 'https://github.com/google/yapf/issues' 42 43[tool.distutils.bdist_wheel] 44python_tag = "py3" 45 46[tool.setuptools] 47include-package-data = true 48package-dir = { yapf_third_party = 'third_party/yapf_third_party' } 49 50[tool.setuptools.dynamic] 51version = { attr = "yapf._version.__version__" } 52 53[tool.setuptools.packages.find] 54where = [".", 'third_party'] 55include = ["yapf*", 'yapftests*'] 56 57[tool.setuptools.package-data] 58yapf_third_party = [ 59 'yapf_diff/LICENSE', 60 '_ylib2to3/Grammar.txt', 61 '_ylib2to3/PatternGrammar.txt', 62 '_ylib2to3/LICENSE', 63] 64