Spaces:
Runtime error
Runtime error
freemt
commited on
Commit
·
9438777
1
Parent(s):
f9e7680
Remove torch+cpu from pyprject.toml
Browse files- poetry.toml +1 -1
- pyproject-torch-cpu.toml +81 -0
- pyproject.toml +4 -4
poetry.toml
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
[virtualenvs]
|
2 |
create = true
|
3 |
-
in-project =
|
|
|
1 |
[virtualenvs]
|
2 |
create = true
|
3 |
+
in-project = false
|
pyproject-torch-cpu.toml
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[tool.poetry]
|
2 |
+
name = "radio_mlbee"
|
3 |
+
version = "0.1.0-alpha.1"
|
4 |
+
description = "mlbee via gradio"
|
5 |
+
authors = ["ffreemt"]
|
6 |
+
license = "MIT"
|
7 |
+
readme = "README.md"
|
8 |
+
repository = "https://github.com/ffreemt/radio-mlbee"
|
9 |
+
|
10 |
+
[tool.poetry.dependencies]
|
11 |
+
python = "^3.8.3"
|
12 |
+
logzero = "^1.7.0"
|
13 |
+
set-loglevel = "^0.1.2"
|
14 |
+
icecream = "^2.1.1"
|
15 |
+
install = "^1.3.5"
|
16 |
+
torch = [
|
17 |
+
{url = "https://download.pytorch.org/whl/cpu/torch-1.11.0%2Bcpu-cp38-cp38-linux_x86_64.whl", markers = "sys_platform == 'linux'"},
|
18 |
+
{url = "https://download.pytorch.org/whl/cpu/torch-1.11.0%2Bcpu-cp38-cp38-win_amd64.whl", markers = "sys_platform == 'win32'"}
|
19 |
+
]
|
20 |
+
sentence-transformers = "^2.2.0"
|
21 |
+
hf-model-s-cpu = "^0.1.1"
|
22 |
+
gradio = "^3.0.15"
|
23 |
+
aset2pairs = "^0.1.0"
|
24 |
+
cmat2aset = "^0.1.0-alpha.7"
|
25 |
+
more-itertools = "^8.13.0"
|
26 |
+
cchardet = "^2.1.7"
|
27 |
+
typer = "^0.4.1"
|
28 |
+
seg-text = "^0.1.2"
|
29 |
+
joblib = "^1.1.0"
|
30 |
+
|
31 |
+
[tool.poe.executor]
|
32 |
+
type = "poetry"
|
33 |
+
|
34 |
+
[tool.poe.tasks]
|
35 |
+
memo = "echo poe test or poetry run poe test"
|
36 |
+
test = "pytest tests"
|
37 |
+
pyright = "pyright radio_mlbee"
|
38 |
+
flake8 = "flake8 radio_mlbee --ignore F401,E501,F841"
|
39 |
+
check = ["pyright", "flake8"]
|
40 |
+
export = "poetry export --without-hashes -f requirements.txt -o requirements.txt"
|
41 |
+
build = "poetry build"
|
42 |
+
publish = "poetry publish"
|
43 |
+
release = ["test", "build", "publish"]
|
44 |
+
lint = { cmd = "pylint radio_mlbee" }
|
45 |
+
isort = "isort tests radio_mlbee"
|
46 |
+
black = "black tests radio_mlbee"
|
47 |
+
formt = ["isort", "black"]
|
48 |
+
docstyle = "pydocstyle --convention=google tests radio_mlbee"
|
49 |
+
prerelease = {cmd = "poetry version prerelease && sync-version"}
|
50 |
+
tunnel = {cmd = "ssh -CN ip_or_hostname_defined_in_hosts -L 9091:127.0.0.1:9091"}
|
51 |
+
|
52 |
+
[tool.poetry.dev-dependencies]
|
53 |
+
pytest = "^7.1"
|
54 |
+
flake8 = "^3.9.2"
|
55 |
+
pydocstyle = "^6.1.1"
|
56 |
+
toml = "^0.10.2"
|
57 |
+
# tbump = "^6.3.2"
|
58 |
+
poethepoet = "^0.10.0"
|
59 |
+
|
60 |
+
[tool.poetry.scripts]
|
61 |
+
"radio-mlbee" = "radio_mlbee.__main__:app"
|
62 |
+
|
63 |
+
[build-system]
|
64 |
+
requires = ["poetry-core>=1.0.0"]
|
65 |
+
build-backend = "poetry.core.masonry.api"
|
66 |
+
|
67 |
+
[tool.pytest.ini_options]
|
68 |
+
minversion = "6.0"
|
69 |
+
addopts = "-ra -q --doctest-modules"
|
70 |
+
log_cli = true
|
71 |
+
testpaths = [
|
72 |
+
"tests",
|
73 |
+
# "integration",
|
74 |
+
]
|
75 |
+
|
76 |
+
[tool.black]
|
77 |
+
skip-string-normalization = 0
|
78 |
+
|
79 |
+
[tool.isort]
|
80 |
+
profile = "black"
|
81 |
+
multi_line_output = 3
|
pyproject.toml
CHANGED
@@ -13,10 +13,10 @@ logzero = "^1.7.0"
|
|
13 |
set-loglevel = "^0.1.2"
|
14 |
icecream = "^2.1.1"
|
15 |
install = "^1.3.5"
|
16 |
-
torch = [
|
17 |
-
{url = "https://download.pytorch.org/whl/cpu/torch-1.11.0%2Bcpu-cp38-cp38-linux_x86_64.whl", markers = "sys_platform == 'linux'"},
|
18 |
-
{url = "https://download.pytorch.org/whl/cpu/torch-1.11.0%2Bcpu-cp38-cp38-win_amd64.whl", markers = "sys_platform == 'win32'"}
|
19 |
-
]
|
20 |
sentence-transformers = "^2.2.0"
|
21 |
hf-model-s-cpu = "^0.1.1"
|
22 |
gradio = "^3.0.15"
|
|
|
13 |
set-loglevel = "^0.1.2"
|
14 |
icecream = "^2.1.1"
|
15 |
install = "^1.3.5"
|
16 |
+
#torch = [
|
17 |
+
# {url = "https://download.pytorch.org/whl/cpu/torch-1.11.0%2Bcpu-cp38-cp38-linux_x86_64.whl", markers = "sys_platform == 'linux'"},
|
18 |
+
# {url = "https://download.pytorch.org/whl/cpu/torch-1.11.0%2Bcpu-cp38-cp38-win_amd64.whl", markers = "sys_platform == 'win32'"}
|
19 |
+
#]
|
20 |
sentence-transformers = "^2.2.0"
|
21 |
hf-model-s-cpu = "^0.1.1"
|
22 |
gradio = "^3.0.15"
|