Skip to content

Commit d331cf2

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

File tree

4 files changed

+40
-34
lines changed

4 files changed

+40
-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: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,42 @@
1-
[tool.ruff]
2-
target-version = "py310"
1+
[build-system]
2+
build-backend = "setuptools.build_meta"
3+
requires = [
4+
"setuptools>=61.2",
5+
"setuptools-scm",
6+
]
7+
8+
[project]
9+
name = "pysolr"
10+
description = "Lightweight Python client for Apache Solr"
11+
readme = "README.rst"
12+
license = { text = "BSD" }
13+
authors = [ { name = "Daniel Lindsley", email = "daniel@toastdriven.com" } ]
14+
requires-python = ">=3.10"
15+
classifiers = [
16+
"Development Status :: 5 - Production/Stable",
17+
"Intended Audience :: Developers",
18+
"License :: OSI Approved :: BSD License",
19+
"Operating System :: OS Independent",
20+
"Programming Language :: Python",
21+
"Programming Language :: Python :: 3 :: Only",
22+
"Programming Language :: Python :: 3.10",
23+
"Programming Language :: Python :: 3.11",
24+
"Programming Language :: Python :: 3.12",
25+
"Programming Language :: Python :: 3.13",
26+
"Programming Language :: Python :: 3.14",
27+
"Topic :: Internet :: WWW/HTTP :: Indexing/Search",
28+
]
29+
dynamic = [ "version" ]
330

31+
dependencies = [ "requests>=2.32.5", "setuptools" ]
32+
optional-dependencies.solrcloud = [ "kazoo>=2.5" ]
33+
urls.Homepage = "https://github.com/django-haystack/pysolr/"
34+
35+
[tool.setuptools]
36+
py-modules = [ "pysolr" ]
37+
include-package-data = false
38+
39+
[tool.ruff]
440
lint.select = [
541
"A", # flake8-builtins
642
"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)