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
20 changes: 9 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,24 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, "3.10", 3.11]
poetry-version: [1.0]
python-version: [3.8, 3.9, "3.10", 3.11, 3.12, 3.13]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: niden/actions-memcached@v7
- uses: KeisukeYamashita/memcached-actions@v1
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install dependencies
run: poetry install
run: uv sync --dev
- name: Mypy
run: poetry run mypy
run: uv run mypy . --exclude .venv
- name: Lint with flake8
run: |
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
poetry run flake8 . --count --exit-zero --max-complexity=10 --statistics
uv run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=.venv
uv run flake8 . --count --exit-zero --max-complexity=10 --statistics --exclude=.venv
- name: Test with pytest
run: poetry run pytest -v
run: uv run pytest -v
35 changes: 20 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
[tool.poetry]
[project]
name = "memcache"
version = "0.13.0"
description = "Memcached client for Python"
authors = [{ name = "AN Long", email = "aisk1988@gmail.com" }]
requires-python = ">=3.7"
readme = "README.md"
authors = ["AN Long <aisk1988@gmail.com>"]
dependencies = ["hashring>=1.5.1,<2"]

[tool.poetry.dependencies]
python = "^3.7"
hashring = "^1.5.1"

[tool.poetry.dev-dependencies]
flake8 = "^3.8.4"
black = "^20.8b1"
mypy = "^0.930"
pytest = "^6.2.1"
pytest-asyncio = "^0.15.1"
types-dataclasses = { version = "^0.6", python = "~3.6" }
[dependency-groups]
dev = [
"flake8>=7.0.0 ; python_version >= '3.9'",
"flake8>=5.0.0,<6.0.0 ; python_version < '3.9'",
"black>=24.0.0 ; python_version >= '3.8'",
"black>=23.0.0,<24.0.0 ; python_version < '3.8'",
"mypy>=1.10.0 ; python_version >= '3.8'",
"mypy>=0.991,<1.10.0 ; python_version < '3.8'",
"pytest>=8.0.0 ; python_version >= '3.8'",
"pytest>=7.0.0,<8.0.0 ; python_version < '3.8'",
"pytest-asyncio>=0.23.0 ; python_version >= '3.8'",
"pytest-asyncio>=0.15.0,<0.23.0 ; python_version < '3.8'",
"types-dataclasses>=0.6.0 ; python_version >= '3.6' and python_version < '3.7'",
]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = ["hatchling"]
build-backend = "hatchling.build"
Loading