Skip to content

Commit fd61cd5

Browse files
committed
PEP 621: Migrate from setup.{py, cfg} to pyproject.toml
1 parent ec2ff51 commit fd61cd5

File tree

4 files changed

+33
-34
lines changed

4 files changed

+33
-34
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Or if you want to install directly from the repository:
4343

4444
.. code-block:: console
4545
46-
$ python setup.py install
46+
$ pip install --editable .
4747
4848
Usage
4949
=====

pyproject.toml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,35 @@
1-
[tool.ruff]
2-
target-version = "py310"
1+
[project]
2+
name = "pysolr"
3+
version = "3.11.0"
4+
description = "Lightweight Python client for Apache Solr"
5+
readme = "README.rst"
6+
license = { text = "BSD" }
7+
authors = [ { name = "Daniel Lindsley", email = "daniel@toastdriven.com" } ]
8+
requires-python = ">=3.10"
9+
classifiers = [
10+
"Development Status :: 5 - Production/Stable",
11+
"Intended Audience :: Developers",
12+
"License :: OSI Approved :: BSD License",
13+
"Operating System :: OS Independent",
14+
"Programming Language :: Python",
15+
"Programming Language :: Python :: 3 :: Only",
16+
"Programming Language :: Python :: 3.10",
17+
"Programming Language :: Python :: 3.11",
18+
"Programming Language :: Python :: 3.12",
19+
"Programming Language :: Python :: 3.13",
20+
"Programming Language :: Python :: 3.14",
21+
"Topic :: Internet :: WWW/HTTP :: Indexing/Search",
22+
]
23+
24+
dependencies = [ "requests>=2.32.5", "setuptools" ]
25+
optional-dependencies.solrcloud = [ "kazoo>=2.5" ]
26+
urls.Homepage = "https://github.com/django-haystack/pysolr/"
327

28+
[tool.setuptools]
29+
py-modules = [ "pysolr" ]
30+
include-package-data = false
31+
32+
[tool.ruff]
433
lint.select = [
534
"A", # flake8-builtins
635
"AIR", # Airflow

setup.py

Lines changed: 0 additions & 30 deletions
This file was deleted.

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ sonar.projectKey=django-haystack_pysolr
44
sonar.organization=django-haystack
55
sonar.host.url=https://sonarcloud.io
66
sonar.python.coverage.reportPaths=coverage.xml
7-
sonar.coverage.exclusions=setup.py,solr/**
7+
sonar.coverage.exclusions=solr/**

0 commit comments

Comments
 (0)