diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9635364b..2d35f94c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,11 +12,6 @@ repos: rev: v2.12.1 hooks: - id: pyproject-fmt - args: [ - "--indent", "4", - "--keep-full-version", - "--max-supported-python", "3.10", - ] - repo: https://github.com/adamchainz/django-upgrade rev: 1.29.1 diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..e9ff3b17 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,36 @@ +[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 :: Internet :: WWW/HTTP :: Indexing/Search", + "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" + +[tool.pyproject-fmt] +indent = 4 +keep_full_version = true 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",