Skip to content

Commit

Permalink
Require Python 3.10
Browse files Browse the repository at this point in the history
Add FUNDING.yml
  • Loading branch information
yaph committed Jun 27, 2024
1 parent 6ab7078 commit 824fe9f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

custom: https://www.paypal.me/rgmz
github: yaph
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: test

on:
push:
branches: [main, master]
branches: [main]
pull_request:
branches: [main, master]
branches: [main]

concurrency:
group: test-${{ github.head_ref }}
Expand All @@ -22,7 +22,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions charla/chat.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import datetime
from operator import itemgetter
from pathlib import Path
from typing import Any, Union
from typing import Any

from prompt_toolkit import PromptSession
from prompt_toolkit.auto_suggest import AutoSuggestFromHistory
Expand All @@ -25,7 +25,7 @@
Press → to complete an auto suggested prompt.
'''

def available_models() -> Union[None, list[str]]:
def available_models() -> None | list[str]:
"""Return available models sorted by size."""

if model_list := ollama.list()['models']:
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "charla"
dynamic = ["version"]
description = 'A chat application that uses local language models.'
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.10"
license = "MIT"
keywords = []
authors = [
Expand All @@ -16,8 +16,6 @@ authors = [
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"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",
Expand Down

0 comments on commit 824fe9f

Please sign in to comment.