diff --git a/README.rst b/README.rst index 4cc2cc6..1516a48 100644 --- a/README.rst +++ b/README.rst @@ -43,7 +43,7 @@ Or if you want to install directly from the repository: .. code-block:: console - $ python setup.py install + $ pip install --editable . Usage ===== diff --git a/pyproject.toml b/pyproject.toml index 383f16a..3284bb1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,35 @@ -[tool.ruff] -target-version = "py310" +[project] +name = "pysolr" +version = "3.11.0" +description = "Lightweight Python client for Apache Solr" +readme = "README.rst" +license = { text = "BSD" } +authors = [ { name = "Daniel Lindsley", email = "daniel@toastdriven.com" } ] +requires-python = ">=3.10" +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: BSD License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Topic :: Internet :: WWW/HTTP :: Indexing/Search", +] + +dependencies = [ "requests>=2.32.5", "setuptools" ] +optional-dependencies.solrcloud = [ "kazoo>=2.5" ] +urls.Homepage = "https://github.com/django-haystack/pysolr/" +[tool.setuptools] +py-modules = [ "pysolr" ] +include-package-data = false + +[tool.ruff] lint.select = [ "A", # flake8-builtins "AIR", # Airflow diff --git a/setup.py b/setup.py deleted file mode 100644 index feb2f05..0000000 --- a/setup.py +++ /dev/null @@ -1,30 +0,0 @@ -try: - from setuptools import setup -except ImportError: - from distutils.core import setup - - -setup( - name="pysolr", - use_scm_version=True, - description="Lightweight Python client for Apache Solr", - author="Daniel Lindsley", - author_email="daniel@toastdriven.com", - long_description=open("README.rst", "r").read(), - py_modules=["pysolr"], - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Intended Audience :: Developers", - "License :: OSI Approved :: BSD License", - "Operating System :: OS Independent", - "Programming Language :: Python", - "Topic :: Internet :: WWW/HTTP :: Indexing/Search", - "Programming Language :: Python :: 3", - ], - url="https://github.com/django-haystack/pysolr/", - license="BSD", - install_requires=["requests>=2.32.5", "setuptools"], - python_requires=">=3.10", - extras_require={"solrcloud": ["kazoo>=2.5.0"]}, - setup_requires=["setuptools_scm"], -) diff --git a/sonar-project.properties b/sonar-project.properties index 93650b0..f8c300f 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -4,4 +4,4 @@ sonar.projectKey=django-haystack_pysolr sonar.organization=django-haystack sonar.host.url=https://sonarcloud.io sonar.python.coverage.reportPaths=coverage.xml -sonar.coverage.exclusions=setup.py,solr/** +sonar.coverage.exclusions=solr/**