Skip to content

Commit c208419

Browse files
authored
feat: Migrate to uv from pipenv (#525)
1 parent 5d80e13 commit c208419

File tree

9 files changed

+495
-344
lines changed

9 files changed

+495
-344
lines changed

.github/workflows/tox.yml renamed to .github/workflows/ci.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,30 @@ on:
55
pull_request:
66
branches: [master]
77
jobs:
8-
tox:
8+
test:
99
strategy:
1010
fail-fast: false
1111
matrix:
1212
python: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"]
1313
runs-on: ubuntu-latest
14+
env:
15+
UV_PYTHON: ${{ matrix.python }}
16+
UV_LOCKED: 1
17+
UV_NO_DEV: 1
1418
steps:
1519
- uses: actions/checkout@v5
20+
with:
21+
persist-credentials: false
22+
1623
- uses: actions/setup-python@v6
1724
with:
1825
python-version: ${{ matrix.python }}
1926
allow-prereleases: true
20-
- run: pip install --upgrade pip
21-
- run: pip install tox
22-
- run: tox -e py
27+
28+
- name: Install uv
29+
uses: astral-sh/setup-uv@v7
30+
with:
31+
version: "0.9.10"
32+
33+
- name: Run tests
34+
run: uv run --extra solrcloud -- python run-tests.py

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,8 @@ repos:
5151
rev: v0.24.1
5252
hooks:
5353
- id: validate-pyproject
54+
55+
- repo: https://github.com/astral-sh/uv-pre-commit
56+
rev: 0.9.10
57+
hooks:
58+
- id: uv-lock

Pipfile

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

Pipfile.lock

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

pyproject.toml

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

32+
[dependency-groups]
33+
dev = [
34+
"coverage",
35+
"pre-commit>=4.4",
36+
]
37+
38+
[tool.setuptools]
39+
py-modules = [ "pysolr" ]
40+
include-package-data = false
41+
42+
[tool.ruff]
443
lint.select = [
544
"A", # flake8-builtins
645
"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/**

tox.ini

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

uv.lock

Lines changed: 432 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)