Skip to content

Commit f54d29e

Browse files
authored
Merge pull request #14 from ayalash/support-python-3.13-and-uv
Use UV & support python >= 3.8, <= 3.13
2 parents 96c7e2f + 2a8bb67 commit f54d29e

4 files changed

Lines changed: 26 additions & 24 deletions

File tree

.github/workflows/main.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,23 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: ["3.7", "3.8", "3.9", "3.10"]
15+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
16+
env:
17+
UV_PYTHON: ${{ matrix.python-version }}
1618

1719
steps:
18-
- uses: actions/checkout@v3
19-
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v4
21-
with:
22-
python-version: ${{ matrix.python-version }}
20+
- name: Checkout the repository
21+
uses: actions/checkout@main
22+
- name: Install the default version of uv
23+
id: setup-uv
24+
uses: astral-sh/setup-uv@v3
25+
- name: Print the installed version
26+
run: echo "Installed uv version is ${{ steps.setup-uv.outputs.uv-version }}"
27+
- name: Install Python ${{ matrix.python-version }}
28+
run: uv python install ${{ matrix.python-version }}
29+
2330
- name: Tests
2431
run: |
25-
python -m venv .env
26-
.env/bin/pip install -U setuptools pip
27-
.env/bin/pip install '.[testing]'
28-
.env/bin/pytest tests
32+
uv venv
33+
uv pip install ".[testing]"
34+
.venv/bin/pytest tests

Makefile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
default: test
22

33
test: env
4-
.env/bin/pytest
5-
6-
env: .env/.up-to-date
7-
8-
.env/.up-to-date: Makefile pyproject.toml
9-
python -m venv .env
10-
.env/bin/pip install -U setuptools pip
11-
.env/bin/pip install -e '.[testing]'
12-
touch .env/.up-to-date
4+
.venv/bin/pytest
135

6+
env:
7+
uv venv
8+
uv pip install -e ".[testing]"

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ build-backend = "setuptools.build_meta"
66
name = "emport"
77
description = "Utility library for performing programmatic imports"
88
readme = "README.md"
9-
requires-python = ">=3.7"
9+
requires-python = ">=3.8"
1010
license = { text = "BSD 3-Clause License" }
1111

1212
classifiers = [
13-
"Programming Language :: Python :: 3.6",
14-
"Programming Language :: Python :: 3.7",
1513
"Programming Language :: Python :: 3.8",
1614
"Programming Language :: Python :: 3.9",
1715
"Programming Language :: Python :: 3.10",
16+
"Programming Language :: Python :: 3.11",
17+
"Programming Language :: Python :: 3.12",
18+
"Programming Language :: Python :: 3.13",
1819
]
1920
dependencies = [
2021
'Logbook>=0.11.0',
@@ -27,5 +28,5 @@ authors = [
2728
[project.optional-dependencies]
2829
testing = [
2930
"pytest",
30-
"dessert",
31+
"dessert>=1.5.0",
3132
]

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py37,py38,py39,py310
2+
envlist = py38,py39,py310,py311,py312,py313
33

44
[testenv]
55
extras =

0 commit comments

Comments
 (0)