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
6 changes: 0 additions & 6 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ jobs:
["3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.10"]
experimental: [false]
include:
- python-version: pypy2.7
os: ubuntu-latest
experimental: true
- python-version: pypy2.7
os: windows-latest
experimental: true
- python-version: "3.13"
os: ubuntu-24.04-arm
experimental: false
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release

on:
push:
tags:
- test-v*
release:
types:
- "published"

jobs:
publish:
strategy:
matrix:
environment:
- pypi
- testpypi
exclude:
- environment: ${{ !startsWith(github.ref_name, 'v') && 'pypi' }}
- environment: ${{ contains(github.ref_name, 'test') && 'pypi' }}
- environment: ${{ github.event_name == 'release' && 'testpypi' }}
name: Publish to PyPI ${{ matrix.environment }} from ${{ github.ref_name }}
runs-on: ubuntu-latest
environment:
name: ${{ matrix.environment }}
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
- run: uv build
- name: Smoke test (wheel)
run: uv run --isolated --no-project -p 3.13 --with dist/*.whl --with pytest pytest tests/test_base.py
- name: Smoke test (source distribution)
run: uv run --isolated --no-project -p 3.13 --with dist/*.tar.gz --with pytest pytest tests/test_base.py
- run: uv publish --trusted-publishing always ${{ matrix.environment == 'testpypi' && '--index testpypi' || '' }}
10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[project]
name = "sqlitefts"
version = "1.0.0"
version = "1.0.dev0"
description = "A Python binding for tokenizers of SQLite Full Text Search"
authors = [{ name = "Hideaki Takahashi", email = "mymelo@gmail.com" }]
dependencies = [
"cffi>=1.17.0; python_version >= '3.9'",
"cffi>=1.15.1 ; platform_python_implementation != 'PyPy'",
]
readme = "README.rst"
requires-python = ">=2.7,>=3.9,<4"
requires-python = ">=2.7,!=3.0,!=3.1,!=3.2,!=3.3,!=3.4,!=3.5,!=3.6"
license = { text = "MIT" }
keywords = [
"SQLite",
Expand Down Expand Up @@ -67,3 +67,9 @@ include = [
"sqlitefts/py.typed",
"tests/**",
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true
9 changes: 2 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
[tox]
envlist = {py27,py39,py310,py311,py312,py313,pypy2,pypy3}-{macos,win,linux},py313-apsw-linux
envlist = {py39,py310,py311,py312,py313,pypy3}-{macos,win,linux},py313-apsw-linux
skip_missing_interpreters = true
requires =
tox>=4

[gh-actions]
python =
2.7: py27
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313
pypy-2: pypy2
pypy-3: pypy3

[gh-actions:env]
Expand All @@ -31,14 +29,11 @@ platform =
deps =
pytest
igo-python
py27,pypy2: pathlib
py27,pypy2: janome<0.4
py{39,310,311,312,313},pypy3: janome
tinysegmenter
faker
py{27,39,310,311,312,313}-linux,pypy3-linux: mecab
py{39,310,311,312,313}-linux,pypy3-linux: mecab
py{39,310,311,312,313}-linux,pypy3-linux: natto-py
py27-linux: natto-py<1.0
commands=
py.test -svrx

Expand Down
Loading
Loading