Skip to content

Commit 8c28b27

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

File tree

4 files changed

+43
-32
lines changed

4 files changed

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

36+
dependencies = [ "requests>=2.32.5", "setuptools" ]
37+
optional-dependencies.solrcloud = [ "kazoo>=2.5" ]
38+
urls.Homepage = "https://github.com/django-haystack/pysolr/"
39+
40+
[tool.setuptools]
41+
py-modules = [ "pysolr" ]
42+
include-package-data = false
43+
44+
[tool.ruff]
445
lint.select = [
546
"A", # flake8-builtins
647
"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)