Skip to content

Commit

Permalink
Merge pull request #36 from uhlive/main
Browse files Browse the repository at this point in the history
release 1.6.1
  • Loading branch information
rtxm authored Dec 17, 2024
2 parents 2736f87 + d732ee1 commit 8aac08e
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 41 deletions.
62 changes: 30 additions & 32 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,50 @@
version: 2
---
version: 2.1

workflows:
version: 2
build:
jobs:
- python-3.9
- python-3.10
- python-3.11
- tests:
matrix:
parameters:
version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- deploy:
context: pypi
requires:
- python-3.9
- tests
filters:
branches:
only: release

jobs:
python-3.9: &build-template
resource_class: small
working_directory: ~/app
tests:
parameters:
version:
description: "version tag"
default: "3.12"
type: string
docker:
- image: cimg/python:3.9
environment:
TOX_ENV: py39
- image: cimg/python:<<parameters.version>>

working_directory: ~/app

steps:
- checkout

- restore_cache:
keys:
- deps-{{ .Environment.CIRCLE_JOB }}-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
- deps-{{ .Environment.CIRCLE_JOB }}-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-{{ checksum "setup.py" }}-
- deps-{{ .Environment.CIRCLE_JOB }}-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-
- deps-{{ .Environment.CIRCLE_JOB }}-{{ .Environment.CACHE_VERSION }}-
- <<parameters.version>>-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
- <<parameters.version>>-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-{{ checksum "setup.py" }}-
- <<parameters.version>>-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-
- <<parameters.version>>-{{ .Environment.CACHE_VERSION }}-

- run:
name: install requirements
Expand All @@ -47,7 +59,7 @@ jobs:
paths:
- venv
- .tox
key: deps-{{ .Environment.CIRCLE_JOB }}-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
key: <<parameters.version>>-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}

- run:
name: run linters
Expand All @@ -59,26 +71,12 @@ jobs:
name: run tests
command: |
. venv/bin/activate
tox -e $TOX_ENV
python-3.10:
<<: *build-template
docker:
- image: cimg/python:3.10
environment:
TOX_ENV: py310

python-3.11:
<<: *build-template
docker:
- image: cimg/python:3.11
environment:
TOX_ENV: py311
tox -e py3
deploy:
resource_class: small
docker:
- image: cimg/python:3.9
- image: cimg/python:3.12

working_directory: ~/uhlive

Expand Down
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="uhlive",
version="1.6.0",
version="1.6.1",
url="https://github.com/uhlive/python-sdk",
author="Allo-Media",
author_email="support@allo-media.fr",
Expand All @@ -19,6 +19,10 @@
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Intended Audience :: Developers",
"Operating System :: POSIX :: Linux",
"Topic :: Software Development :: Libraries :: Python Modules",
Expand Down
2 changes: 1 addition & 1 deletion src/uhlive/stream/recognition/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class CompletionCause(Enum):
HotwordMaxtime = "HotwordMaxtime"
NoMatch = "NoMatch"
NoMatchMaxtime = "NoMatchMaxtime"
TooMuchSpeechTimeout = "TooMuchSpeechTimeout"
SuccessMaxtime = "SuccessMaxtime"
PartialMatchMaxtime = "PartialMatchMaxtime"
Success = "Success"
PartialMatch = "PartialMatch"
Expand Down
8 changes: 1 addition & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,11 @@

[tox]
envlist =
py37
py38
py39
py310
py311
py312
isort
black
linter
mypy
skip_missing_interpreters = true
py3

[testenv]
commands =
Expand Down

0 comments on commit 8aac08e

Please sign in to comment.