Skip to content

Commit cea512e

Browse files
committed
Convert project setup to pyproject.toml with uv
1 parent d681dcd commit cea512e

18 files changed

Lines changed: 39 additions & 32 deletions

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020

2121
- name: Install dependencies
2222
run: |
23-
python -m pip install --upgrade pip
24-
pip install -r requirements.txt -r requirements-dev.txt
23+
python -m pip install uv
24+
uv sync
2525
26-
- run: pip install pytest-github-actions-annotate-failures
26+
- run: uv pip install pytest-github-actions-annotate-failures
2727

28-
- run: py.test --cov=rain_api_core --cov-report=term-missing --cov-report=xml --cov-branch --doctest-modules rain_api_core tests
28+
- run: uv run pytest --cov=src/rain_api_core --cov-report=term-missing --cov-report=xml --cov-branch --doctest-modules src/rain_api_core tests
2929

3030
- name: Report coverage
3131
uses: codecov/codecov-action@v6

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Python
22
*.pyc
33
.venv
4+
uv.lock
45

56
# IDE
67
.idea
@@ -11,3 +12,6 @@
1112
# Tests
1213
.hypothesis
1314
.coverage
15+
16+
# Other
17+
build

pyproject.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[build-system]
2+
requires = ["uv_build>=0.10.2,<0.11.0"]
3+
build-backend = "uv_build"
4+
5+
[project]
6+
name = "rain-api-core"
7+
version = "0.1.0"
8+
description = "RAIN API Core"
9+
readme = "README.md"
10+
authors = [
11+
{ name = "Rohan Weeden", email = "reweeden@alaska.edu" }
12+
]
13+
requires-python = "~=3.10"
14+
dependencies = [
15+
"cachetools~=5.0",
16+
"jinja2~=3.0",
17+
"netaddr~=1.0",
18+
"pyjwt[crypto]~=2.0",
19+
"pyyaml~=6.0",
20+
]
21+
22+
[dependency-groups]
23+
dev = [
24+
"boto3~=1.35",
25+
"hypothesis~=6.112",
26+
"moto~=5.0",
27+
"pytest~=8.3",
28+
"pytest-cov~=5.0",
29+
"pytest-mock~=3.14",
30+
]

requirements-dev.txt

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

requirements.txt

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

setup.py

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

0 commit comments

Comments
 (0)