| 1 |
[build-system] |
| 2 |
requires = ["hatchling >= 1.26.1", "hatch-fancy-pypi-readme"] |
| 3 |
build-backend = "hatchling.build" |
| 4 |
|
| 5 |
[project] |
| 6 |
name = "PyTermGUI" |
| 7 |
authors = [ { name = "Balázs Cene", email= "[email protected]" } ] |
| 8 |
description = """\ |
| 9 |
Python TUI framework with mouse support, modular widget system, \ |
| 10 |
customizable and rapid terminal markup language and more!\ |
| 11 |
""" |
| 12 |
|
| 13 |
license = {text = "MIT"} |
| 14 |
|
| 15 |
requires-python = ">=3.8" |
| 16 |
dependencies = ["wcwidth", "typing_extensions"] |
| 17 |
|
| 18 |
keywords = [ |
| 19 |
"terminal", |
| 20 |
"user-interface", |
| 21 |
"framework", |
| 22 |
"UI", |
| 23 |
"TUI", |
| 24 |
"markup", |
| 25 |
"xterm", |
| 26 |
"ANSI", |
| 27 |
] |
| 28 |
|
| 29 |
classifiers = [ |
| 30 |
"Development Status :: 5 - Production/Stable", |
| 31 |
"Environment :: Console", |
| 32 |
"Framework :: IPython", |
| 33 |
"Intended Audience :: Developers", |
| 34 |
"License :: OSI Approved :: MIT License", |
| 35 |
"Operating System :: MacOS", |
| 36 |
"Operating System :: POSIX :: Linux", |
| 37 |
"Programming Language :: Python :: 3.8", |
| 38 |
"Programming Language :: Python :: 3.9", |
| 39 |
"Programming Language :: Python :: 3.10", |
| 40 |
"Programming Language :: Python :: 3.11", |
| 41 |
"Typing :: Typed", |
| 42 |
"Topic :: Software Development :: Libraries", |
| 43 |
"Topic :: Terminals", |
| 44 |
"Topic :: Text Processing :: Markup", |
| 45 |
] |
| 46 |
|
| 47 |
dynamic = ["readme", "version"] |
| 48 |
|
| 49 |
[project.urls] |
| 50 |
homepage = "https://github.com/bczsalba/PyTermGUI" |
| 51 |
repository = "https://github.com/bczsalba/PyTermGUI" |
| 52 |
documentation = "https://ptg.bczsalba.com" |
| 53 |
|
| 54 |
[project.optional-dependencies] |
| 55 |
yaml = ["PyYAML"] |
| 56 |
|
| 57 |
[project.scripts] |
| 58 |
ptg = "pytermgui.cmd:main" |
| 59 |
|
| 60 |
[tool.hatch.version] |
| 61 |
path = "pytermgui/__init__.py" |
| 62 |
|
| 63 |
[tool.hatch.build] |
| 64 |
include = [ |
| 65 |
"/pytermgui", |
| 66 |
"/tests", |
| 67 |
"README.md", |
| 68 |
"CHANGELOG.md", |
| 69 |
] |
| 70 |
|
| 71 |
[tool.hatch.metadata.hooks.fancy-pypi-readme] |
| 72 |
content-type = "text/markdown" |
| 73 |
|
| 74 |
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] |
| 75 |
path = "README.md" |
| 76 |
end-before = "\n<!-- HATCH README END -->" |
| 77 |
|
| 78 |
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] |
| 79 |
text = """ |
| 80 |
|
| 81 |
## Latest release |
| 82 |
|
| 83 |
#""" |
| 84 |
|
| 85 |
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] |
| 86 |
path = "CHANGELOG.md" |
| 87 |
end-before = "\n<!-- HATCH README END -->" |
| 88 |
|
| 89 |
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] |
| 90 |
text = "\n\nRead the full changelog [here](https://github.com/bczsalba/pytermgui/blob/master/CHANGELOG.md).\n\n" |
| 91 |
|
| 92 |
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] |
| 93 |
path = "CHANGELOG.md" |
| 94 |
start-after = "\n<!-- HATCH URI DEFINITIONS START -->" |
| 95 |
|
| 96 |
[tool.mypy] |
| 97 |
show_error_codes = true |
| 98 |
|
| 99 |
[tool.pylint.messages_control] |
| 100 |
disable = [ |
| 101 |
"fixme", |
| 102 |
|
| 103 |
"not-callable" |
| 104 |
] |
| 105 |
|
| 106 |
[tool.pylint.basic] |
| 107 |
good-names = ["i", "j", "k", "ex", "Run", "_", "x" ,"y", "fd"] |
| 108 |
|
| 109 |
[tool.coverage.report] |
| 110 |
exclude_lines = [ |
| 111 |
"pragma: no cover", |
| 112 |
"if TYPE_CHECKING:", |
| 113 |
"def __fancy_repr__", |
| 114 |
"def __repr__", |
| 115 |
] |
| 116 |
|
| 117 |
omit = [ |
| 118 |
"pytermgui/cmd.py" |
| 119 |
] |
| 120 |
|
| 121 |
[tool.isort] |
| 122 |
profile = "black" |