| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = [ | |
| # "requests", | |
| # ] | |
| # /// | |
| """Test UV script for hfjobs uv run command.""" | |
| import requests | |
| import sys | |
| def main(): | |
| print("Hello from UV script!") | |
| print(f"Python version: {sys.version}") | |
| print(f"Command line args: {sys.argv[1:]}") | |
| # Test that dependencies work | |
| response = requests.get("https://api.github.com") | |
| print(f"GitHub API status: {response.status_code}") | |
| print("✅ Script completed successfully!") | |
| if __name__ == "__main__": | |
| main() |