Files
foreignthon-core/pyproject.toml
2026-05-18 15:58:09 +00:00

62 lines
1.5 KiB
TOML

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "foreignthon"
version = "0.5.1"
description = "Write Python in any language. Transpiles foreign-language .xx.py files to standard Python."
license = { text = "GPL v3" }
requires-python = ">=3.9"
authors = [
{ name = "Keshav Anand", email = "keshavanand.dev@gmail.com" }
]
keywords = ["python", "transpiler", "i18n", "localization", "language"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Pre-processors",
]
dependencies = [
"click>=8.0",
]
[project.scripts]
fpy = "foreignthon.cli:main"
[project.entry-points."foreignthon.langs"]
# Language packs register themselves here.
# e.g. foreignthon-es adds: es = "foreignthon_es"
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"ruff>=0.4",
]
[tool.hatch.build.targets.wheel]
packages = ["src/foreignthon"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
line-length = 88
src = ["src"]
[tool.ruff.lint]
select = ["E", "F", "I"]
ignore = ["E501"]
[tool.ruff.lint.per-file-ignores]
"pack.py" = ["E501"]
[tool.hatch.build.targets.wheel.force-include]
"src/foreignthon/template.json" = "foreignthon/template.json"