Skip to content

Commit

Permalink
Remove 3.6 support
Browse files Browse the repository at this point in the history
3.7 is PyO3's minimum supported version

Although 3.7 is not available on macOS arm64 on GitHub runner
  • Loading branch information
bact committed Nov 11, 2024
1 parent 9057611 commit 931fd5e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/test-nlpo3-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: ["3.13", "3.12", "3.11", "3.10", "3.9", "3.8", "3.7", "3.6"]
python-version: ["3.13", "3.12", "3.11", "3.10", "3.9", "3.8", "3.7"]
bitness: [64] # 32, 64
include:
- os: windows-latest
python-version: "3.9"
bitness: 32
exclude:
- os: macos-latest
python-version: "3.7"

runs-on: ${{ matrix.os }}

Expand Down
4 changes: 2 additions & 2 deletions nlpo3-python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SPDX-License-Identifier: Apache-2.0
# nlpO3 Python binding

[![PyPI](https://img.shields.io/pypi/v/nlpo3.svg "PyPI")](https://pypi.python.org/pypi/nlpo3)
[![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg "Python 3.6")](https://www.python.org/downloads/)
[![Python 3.7](https://img.shields.io/badge/python-3.7-blue.svg "Python 3.7")](https://www.python.org/downloads/)
[![Apache-2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg "Apache-2.0")](https://opensource.org/license/apache-2-0)

Python binding for nlpO3, a Thai natural language processing library in Rust.
Expand Down Expand Up @@ -86,7 +86,7 @@ segment("สวัสดีครับ", dict_name="dict_name", safe=True)
### Requirements

- [Rust 2018 Edition](https://www.rust-lang.org/tools/install)
- Python 3.6 or newer
- Python 3.7 or newer (PyO3's minimum supported version)
- Python Development Headers
- Ubuntu: `sudo apt-get install python3-dev`
- macOS: No action needed
Expand Down
5 changes: 2 additions & 3 deletions nlpo3-python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "nlpo3"
version = "1.3.1"
description = "Python binding for nlpO3 Thai language processing library in Rust"
readme = "README.md"
requires-python = ">=3.6"
requires-python = ">=3.7"
license = { text = "Apache-2.0" }
keywords = ["thai", "tokenizer", "nlp", "word-segmentation", "pythainlp"]
authors = [
Expand All @@ -18,7 +18,6 @@ authors = [
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
Expand All @@ -38,7 +37,7 @@ homepage = "https://github.com/PyThaiNLP/nlpo3/"
repository = "https://github.com/PyThaiNLP/nlpo3/"

[tool.poetry.dependencies]
python = "^3.6"
python = "^3.7"

[tool.poetry.dev-dependencies]
pytest = "*"
Expand Down
2 changes: 1 addition & 1 deletion nlpo3-python/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ classifiers =
#obsoletes = pythainlp-rust-modules

[options]
python_requires = >=3.6
python_requires = >=3.7
include_package_data = True
packages = nlpo3
zip_safe = False

0 comments on commit 931fd5e

Please sign in to comment.