Files
django-nepkit/pyproject.toml
T
sankalp 1338f9e5fe refactor: global project refinement, DRY consolidation, and documentation overhaul
This commit represents a comprehensive improvement of the library's architecture, developer experience, and documentation accuracy.

Core Refactoring:
- apply DRY principle to models.py by introducing BaseNepaliBSField and BaseLocationField
- standardize widget logic in widgets.py using NepaliWidgetMixin
- centralize admin filtering logic into BaseNepaliDateFilter

New Features & API:
- add NepaliMonthFilter for Django Admin and NepaliDateMonthFilter for DRF
- implementation of HTMX-driven location chaining for dynamic address selects
- extend demo project with comprehensive DRF search, ordering, and filter examples

Configuration & Sync:
- implement global NEPKIT settings in conf.py (DEFAULT_LANGUAGE, ADMIN_DATEPICKER, etc.)
- universalize BS_DATE_FORMAT/BS_DATETIME_FORMAT across the entire stack
- synchronize frontend datepicker initialization with backend date formats

Documentation & DX:
- complete rewrite of README.md into high-energy, factual, English-only guides
- project-wide audit and simplification of comments/docstrings for beginner accessibility
- expanded 'Technical Design' and 'FAQ' sections covering data integrity and storage
- added docs/migration_guide.py for bulk AD-to-BS data transitions

Quality & Maintenance:
- fixed all E402 module-level import errors across the library
- verified codebase with project-wide ruff checks (all checks passed)
2026-01-30 17:00:33 +05:45

77 lines
1.7 KiB
TOML

[build-system]
requires = ["setuptools>=61", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "django-nepkit"
version = "0.1.0"
description = "Django Nepali date, time, phone, and address fields with helpers."
readme = "README.md"
authors = [
{ name = "Sankalp Tharu", email = "sankalptharu50028@gmail.com" }
]
license = { text = "MIT" }
requires-python = ">=3.11"
dependencies = [
"django>=4.2",
"django-filter>=25.2",
"djangorestframework>=3.16.1",
"nepali>=1.1.3",
"pytest>=9.0.2",
]
keywords = [
"django",
"django-fields",
"django-forms",
"nepal",
"nepali",
"nepali-date",
"bikram-sambat",
"nepali-calendar",
"timezone",
"asia-kathmandu",
"phone-number",
"address",
"province",
"district",
"municipality"
]
classifiers = [
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 6.0",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"Operating System :: OS Independent",
"Natural Language :: English"
]
[project.optional-dependencies]
drf = [
"djangorestframework>=3.14",
"django-filter>=23.1",
]
[project.urls]
Homepage = "https://github.com/S4NKALP/django-nepkit"
[dependency-groups]
dev = [
"pre-commit>=4.5.1",
"ruff>=0.14.14",
]
[tool.setuptools.packages.find]
include = ["django_nepkit", "example", "example.*"]