From a681db412319869fae59b1dec01fc5c8ac9b6b3a Mon Sep 17 00:00:00 2001 From: Jan Pieter Waagmeester Date: Mon, 23 Dec 2024 14:46:25 +0100 Subject: [PATCH] Remove python_requires upper bound; format toml --- .pre-commit-config.yaml | 7 +++- pyproject.toml | 73 ++++++++++++++++++++++------------------- 2 files changed, 45 insertions(+), 35 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 70ab4fa9..4ee08d36 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,8 +9,13 @@ repos: rev: v3.19.0 hooks: - id: pyupgrade - args: [--py38-plus] + args: [--py39-plus] + - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks + rev: v2.14.0 + hooks: + - id: pretty-format-toml + args: [--autofix] - repo: https://github.com/pycqa/isort rev: 5.13.2 hooks: diff --git a/pyproject.toml b/pyproject.toml index 075bdf2d..38640233 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,42 +3,47 @@ build-backend = "hatchling.build" requires = ["hatchling"] [project] -name="django-tables2" -description="Table/data-grid framework for Django" -readme = "README.md" authors = [ - {name="Bradley Ayers",email="bradley.ayers@gmail.com"}, - {name="Jan Pieter Waagmeester", email="jieter@jieter.nl"}, + {name = "Bradley Ayers", email = "bradley.ayers@gmail.com"}, + {name = "Jan Pieter Waagmeester", email = "jieter@jieter.nl"} ] -license = {file = "LICENSE"} -dynamic = ["version"] -url="https://github.com/jieter/django-tables2/" -install_requires=["Django>=4.2"] -extras_require={tablib = ["tablib"]} -python_requires = ">=3.9,<=3.12" classifiers = [ - "Development Status :: 5 - Production/Stable", - "Environment :: Web Environment", - "Framework :: Django", - "Framework :: Django :: 4.2", - "Framework :: Django :: 5.0", - "Framework :: Django :: 5.1", - "Intended Audience :: Developers", - "License :: OSI Approved :: BSD License", - "Operating System :: OS Independent", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3 :: Only", - "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 :: Software Development :: Libraries", + "Development Status :: 5 - Production/Stable", + "Environment :: Web Environment", + "Framework :: Django", + "Framework :: Django :: 4.2", + "Framework :: Django :: 5.0", + "Framework :: Django :: 5.1", + "Intended Audience :: Developers", + "License :: OSI Approved :: BSD License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "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 :: Software Development :: Libraries" ] +description = "Table/data-grid framework for Django" +dynamic = ["version"] +extras_require = {tablib = ["tablib"]} +install_requires = ["Django>=4.2"] +license = {file = "LICENSE"} +name = "django-tables2" +python_requires = ">=3.9" +readme = "README.md" -[tool.hatch.version] -path = "django_tables2/__init__.py" +[project.urls] +Changelog = "https://github.com/jieter/django-tables2/blob/master/CHANGELOG.md" +Documentation = "https://django-tables2.readthedocs.io/en/latest/" +Homepage = "https://github.com/jieter/django-tables2/" +Readme = "https://github.com/jieter/django-tables2/blob/master/README.md" + +[tool.black] +line-length = 100 [tool.hatch.build.targets.sdist] exclude = ["docs"] @@ -46,8 +51,8 @@ exclude = ["docs"] [tool.hatch.build.targets.wheel] packages = ["django_tables2"] +[tool.hatch.version] +path = "django_tables2/__init__.py" + [tool.setuptools.dynamic] version = {attr = "django_tables2.__version__"} - -[tool.black] -line-length = 100