Skip to content

Commit

Permalink
modernize ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed Oct 20, 2024
1 parent df9ac48 commit 9196ac3
Show file tree
Hide file tree
Showing 6 changed files with 1,626 additions and 128 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
with:
python-version: 3.9
- run: pip install tox
- run: tox
- uses: mhils/workflows/checkout@v11
- uses: mhils/workflows/setup-python@v11
- uses: mhils/workflows/setup-uv@v11
- run: uv run tox
74 changes: 74 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
[project]
name = "r8"
description = "A ctf-style autograding system."
readme = "README.md"
requires-python = ">=3.9"
license = { text="MIT" }
authors = [{name = "Maximilian Hils", email = "r8@maximilianhils.com"}]
dynamic = ["version"]
classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Education",
"Operating System :: OS Independent",
"Topic :: Education",
"Topic :: Education :: Computer Aided Instruction (CAI)",
"Programming Language :: Python :: 3.9",
]

dependencies = [
"click",
"texttable",
"argon2_cffi",
"aiohttp",
"aiohttp_jinja2",
"itsdangerous",
"blinker",
"setuptools",
]
[project.optional-dependencies]
extra = [
"wcwidth",
"aiohttp[speedups]",
]
[tool.uv]
dev-dependencies = [
"sphinx",
"sphinxcontrib-trio",
"pytest",
"ruff",
"tox",
"tox-uv",
"mypy",
]

[project.scripts]
r8 = "r8.cli:main"

[project.entry-points."r8.challenges"]
dir = "r8.builtin_challenges"

[project.urls]
Homepage = "https://github.com/mhils/r8"

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[tool.setuptools.dynamic]
version = {attr = "r8.__version__"}

[tool.setuptools.packages.find]
include = ["r8*"]

[tool.tox]
legacy_tox_ini = """
[tox]
envlist = lint, py
toxworkdir = {env:TOX_WORK_DIR:.tox}
runner = uv-venv-lock-runner
[testenv]
commands =
pytest
"""
45 changes: 0 additions & 45 deletions requirements-dev.txt

This file was deleted.

66 changes: 0 additions & 66 deletions setup.py

This file was deleted.

11 changes: 0 additions & 11 deletions tox.ini

This file was deleted.

Loading

0 comments on commit 9196ac3

Please sign in to comment.