Skip to content

Commit 0e7dc08

Browse files
authored
Updated project structure using uv and added GitHub actions for pytest (#46)
1 parent 4a6b20b commit 0e7dc08

File tree

13 files changed

+434
-56
lines changed

13 files changed

+434
-56
lines changed

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
16+
17+
steps:
18+
- name: Check out repository
19+
uses: actions/checkout@v6
20+
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v7
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
enable-cache: true
26+
27+
- name: Sync dependencies
28+
run: uv sync --locked --all-extras --dev
29+
30+
- name: Run tests
31+
run: uv run pytest

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

markusapi/__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

markusapi/tests/__init__.py

Whitespace-only changes.

pyproject.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[project]
2+
name = "markusapi"
3+
version = "0.3.0"
4+
authors = [
5+
{ name="Sam Maldonado" },
6+
{ name="Alessio Di Sandro" },
7+
{ name="Misha Schwartz" },
8+
]
9+
maintainers = [
10+
{ name="David Liu", email="[email protected]" },
11+
]
12+
description = "Python API client for MarkUs"
13+
readme = "README.md"
14+
requires-python = ">=3.9"
15+
classifiers = [
16+
"License :: OSI Approved :: MIT License",
17+
"Programming Language :: Python :: 3",
18+
"Operating System :: OS Independent",
19+
]
20+
license = "MIT"
21+
license-files = ["LICEN[CS]E*"]
22+
dependencies = [
23+
"requests~=2.32.5",
24+
]
25+
26+
[project.urls]
27+
Homepage = "https://github.com/MarkUsProject/markus-api"
28+
Issues = "https://github.com/MarkUsProject/markus-api/issues"
29+
30+
[build-system]
31+
requires = ["uv_build >= 0.9.17, <0.10.0"]
32+
build-backend = "uv_build"
33+
34+
[dependency-groups]
35+
dev = ["pytest"]
36+
37+
[tool.uv.workspace]
38+
members = [
39+
"markusapi",
40+
]

setup.cfg

Lines changed: 0 additions & 5 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/markusapi/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name = "markusapi"
2+
3+
from .markusapi import Markus

0 commit comments

Comments
 (0)