Skip to content

Commit

Permalink
Use uv, drop Python 3.8, CI updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dcwatson committed Oct 7, 2024
1 parent 8e9844a commit 00a2456
Show file tree
Hide file tree
Showing 8 changed files with 251 additions and 56 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,24 @@ on:
branches:
- main

env:
UV_SYSTEM_PYTHON: 1
UV_PYTHON_DOWNLOADS: never
UV_PYTHON_PREFERENCE: only-system

jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
- uses: astral-sh/ruff-action@v1

test:
needs: checks
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.8", "pypy3.10"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.10"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -34,8 +39,8 @@ jobs:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Setup uv
uses: yezz123/setup-uv@v4
uses: astral-sh/setup-uv@v3
- name: Install
run: uv pip install --system -r requirements-dev.lock
run: uv sync --all-extras
- name: Run Tests
run: pytest
run: uv run pytest
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.12.3
3.12
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Return [bytearray](https://docs.python.org/3/library/stdtypes.html#bytearray) from compression and decompression methods to avoid copying (resizing bytes is private API)
* Added typing stubs (and a shell python package to hold them and the renamed `_deflate` compiled extension) (#49)
* Added support and compiled wheels for PyPy.
* Updated bundled libdeflate to v1.22
* Drop support for Python 3.8


## 0.7.0 (2024-05-09)
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "deflate"
dynamic = ["version"]
description = "Python wrapper for libdeflate."
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.9"
dependencies = []
authors = [
{ name = "Dan Watson", email = "[email protected]" },
Expand Down Expand Up @@ -36,8 +36,7 @@ Homepage = "https://github.com/dcwatson/deflate"
[project.optional-dependencies]
test = ["pytest>=7"]

[tool.rye]
managed = true
[tool.uv]
dev-dependencies = [
"pytest>=7",
"pre-commit~=3.5.0",
Expand Down
36 changes: 0 additions & 36 deletions requirements-dev.lock

This file was deleted.

10 changes: 0 additions & 10 deletions requirements.lock

This file was deleted.

235 changes: 235 additions & 0 deletions uv.lock

Large diffs are not rendered by default.

0 comments on commit 00a2456

Please sign in to comment.