Skip to content

Commit 2f4e012

Browse files
try uv
1 parent c78ea4c commit 2f4e012

File tree

4 files changed

+1473
-15
lines changed

4 files changed

+1473
-15
lines changed

.github/workflows/run_tests.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v5
15-
- name: Set up Python ${{ matrix.python-version }}
16-
uses: actions/setup-python@v5
15+
- name: Install the latest version of uv and set the python version
16+
uses: astral-sh/setup-uv@v6
1717
with:
1818
python-version: ${{ matrix.python-version }}
19-
- name: Install dependencies
20-
run: |
21-
python -m pip install --upgrade pip
22-
pip install tox tox-gh-actions
23-
- name: Test with tox
24-
run: tox
19+
activate-environment: true
20+
- name: Test with python ${{ matrix.python-version }}
21+
run: uv run --frozen pytest

pyproject.toml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
[project]
2+
name = "pyartnet"
3+
version = "1.0.1"
4+
5+
description = "Python wrappers for the Art-Net protocol to send DMX over Ethernet"
6+
keywords = ["DMX", "Art-Net", "ArtNet", "sACN", "E1.31", "KiNet"]
7+
readme = "readme.md"
8+
dependencies = []
9+
requires-python = ">= 3.8"
10+
11+
authors = [
12+
{name = "spaceman_spiff"},
13+
]
14+
license = "GPL-3.0-or-later"
15+
16+
17+
classifiers = [
18+
"Development Status :: 5 - Production/Stable",
19+
"Programming Language :: Python :: 3.8",
20+
"Programming Language :: Python :: 3.9",
21+
"Programming Language :: Python :: 3.10",
22+
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
24+
"Programming Language :: Python :: 3.13",
25+
"Programming Language :: Python :: 3 :: Only",
26+
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
27+
"Operating System :: OS Independent",
28+
]
29+
30+
31+
[project.urls]
32+
Documentation = 'https://pyartnet.readthedocs.io'
33+
Repository = "https://github.com/spacemanspiff2007/PyArtNet'"
34+
Issues = "https://github.com/spacemanspiff2007/PyArtNet/issues"
35+
36+
[dependency-groups]
37+
docs = [
38+
"sphinx",
39+
"sphinx-autodoc-typehints",
40+
"sphinx_rtd_theme",
41+
"sphinx-exec-code",
42+
"pytest"
43+
]
44+
tests = [
45+
"pytest",
46+
"pytest-asyncio",
47+
]
48+
49+
dev = [
50+
{include-group = "tests"},
51+
"pre-commit"
52+
]
53+
54+
55+
[build-system]
56+
requires = ["uv_build>=0.8.22,<0.9.0"]
57+
build-backend = "uv_build"

tox.ini

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,16 @@ python =
2020
3.13: py313
2121

2222
[testenv]
23-
deps =
24-
-r{toxinidir}/requirements.txt
25-
23+
runner = uv-venv-lock-runner
24+
extras = tests
2625
commands =
2726
python -m pytest
2827

2928

3029
[testenv:docs]
30+
runner = uv-venv-lock-runner
3131
description = invoke sphinx-build to build the HTML docs
32-
33-
deps =
34-
{[testenv]deps}
35-
-r{toxinidir}/docs/requirements.txt
32+
extras = docs
3633

3734
commands =
3835
mkdir -p docs{/}_static

0 commit comments

Comments
 (0)