Skip to content

Commit 9408223

Browse files
Move to pyproject.toml, rm setup & reqs
2 parents 8e78880 + 2c5ae8e commit 9408223

6 files changed

Lines changed: 57 additions & 46 deletions

File tree

.github/workflows/gigaam.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
uses: actions/cache@v4
4646
with:
4747
path: ~/.cache/pip
48-
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('requirements.txt', 'setup.py') }}
48+
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
4949
restore-keys: |
5050
${{ runner.os }}-pip-${{ matrix.python-version }}-
5151
${{ runner.os }}-pip-
@@ -57,7 +57,7 @@ jobs:
5757
run: |
5858
python -m pip install --upgrade pip setuptools wheel
5959
pip install --no-cache-dir torch==2.8.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cpu
60-
pip install --no-cache-dir -e .[longform,tests]
60+
pip install --no-cache-dir -e ".[longform,tests]"
6161
6262
- name: Show disk usage after install
6363
run: df -h
@@ -119,7 +119,7 @@ jobs:
119119
uses: actions/cache@v4
120120
with:
121121
path: ~/.cache/pip
122-
key: ${{ runner.os }}-pip-lint-${{ hashFiles('requirements.txt') }}
122+
key: ${{ runner.os }}-pip-lint-${{ hashFiles('pyproject.toml') }}
123123
restore-keys: |
124124
${{ runner.os }}-pip-lint-
125125

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ cd GigaAM
4040
pip install -e .
4141

4242
# (optionally) Verify the installation:
43-
pip install -e .[tests]
43+
pip install -e ".[tests]"
4444
pytest -v tests/test_loading.py -m partial # or `-m full` to test all models
4545
```
4646

@@ -79,9 +79,9 @@ For detailed results, see [here](./evaluation.md).
7979
* Accept the conditions to access [pyannote/segmentation-3.0](https://huggingface.co/pyannote/segmentation-3.0) files and content
8080

8181
```bash
82-
pip install -e .[longform]
82+
pip install -e ".[longform]"
8383
# optionally run longform testing
84-
pip install -e .[tests]
84+
pip install -e ".[tests]"
8585
HF_TOKEN=<your hf token> pytest -v tests/test_longform.py
8686
```
8787
</details>

README_ru.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ cd GigaAM
3939
pip install -e .
4040

4141
# (опционально) Проверить установку:
42-
pip install -e .[tests]
42+
pip install -e ".[tests]"
4343
pytest -v tests/test_loading.py -m partial # или `-m full` для тестирования всех моделей
4444
```
4545

@@ -78,9 +78,9 @@ GigaAM - фундаментальная акустическая модель н
7878
* Примите условия для получения доступа к контенту [pyannote/segmentation-3.0](https://huggingface.co/pyannote/segmentation-3.0)
7979

8080
```bash
81-
pip install -e .[longform]
81+
pip install -e ".[longform]"
8282
# опционально: запустить тесты для длинной транскрибации
83-
pip install -e .[tests]
83+
pip install -e ".[tests]"
8484
HF_TOKEN=<ваш hf токен> pytest -v tests/test_longform.py
8585
```
8686
</details>

pyproject.toml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[build-system]
2+
requires = ["setuptools>=68.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "gigaam"
7+
version = "0.1.0"
8+
description = "GigaAM: A package for audio modeling and ASR."
9+
readme = "README.md"
10+
license = "MIT"
11+
requires-python = ">=3.10"
12+
authors = [
13+
{ name = "GigaChat Team" },
14+
]
15+
16+
dependencies = [
17+
"hydra-core==1.3.*",
18+
"numpy==2.*",
19+
"omegaconf==2.3.*",
20+
"onnx==1.19.*",
21+
"onnxruntime==1.23.*",
22+
"sentencepiece",
23+
"torch>=2.5,<2.9",
24+
"torchaudio>=2.5,<2.9",
25+
"tqdm",
26+
]
27+
28+
[project.optional-dependencies]
29+
longform = [
30+
"torch==2.8.*",
31+
"torchaudio==2.8.*",
32+
"pyannote.audio==4.0",
33+
"torchcodec==0.7",
34+
"numba>=0.62",
35+
]
36+
tests = [
37+
"pytest",
38+
"pytest-cov",
39+
"scipy",
40+
"soundfile",
41+
"librosa",
42+
]
43+
44+
[project.urls]
45+
Homepage = "https://github.com/salute-developers/GigaAM/"
46+
47+
[tool.setuptools.packages.find]
48+
include = ["gigaam"]

requirements.txt

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

setup.py

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

0 commit comments

Comments
 (0)