Skip to content

Commit 2fdd7b0

Browse files
committed
Convert project setup to pyproject.toml with uv
1 parent dc00ac9 commit 2fdd7b0

17 files changed

Lines changed: 36 additions & 32 deletions

.github/workflows/test.yml

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

1818
- name: Install dependencies
1919
run: |
20-
python -m pip install --upgrade pip
21-
pip install -r requirements.txt -r requirements-dev.txt
20+
python -m pip install uv
21+
uv sync
2222
23-
- run: pip install pytest-github-actions-annotate-failures
23+
- run: uv pip install pytest-github-actions-annotate-failures
2424

25-
- run: py.test --cov=rain_api_core --cov-report=term-missing --cov-report=xml --cov-branch --doctest-modules rain_api_core tests
25+
- 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
2626

2727
- name: Report coverage
2828
uses: codecov/codecov-action@v6

.gitignore

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

57
# IDE
68
.idea

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.18",
25+
"hypothesis==6.112.0",
26+
"moto==5.0.14",
27+
"pytest==8.3.3",
28+
"pytest-cov==5.0.0",
29+
"pytest-mock==3.14.0",
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)