Skip to content

UniFace: A Unified Face Analysis Library for Python | Detection, alignment, landmarks, face-mesh, recognition, parsing, gaze, attributes and anti-spoofing under one API.

feat: Update release to v2.2.0 (#64)

Yakhyokhuja Valikhujaevcd8077e4607d
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ec0162d..a63af02 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -4,11 +4,9 @@ on:
push:
branches:
- main
- - develop
pull_request:
branches:
- main
- - develop
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@@ -22,7 +20,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
- python-version: '3.11'
+ python-version: "3.10"
- uses: pre-commit/[email protected]
test:
@@ -33,8 +31,16 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: [ubuntu-latest, macos-latest, windows-latest]
- python-version: ["3.11", "3.13"]
+ include:
+ # Full Python range on Linux (fastest runner)
+ - os: ubuntu-latest
+ python-version: "3.10"
+ - os: ubuntu-latest
+ python-version: "3.13"
+ - os: macos-latest
+ python-version: "3.13"
+ - os: windows-latest
+ python-version: "3.13"
steps:
- name: Checkout code
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 6206881..5578a61 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -24,7 +24,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
- python-version: "3.11"
+ python-version: "3.10"
- name: Get version from tag and pyproject.toml
id: get_version
@@ -54,7 +54,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- python-version: ["3.11", "3.13"]
+ python-version: ["3.10", "3.13"]
steps:
- name: Checkout code
diff --git a/README.md b/README.md
index d7de262..f276287 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
<div align="center">
[![PyPI](https://img.shields.io/pypi/v/uniface.svg?label=PyPI)](https://pypi.org/project/uniface/)
-[![Python](https://img.shields.io/badge/Python-3.11%2B-blue)](https://www.python.org/)
+[![Python](https://img.shields.io/badge/Python-3.10%2B-blue)](https://www.python.org/)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![CI](https://github.com/yakhyo/uniface/actions/workflows/ci.yml/badge.svg)](https://github.com/yakhyo/uniface/actions)
[![PyPI Downloads](https://static.pepy.tech/personalized-badge/uniface?period=total&units=INTERNATIONAL_SYSTEM&left_color=GRAY&right_color=BLUE&left_text=Downloads)](https://pepy.tech/projects/uniface)
diff --git a/docs/index.md b/docs/index.md
index 0227de0..8fe11d1 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -12,10 +12,10 @@ template: home.html
<p class="hero-subtitle">A lightweight, production-ready face analysis library built on ONNX Runtime</p>
-[![PyPI](https://img.shields.io/pypi/v/uniface.svg)](https://pypi.org/project/uniface/)
-[![Python](https://img.shields.io/badge/Python-3.11%2B-blue)](https://www.python.org/)
+[![PyPI](https://img.shields.io/pypi/v/uniface.svg?label=PyPI)](https://pypi.org/project/uniface/)
+[![Python](https://img.shields.io/badge/Python-3.10%2B-blue)](https://www.python.org/)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
-[![Downloads](https://static.pepy.tech/badge/uniface)](https://pepy.tech/project/uniface)
+[![PyPI Downloads](https://static.pepy.tech/personalized-badge/uniface?period=total&units=INTERNATIONAL_SYSTEM&left_color=GRAY&right_color=BLUE&left_text=Downloads)](https://pepy.tech/projects/uniface)
[Get Started](quickstart.md){ .md-button .md-button--primary }
[View on GitHub](https://github.com/yakhyo/uniface){ .md-button }
diff --git a/pyproject.toml b/pyproject.toml
index c797963..f041573 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "uniface"
-version = "2.1.0"
+version = "2.2.0"
description = "UniFace: A Comprehensive Library for Face Detection, Recognition, Landmark Analysis, Face Parsing, Gaze Estimation, Age, and Gender Detection"
readme = "README.md"
license = "MIT"
@@ -9,7 +9,7 @@ maintainers = [
{ name = "Yakhyokhuja Valikhujaev", email = "[email protected]" },
]
-requires-python = ">=3.11,<3.14"
+requires-python = ">=3.10,<3.14"
keywords = [
"face-detection",
"face-recognition",
@@ -33,6 +33,7 @@ classifiers = [
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
+ "Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
@@ -71,7 +72,7 @@ uniface = ["py.typed"]
[tool.ruff]
line-length = 120
-target-version = "py311"
+target-version = "py310"
exclude = [
".git",
".ruff_cache",
@@ -127,15 +128,6 @@ section-order = [
[tool.ruff.lint.pydocstyle]
convention = "google"
-[tool.mypy]
-python_version = "3.11"
-warn_return_any = false
-warn_unused_ignores = true
-ignore_missing_imports = true
-exclude = ["tests/", "scripts/", "examples/"]
-# Disable strict return type checking for numpy operations
-disable_error_code = ["no-any-return"]
-
[tool.bandit]
exclude_dirs = ["tests", "scripts", "examples"]
skips = ["B101", "B614"] # B101: assert, B614: torch.jit.load (models are SHA256 verified)
diff --git a/uniface/__init__.py b/uniface/__init__.py
index 702d6cb..50c6822 100644
--- a/uniface/__init__.py
+++ b/uniface/__init__.py
@@ -28,7 +28,7 @@ from __future__ import annotations
__license__ = 'MIT'
__author__ = 'Yakhyokhuja Valikhujaev'
-__version__ = '2.1.0'
+__version__ = '2.2.0'
from uniface.face_utils import compute_similarity, face_alignment
from uniface.log import Logger, enable_logging