Files
Django-Translatable-Fields/pyproject.toml
Holger Sielaff bc4463b68e ...
2025-08-04 17:55:26 +02:00

126 lines
3.2 KiB
TOML

[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "django-translatable-fields"
version = "0.1.3"
description = "Django plugin that mimics Odoo's translate=True functionality with admin interface integration"
readme = "README.md"
license = {file = "LICENSE"}
authors = [
{name = "Holger Sielaff", email = "holger@backender.de"}
]
maintainers = [
{name = "Holger Sielaff", email = "holger@backender.de"}
]
keywords = [
"django",
"translation",
"internationalization",
"i18n",
"multilingual",
"translatable",
"fields",
"admin"
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"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 :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.9"
dependencies = [
"Django>=4.2",
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-django",
"black",
"isort",
"flake8",
"mypy",
"django-stubs",
]
drf = [
"djangorestframework>=3.14.0",
]
[project.urls]
Homepage = "https://repo.backender.de/holger/Django-Translatable-Fields"
Documentation = "https://repo.backender.de/holger/Django-Translatable-Fields#readme"
Repository = "https://repo.backender.de/holger/Django-Translatable-Fields.git"
"Bug Tracker" = "https://repo.backender.de/holger/Django-Translatable-Fields/issues"
Changelog = "https://repo.backender.de/holger/Django-Translatable-Fields/blob/main/CHANGELOG.md"
[tool.setuptools]
packages = ["django_translatable_fields"]
include-package-data = true
[tool.setuptools.package-data]
django_translatable_fields = [
"static/django_translatable_fields/*",
"templates/django_translatable_fields/*",
"locale/*/LC_MESSAGES/*",
]
[tool.black]
line-length = 88
target-version = ['py39']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 88
known_django = "django"
known_first_party = "django_translatable_fields"
sections = ["FUTURE", "STDLIB", "DJANGO", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
plugins = ["mypy_django_plugin.main"]
[tool.django-stubs]
django_settings_module = "tests.settings"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "tests.settings"
python_files = ["tests.py", "test_*.py", "*_tests.py"]
addopts = "--tb=short"
testpaths = ["tests"]