Skip to content

Commit 1943de9

Browse files
authored
Packaging: drop setup.py, complete pyproject metadata, tidy CI (#79)
1 parent f3b55cc commit 1943de9

5 files changed

Lines changed: 36 additions & 36 deletions

File tree

‎.github/workflows/pytest.yml‎

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

‎.github/workflows/test.yml‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Test
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
runs-on: self-hosted
8+
steps:
9+
- name: Check out repository
10+
uses: actions/checkout@v6
11+
- name: Install uv
12+
uses: astral-sh/setup-uv@v10.0.1
13+
- name: Setup environment
14+
run: make .venv
15+
- name: Run ty check
16+
run: make ty
17+
- name: Run vulture
18+
run: make vulture
19+
- name: Run tests
20+
run: |
21+
make coverage.xml
22+
uv run coverage report --format=markdown >> $GITHUB_STEP_SUMMARY

‎makefile‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@
22

33
all: test
44

5-
test:
5+
test: .venv
66
uv run pytest -s -v -x
77

8-
ty:
8+
.venv:
9+
uv sync
10+
11+
ty: .venv
912
uv run ty check
1013

11-
coverage.xml:
14+
coverage.xml: .venv
1215
uv run pytest --junitxml=junit.xml --cov=tensorpack --cov-report xml:coverage.xml
1316

1417
clean:
15-
rm -rf coverage.xml
18+
rm -rf coverage.xml junit.xml .coverage
1619

17-
vulture:
20+
vulture: .venv
1821
uv run vulture

‎pyproject.toml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ name = "tensorpack"
33
version = "0.1.2"
44
description = "A collection of tensor methods from the Meyer lab."
55
authors = [{ name = "Cyrillus Tan", email = "cyztan@gmail.com" }]
6+
readme = "README.md"
67
license = "MIT"
8+
license-files = ["LICENSE"]
79
requires-python = ">=3.11,<3.13"
810
dependencies = [
911
"numpy>=1.21",
@@ -15,6 +17,10 @@ dependencies = [
1517
"scikit-learn>=1.1.2",
1618
]
1719

20+
[project.urls]
21+
Homepage = "https://github.com/meyer-lab/tensorpack"
22+
Repository = "https://github.com/meyer-lab/tensorpack"
23+
1824
[dependency-groups]
1925
docs = [
2026
"sphinx>=7.0",

‎setup.py‎

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

0 commit comments

Comments
 (0)