|
| 1 | +[build-system] |
| 2 | +requires = ["setuptools>=42", "wheel"] |
| 3 | +build-backend = "setuptools.build_meta" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "pypinyin" |
| 7 | +description = "汉字拼音转换模块/工具." |
| 8 | +readme = "README.rst" |
| 9 | +dynamic = ["version"] |
| 10 | +requires-python = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4" |
| 11 | +license = {text = "MIT"} |
| 12 | +authors = [{ name = "mozillazg, 闲耘", email = "[email protected]"}] |
| 13 | +classifiers = [ |
| 14 | + "Development Status :: 5 - Production/Stable", |
| 15 | + "Intended Audience :: Developers", |
| 16 | + "License :: OSI Approved :: MIT License", |
| 17 | + "Operating System :: OS Independent", |
| 18 | + "Programming Language :: Python", |
| 19 | + "Programming Language :: Python :: 2", |
| 20 | + "Programming Language :: Python :: 2.7", |
| 21 | + "Programming Language :: Python :: 3", |
| 22 | + "Programming Language :: Python :: 3.4", |
| 23 | + "Programming Language :: Python :: 3.5", |
| 24 | + "Programming Language :: Python :: 3.6", |
| 25 | + "Programming Language :: Python :: 3.7", |
| 26 | + "Programming Language :: Python :: 3.8", |
| 27 | + "Programming Language :: Python :: 3.9", |
| 28 | + "Programming Language :: Python :: 3.10", |
| 29 | + "Programming Language :: Python :: 3.11", |
| 30 | + "Programming Language :: Python :: 3.12", |
| 31 | + "Programming Language :: Python :: 3.13", |
| 32 | + "Programming Language :: Python :: Implementation :: CPython", |
| 33 | + "Programming Language :: Python :: Implementation :: PyPy", |
| 34 | + "Topic :: Utilities", |
| 35 | + "Topic :: Text Processing" |
| 36 | +] |
| 37 | +keywords = ["pinyin", "拼音"] |
| 38 | +dependencies = [ |
| 39 | + "argparse; python_version < '2.7'", |
| 40 | + "enum34; python_version < '3.4'", |
| 41 | + "typing; python_version < '3.5'" |
| 42 | +] |
| 43 | + |
| 44 | +[project.urls] |
| 45 | +Documentation = "https://pypinyin.readthedocs.io/" |
| 46 | +Source = "https://github.com/mozillazg/python-pinyin" |
| 47 | +Tracker = "https://github.com/mozillazg/python-pinyin/issues" |
| 48 | + |
| 49 | +[project.scripts] |
| 50 | +pypinyin = "pypinyin.__main__:main" |
| 51 | + |
| 52 | +[project.entry-points.pyinstaller40] |
| 53 | +hook-dirs = "pypinyin.__pyinstaller:get_hook_dirs" |
| 54 | + |
| 55 | +[dependency-groups] |
| 56 | +dev = [ |
| 57 | + "argparse", |
| 58 | + "mypy; python_version >= '3.5'", |
| 59 | + "pre-commit", |
| 60 | + "pygments>=2.7.4; python_version >= '3.5'", |
| 61 | + "pytest", |
| 62 | + "pytest-cov", |
| 63 | + "pytest-random-order", |
| 64 | + "setuptools", |
| 65 | + "sphinx>=3.0.4; python_version >= '3.5'", |
| 66 | + "tox" |
| 67 | +] |
| 68 | +release = [ |
| 69 | + "bumpversion", |
| 70 | + "twine", |
| 71 | + "wheel>=0.21" |
| 72 | +] |
| 73 | + |
| 74 | +[tool.setuptools] |
| 75 | +packages = ["pypinyin", "pypinyin.contrib", "pypinyin.seg", "pypinyin.style", "pypinyin.tools", "pypinyin.__pyinstaller"] |
| 76 | +include-package-data = true |
| 77 | +zip-safe = false |
| 78 | + |
| 79 | +[tool.setuptools.dynamic] |
| 80 | +version = {attr = "pypinyin.__version__"} |
0 commit comments