Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish to PyPI

on:
release:
types: [published]
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write # OIDC — Trusted Publishing, no API token needed
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Build sdist and wheel
run: |
python -m pip install --upgrade build
python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
22 changes: 21 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,33 @@
[build-system]
requires = ["setuptools>=68.0"]
requires = ["setuptools>=77.0"]
build-backend = "setuptools.build_meta"

[project]
name = "ownsearch"
version = "0.1.0"
description = "Smart full-text and semantic search for your local documents"
readme = "README.md"
requires-python = ">=3.10"
license = "GPL-3.0-only"
license-files = ["LICENSE"]
authors = [
{ name = "Millaguie" },
]
keywords = ["search", "full-text-search", "semantic-search", "embeddings", "sqlite", "fts5", "ollama", "cli"]
classifiers = [
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Utilities",
"Topic :: Text Processing :: Indexing",
]

[project.urls]
Homepage = "https://github.com/millaguie/ownsearch"
Repository = "https://github.com/millaguie/ownsearch"
Issues = "https://github.com/millaguie/ownsearch/issues"

[project.scripts]
ownsearch = "ownsearch:main"
Expand Down
Loading