From 2cb789190c3cba0548b47fd32445af0e5c52378b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Clgen=20Sar=C4=B1kavak?= Date: Sun, 7 Jun 2026 11:59:51 +0300 Subject: [PATCH 1/3] Init pyproject.toml file with metadata --- .pre-commit-config.yaml | 1 - pyproject.toml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 pyproject.toml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9635364b..94a109c7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,6 @@ repos: args: [ "--indent", "4", "--keep-full-version", - "--max-supported-python", "3.10", ] - repo: https://github.com/adamchainz/django-upgrade diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..aadfbe86 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,31 @@ +[project] +name = "drf-haystack" +version = "1.9.1" +description = "Makes Haystack play nice with Django REST Framework" +readme = "README.md" +license = "MIT" +authors = [ + { name = "Dhaval Gojiya", email = "dhavalgojiya10@gmail.com" }, + { name = "Rolf Håvard Blindheim", email = "rhblind@gmail.com" }, + { name = "Ülgen Sarıkavak", email = "foss@ulgenwanders.net" }, +] +requires-python = ">=3.8,<3.11" +classifiers = [ + # The package is being transferred between organizations and has no working tests / CI. + # Use at your own risk. + "Development Status :: 3 - Alpha", + "Environment :: Web Environment", + "Framework :: Django", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Topic :: Software Development :: Libraries :: Python Modules", +] +urls.Documentation = "https://drf-haystack.readthedocs.io" +urls.Homepage = "https://github.com/ulgens/drf-haystack" +urls.Issues = "https://github.com/ulgens/drf-haystack/issues" +urls.Repository = "https://github.com/ulgens/drf-haystack.git" From 56c0ae4b6f556912ff6be52cbbd8c13607401a29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Clgen=20Sar=C4=B1kavak?= Date: Sun, 7 Jun 2026 12:00:27 +0300 Subject: [PATCH 2/3] Add indexing/search topic to classifiers --- pyproject.toml | 1 + setup.py | 1 + 2 files changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index aadfbe86..e8196a60 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,6 +23,7 @@ classifiers = [ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Topic :: Internet :: WWW/HTTP :: Indexing/Search", "Topic :: Software Development :: Libraries :: Python Modules", ] urls.Documentation = "https://drf-haystack.readthedocs.io" diff --git a/setup.py b/setup.py index 098f65f6..6ab143c3 100644 --- a/setup.py +++ b/setup.py @@ -54,6 +54,7 @@ def get_version(package): "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Topic :: Internet :: WWW/HTTP :: Indexing/Search", "Topic :: Software Development :: Libraries :: Python Modules", ], python_requires=">=3.8, <3.11", From afeebab26347f7b372210e824fe3b10c0e64935e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Clgen=20Sar=C4=B1kavak?= Date: Sun, 7 Jun 2026 22:50:04 +0300 Subject: [PATCH 3/3] Centralize pyproject-fmt args --- .pre-commit-config.yaml | 4 ---- pyproject.toml | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 94a109c7..2d35f94c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,10 +12,6 @@ repos: rev: v2.12.1 hooks: - id: pyproject-fmt - args: [ - "--indent", "4", - "--keep-full-version", - ] - repo: https://github.com/adamchainz/django-upgrade rev: 1.29.1 diff --git a/pyproject.toml b/pyproject.toml index e8196a60..e9ff3b17 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,3 +30,7 @@ urls.Documentation = "https://drf-haystack.readthedocs.io" urls.Homepage = "https://github.com/ulgens/drf-haystack" urls.Issues = "https://github.com/ulgens/drf-haystack/issues" urls.Repository = "https://github.com/ulgens/drf-haystack.git" + +[tool.pyproject-fmt] +indent = 4 +keep_full_version = true