Skip to content

Commit

Permalink
chore: remove use of editable mode
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPandir committed May 16, 2024
1 parent b8dcdb2 commit 7f4c7b6
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 59 deletions.
7 changes: 4 additions & 3 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,15 @@ docker-compose -f docker/compose.yml up
```
<details>
<summary>(not recommended) alternative install via pip</summary>
Create a virtual environment and activate
Create a virtual environment and activate:

```bash
python3 -m venv .venv && source .venv/bin/activate
```
Remove line 10 `-e file:.` from the `requirements.lock` file and then run the command
Install only the required dependencies:

```bash
pip3 install -r requirements.lock
pip3 install --no-deps -r requirements.lock
```
</details>
3. Download silero tts models
Expand Down
11 changes: 3 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,17 @@ authors = [
dependencies = [
"uvicorn>=0.27.1",
"litestar>=2.6.1",
"numpy>=1.26.4",
"python-dotenv>=1.0.1",
"numpy>=1.26.3",
"torch==2.2.0+cpu; sys_platform == 'aarch64' or sys_platform == 'x86_64'",
"torch==2.2.0; sys_platform != 'aarch64' and sys_platform != 'x86_64'",
]
requires-python = ">=3.9"

[tool.setuptools]
packages = []

[tool.rye]
managed = true
lock-with-sources = true
virtual = true
dev-dependencies = []
excluded-dependencies = [
"polyfactory",
Expand All @@ -34,11 +33,7 @@ excluded-dependencies = [
"networkx",
"sympy",
]
lock-with-sources = true

[[tool.rye.sources]]
name = "pytorch"
url = "https://download.pytorch.org/whl/cpu"

[tool.hatch.metadata]
allow-direct-references = true
42 changes: 18 additions & 24 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,20 @@
--extra-index-url https://download.pytorch.org/whl/cpu
--index-url https://pypi.org/simple/

-e file:.
anyio==4.2.0
anyio==4.3.0
# via httpx
# via litestar
certifi==2024.2.2
certifi==2022.12.7
# via httpcore
# via httpx
click==8.1.7
# via litestar
# via rich-click
# via uvicorn
exceptiongroup==1.2.0
exceptiongroup==1.2.1
# via anyio
# via litestar
# faker==23.3.0 (excluded)
# faker==25.2.0 (excluded)
# via polyfactory
# filelock==3.13.1 (excluded)
# via torch
Expand All @@ -33,19 +32,18 @@ exceptiongroup==1.2.0
h11==0.14.0
# via httpcore
# via uvicorn
httpcore==1.0.3
httpcore==1.0.5
# via httpx
httpx==0.26.0
httpx==0.27.0
# via litestar
idna==3.6
idna==3.4
# via anyio
# via httpx
importlib-metadata==7.0.1
importlib-metadata==7.1.0
# via litestar
# jinja2==3.1.3 (excluded)
# via torch
litestar==2.6.1
# via silero-tts-api-server
litestar==2.8.3
markdown-it-py==3.0.0
# via rich
# markupsafe==2.1.5 (excluded)
Expand All @@ -60,40 +58,36 @@ multidict==6.0.5
# via litestar
# networkx==3.2.1 (excluded)
# via torch
numpy==1.26.4
# via silero-tts-api-server
# polyfactory==2.14.1 (excluded)
numpy==1.26.3
# polyfactory==2.16.0 (excluded)
# via litestar
pygments==2.17.2
pygments==2.18.0
# via rich
python-dateutil==2.8.2
python-dateutil==2.9.0.post0
# via faker
python-dotenv==1.0.1
# via silero-tts-api-server
pyyaml==6.0.1
# via litestar
rich==13.7.0
rich==13.7.1
# via litestar
# via rich-click
rich-click==1.7.3
rich-click==1.8.2
# via litestar
# six==1.16.0 (excluded)
# via python-dateutil
sniffio==1.3.0
sniffio==1.3.1
# via anyio
# via httpx
# sympy==1.12 (excluded)
# via torch
torch==2.2.0
# via silero-tts-api-server
typing-extensions==4.9.0
# via anyio
# via litestar
# via polyfactory
# via rich-click
# via torch
# via uvicorn
uvicorn==0.27.1
# via silero-tts-api-server
zipp==3.17.0
uvicorn==0.29.0
zipp==3.18.2
# via importlib-metadata
42 changes: 18 additions & 24 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,20 @@
--extra-index-url https://download.pytorch.org/whl/cpu
--index-url https://pypi.org/simple/

-e file:.
anyio==4.2.0
anyio==4.3.0
# via httpx
# via litestar
certifi==2024.2.2
certifi==2022.12.7
# via httpcore
# via httpx
click==8.1.7
# via litestar
# via rich-click
# via uvicorn
exceptiongroup==1.2.0
exceptiongroup==1.2.1
# via anyio
# via litestar
# faker==23.3.0 (excluded)
# faker==25.2.0 (excluded)
# via polyfactory
# filelock==3.13.1 (excluded)
# via torch
Expand All @@ -33,19 +32,18 @@ exceptiongroup==1.2.0
h11==0.14.0
# via httpcore
# via uvicorn
httpcore==1.0.3
httpcore==1.0.5
# via httpx
httpx==0.26.0
httpx==0.27.0
# via litestar
idna==3.6
idna==3.4
# via anyio
# via httpx
importlib-metadata==7.0.1
importlib-metadata==7.1.0
# via litestar
# jinja2==3.1.3 (excluded)
# via torch
litestar==2.6.1
# via silero-tts-api-server
litestar==2.8.3
markdown-it-py==3.0.0
# via rich
# markupsafe==2.1.5 (excluded)
Expand All @@ -60,40 +58,36 @@ multidict==6.0.5
# via litestar
# networkx==3.2.1 (excluded)
# via torch
numpy==1.26.4
# via silero-tts-api-server
# polyfactory==2.14.1 (excluded)
numpy==1.26.3
# polyfactory==2.16.0 (excluded)
# via litestar
pygments==2.17.2
pygments==2.18.0
# via rich
python-dateutil==2.8.2
python-dateutil==2.9.0.post0
# via faker
python-dotenv==1.0.1
# via silero-tts-api-server
pyyaml==6.0.1
# via litestar
rich==13.7.0
rich==13.7.1
# via litestar
# via rich-click
rich-click==1.7.3
rich-click==1.8.2
# via litestar
# six==1.16.0 (excluded)
# via python-dateutil
sniffio==1.3.0
sniffio==1.3.1
# via anyio
# via httpx
# sympy==1.12 (excluded)
# via torch
torch==2.2.0
# via silero-tts-api-server
typing-extensions==4.9.0
# via anyio
# via litestar
# via polyfactory
# via rich-click
# via torch
# via uvicorn
uvicorn==0.27.1
# via silero-tts-api-server
zipp==3.17.0
uvicorn==0.29.0
zipp==3.18.2
# via importlib-metadata

0 comments on commit 7f4c7b6

Please sign in to comment.