pablovela5620 commited on
Commit
64cb1f3
·
verified ·
1 Parent(s): db8de6e

Upload pyproject.toml with huggingface_hub

Browse files
Files changed (1) hide show
  1. pyproject.toml +90 -0
pyproject.toml ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [project]
2
+ name = "zero_spaces_template"
3
+ version = "0.1.0"
4
+ description = "Add a short description here"
5
+ authors = [{ name = "Pablo Vela", email = "pablovela5620@gmail.com" }]
6
+ requires-python = ">= 3.11"
7
+ dependencies = ["build>=1.2.2.post1,<2"]
8
+
9
+ [build-system]
10
+ requires = ["setuptools"]
11
+ build-backend = "setuptools.build_meta"
12
+
13
+ [tool.setuptools.packages.find]
14
+ include = ["zero_spaces_template*"]
15
+
16
+ [tool.pixi.project]
17
+ channels = ["https://fast.prefix.dev/conda-forge"]
18
+ platforms = ["linux-64"]
19
+
20
+ [tool.pixi.activation]
21
+ scripts = [".pixi.sh"]
22
+
23
+ [tool.pixi.tasks]
24
+ _install-wheel = "uv pip install ./$WHL_PATH --force-reinstall"
25
+ _build-wheel = "python -m build"
26
+ upload-hf = { cmd = "python tools/upload_to_hf.py", depends-on = [
27
+ "_build-wheel",
28
+ ] }
29
+
30
+ [tool.pixi.tasks.app]
31
+ cmd = """
32
+ python tools/gradio_app.py
33
+ """
34
+ description = "Runs Gradio frontend"
35
+
36
+ [tool.pixi.tasks.dev-app]
37
+ cmd = """
38
+ gradio tools/gradio_app.py
39
+ """
40
+ description = "Runs Gradio frontend for hotreload"
41
+
42
+ [tool.pixi.feature.spaces.tasks.app]
43
+ cmd = """
44
+ python gradio_app.py
45
+ """
46
+ description = "Runs Gradio frontend in huggingface spaces"
47
+ depends-on = ["_install-wheel"]
48
+
49
+ [tool.pixi.pypi-dependencies]
50
+ zero_spaces_template = { path = ".", editable = true }
51
+ # zero_spaces_template = { path = "dist/zero_spaces_template-0.1.0-py3-none-any.whl" }
52
+ torch = { version = ">=2.5.1", index = "https://download.pytorch.org/whl/cu124" }
53
+ torchvision = { version = ">=0.20.1", index = "https://download.pytorch.org/whl/cu124" }
54
+ gradio-rerun = { url = "https://huggingface.co/datasets/pablovela5620/gradio-rr-0.23/resolve/main/gradio_rerun-0.0.8-py3-none-any.whl" }
55
+ rerun-sdk = { url = "https://github.com/rerun-io/rerun/releases/download/prerelease/rerun_sdk-0.23.0a1+dev-cp38-abi3-manylinux_2_31_x86_64.whl" }
56
+ simplecv = { git = "https://github.com/pablovela5620/simplecv.git", rev = "663a6a8882689cf70093cb16f717053731ca545e" }
57
+
58
+ [tool.pixi.dependencies]
59
+ python = "3.11.*"
60
+ uv = ">=0.6.0,<0.7"
61
+
62
+ [tool.pixi.feature.spaces.pypi-dependencies]
63
+ spaces = "==0.30.3"
64
+
65
+ [tool.pixi.environments]
66
+ spaces = { features = ["spaces"], solve-group = "default" }
67
+
68
+ [tool.ruff]
69
+ line-length = 150
70
+ select = [
71
+ # pycodestyle
72
+ "E",
73
+ # Pyflakes
74
+ "F",
75
+ # pyupgrade
76
+ "UP",
77
+ # flake8-bugbear
78
+ "B",
79
+ # flake8-simplify
80
+ "SIM",
81
+ # isort
82
+ "I",
83
+ ]
84
+
85
+ ignore = [
86
+ "E501", # Line too long.
87
+ "F722", # Forward annotation false positive from jaxtyping. Should be caught by pyright.
88
+ "F821", # Forward annotation false positive from jaxtyping. Should be caught by pyright.
89
+ "SIM117", # Use a single `with` statement with multiple contexts instead of nested `with` statements
90
+ ]