Upload test_uv_script.py with huggingface_hub
Browse files- test_uv_script.py +24 -0
test_uv_script.py
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# /// script
|
2 |
+
# requires-python = ">=3.10"
|
3 |
+
# dependencies = [
|
4 |
+
# "requests",
|
5 |
+
# ]
|
6 |
+
# ///
|
7 |
+
"""Test UV script for hfjobs uv run command."""
|
8 |
+
|
9 |
+
import requests
|
10 |
+
import sys
|
11 |
+
|
12 |
+
def main():
|
13 |
+
print("Hello from UV script!")
|
14 |
+
print(f"Python version: {sys.version}")
|
15 |
+
print(f"Command line args: {sys.argv[1:]}")
|
16 |
+
|
17 |
+
# Test that dependencies work
|
18 |
+
response = requests.get("https://api.github.com")
|
19 |
+
print(f"GitHub API status: {response.status_code}")
|
20 |
+
|
21 |
+
print("✅ Script completed successfully!")
|
22 |
+
|
23 |
+
if __name__ == "__main__":
|
24 |
+
main()
|