Skip to content

Commit eacaa35

Browse files
committed
Rename as SimpleXNG.
1 parent 3be3a10 commit eacaa35

File tree

12 files changed

+124
-98
lines changed

12 files changed

+124
-98
lines changed

‎.copier-answers.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ package_author_email: joshua@cal.berkeley.edu
55
package_author_name: Joshua Levy
66
package_description: Package of SearXNG for easy local usage
77
package_github_org: jlevy
8-
package_module: searxng_local
9-
package_name: searxng-local
8+
package_module: simplexng
9+
package_name: simplexng

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ jobs:
5353
# with:
5454
# python-version: ${{ matrix.python-version }}
5555

56+
- name: Prepare searxng build dependencies
57+
run: uv sync --extras build
58+
5659
- name: Install all dependencies
5760
run: uv sync --all-extras --dev
5861

‎.github/workflows/publish.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727

2828
- name: Set up Python (using uv)
2929
run: uv python install
30+
31+
- name: Prepare searxng build dependencies
32+
run: uv sync --extras build
3033

3134
- name: Install all dependencies
3235
run: uv sync --all-extras --dev

‎README.md‎

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1-
# searxng-local
1+
# SimpleXNG
22

33
SimpleXNG is a simplified package of [SearXNG](https://github.com/searxng/searxng) to
44
make it a single command to run for local use.
55

6-
The [official install options](https://docs.searxng.org/admin/installation.html) all
7-
seemed quite complex if all you want to do is run it locally.
6+
The [official install options](https://docs.searxng.org/admin/installation.html) for
7+
SearXNG seem quite complex, which may be necessary if you are setting up a server others
8+
use, but not not necessary if all you want to do is run it locally.
89

910
This is a tiny package to streamline running it locally, without Docker, on macOS,
10-
Linux, or Windows. It omits the dependencies like Apache, Nginx, and Docker and uses
11-
[uv](https://github.com/astral-sh/uv) to manage the Python dependencies.
12-
It disables features like rate limiting and Redis and runs with all default options.
11+
Linux, or Windows.
12+
13+
It [uv](https://github.com/astral-sh/uv) to manage the Python dependencies, omits
14+
Apache, Nginx, and Docker setup, and uses the minimal template that does not enable
15+
features like rate limiting or Redis.
1316
(You can adjust these later if desired.)
1417

1518
## Running
@@ -25,7 +28,7 @@ uv tool install simplexng
2528
To run:
2629

2730
```shell
28-
simplexng
31+
simplexng --open
2932
```
3033

3134
More options:
@@ -34,6 +37,9 @@ More options:
3437
simplexng --help
3538
```
3639

40+
As shown in the logs, it sets up a minimal config file (on macOS and Linux it will be
41+
`~/.config/simplexng/settings.yml`), which you can edit if desired.
42+
3743
* * *
3844

3945
## Project Docs

‎development.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ This project is set up to use [uv](https://docs.astral.sh/uv/) to manage Python
66
dependencies. First, be sure you
77
[have uv installed](https://docs.astral.sh/uv/getting-started/installation/).
88

9-
Then [fork the jlevy/searxng-local
10-
repo](https://github.com/jlevy/searxng-local/fork) (having your own
9+
Then [fork the jlevy/simplexng
10+
repo](https://github.com/jlevy/simplexng/fork) (having your own
1111
fork will make it easier to contribute) and
1212
[clone it](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository).
1313

‎pyproject.toml‎

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# ---- Project Info and Dependencies ----
22

33
[project.urls]
4-
Repository = "https://github.com/jlevy/searxng-local"
4+
Repository = "https://github.com/jlevy/simplexng"
55
# Homepage = "https://..."
66
# Documentation = "https://..."
77

88
[project]
9-
name = "searxng-local"
9+
name = "simplexng"
1010
description = "Package of SearXNG for easy local usage"
1111
authors = [
1212
{ name="Joshua Levy", email="joshua@cal.berkeley.edu" },
@@ -61,11 +61,6 @@ dependencies = [
6161
"tomli==2.2.1 ; python_full_version < '3.11'",
6262
"typer-slim==0.15.4",
6363
"uvloop==0.21.0",
64-
# XXX Needed to pull some build deps into runtime due to searxng's initialization:
65-
"editables>=0.5",
66-
"hatchling>=1.27.0",
67-
"setuptools>=80.9.0",
68-
"uv-dynamic-versioning>=0.8.2",
6964
# Adding waitress as the local production server:
7065
"waitress>=3.0.2",
7166
# A few CLI niceties:
@@ -74,6 +69,18 @@ dependencies = [
7469
"rich>=14.0.0",
7570
]
7671

72+
[project.optional-dependencies]
73+
# XXX Certain build dependencies are needed to initialize searxng:
74+
build = [
75+
"editables>=0.5",
76+
"hatchling>=1.27.0",
77+
"setuptools>=80.9.0",
78+
"uv-dynamic-versioning>=0.8.2"
79+
]
80+
81+
[tool.uv]
82+
# SearXNG does not work with build isolation.
83+
no-build-isolation-package = ["searxng"]
7784

7885
# ---- Dev dependencies ----
7986

@@ -90,13 +97,15 @@ dev = [
9097

9198
[project.scripts]
9299
# Add script entry points here:
93-
simplexng = "searxng_local.simplexng:main"
100+
simplexng = "simplexng.simplexng:main"
94101

95102
# ---- Sources ----
96103

97104
[tool.uv.sources]
98105
searxng = { git = "https://github.com/searxng/searxng.git" }
99106

107+
108+
100109
# ---- Build system ----
101110

102111
# Dynamic versioning from:
@@ -119,7 +128,7 @@ bump = "true"
119128

120129
[tool.hatch.build.targets.wheel]
121130
# The source location for the package.
122-
packages = ["src/searxng_local"]
131+
packages = ["src/simplexng"]
123132

124133

125134
# ---- Settings ----
File renamed without changes.
File renamed without changes.
File renamed without changes.

‎src/searxng_local/settings/settings_template.yml‎ renamed to ‎src/simplexng/settings/settings_template.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# SearXNG Local Settings Template
1+
# SimpleXNG Settings Template
22
# Based on utils/templates/etc/searxng/settings.yml
33

44
use_default_settings: true
55

66
general:
77
debug: false
8-
instance_name: "SearXNG Local"
8+
instance_name: "SimpleXNG"
99

1010
search:
1111
safe_search: 0

0 commit comments

Comments
 (0)