[build-system]
build-backend = "hatchling.build"
requires = [ "hatchling" ]

[project]
name = "wcwidth"
version = "0.8.1"  # don't forget to also update wcwidth/__init__.py:__version__
description = "Measures the displayed width of unicode strings in a terminal"
readme = "README.rst"
keywords = [
  "cjk",
  "combining",
  "console",
  "eastasian",
  "emoji",
  "emulator",
  "terminal",
  "unicode",
  "wcswidth",
  "wcwidth",
  "xterm",
]
license = "MIT"
license-files = [ "LICENSE" ]
authors = [
  { name = "Jeff Quast", email = "contact@jeffquast.com" },
]
requires-python = ">=3.8"
classifiers = [
  "Development Status :: 5 - Production/Stable",
  "Environment :: Console",
  "Intended Audience :: Developers",
  "Natural Language :: English",
  "Operating System :: POSIX",
  "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",
  "Programming Language :: Python :: 3.12",
  "Programming Language :: Python :: 3.13",
  "Programming Language :: Python :: 3.14",
  "Programming Language :: Python :: 3.15",
  "Topic :: Software Development :: Internationalization",
  "Topic :: Software Development :: Libraries",
  "Topic :: Software Development :: Localization",
  "Topic :: Terminals",
  "Typing :: Typed",
]

[project.urls]
Homepage = "https://github.com/jquast/wcwidth"

[tool.hatch.build.targets.sdist]
include = [
  # hatch includes **everything**, even embarrassing TODO files or spreadsheets or whatever is in
  # your root folder, a commonly dangerous thing even without hatch, like that we released an
  # unimported table_vs15.py in version 0.2.14. A 'git clean -dfx' should work ..  but! *Global* git
  # ignore is not honored by hatch, even files containing secrets may easily be leaked!
  "/wcwidth/**",
  "/bin/**",
  "/code_templates/**",
  "/docs/**",
  "/tests/*.py",
  "/README.rst",
  "/LICENSE",
  "/tox.ini",
  "/requirements-*.in",
  "/requirements-*.txt",
  "/.gitignore",
  "/.pylintrc",
]

[tool.hatch.build.targets.sdist.force-include]
"ucs-detect/data" = "ucs-detect/data"
