{"id":31642462,"url":"https://github.com/tameronline/setup","last_synced_at":"2025-10-07T03:59:38.570Z","repository":{"id":304081648,"uuid":"1017650914","full_name":"TamerOnLine/setup","owner":"TamerOnLine","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-11T01:29:41.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-11T06:33:11.473Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TamerOnLine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-10T21:57:39.000Z","updated_at":"2025-07-11T01:33:04.000Z","dependencies_parsed_at":"2025-07-11T06:33:16.698Z","dependency_job_id":"3041a1c1-033e-41df-b0d8-ffb392e1141f","html_url":"https://github.com/TamerOnLine/setup","commit_stats":null,"previous_names":["tameronline/setup"],"tags_count":null,"template":true,"template_full_name":null,"purl":"pkg:github/TamerOnLine/setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2Fsetup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2Fsetup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2Fsetup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2Fsetup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TamerOnLine","download_url":"https://codeload.github.com/TamerOnLine/setup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2Fsetup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278717434,"owners_count":26033542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-07T03:59:32.631Z","updated_at":"2025-10-07T03:59:38.565Z","avatar_url":"https://github.com/TamerOnLine.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚙️ setup.py — Smart Project Bootstrapper\n\nThis script (`setup.py`) automates the setup of a Python project using dynamic configuration. It creates a virtual environment, installs dependencies, and runs the main script defined in `setup-config.json`.\n\n---\n\n## 🎯 Purpose\n\nTo make the setup and execution of any Python project automatic and portable without modifying the `setup.py` file itself.\n\n---\n\n## 📁 What It Does\n\n| Task                      | Description                                                                 |\n|---------------------------|-----------------------------------------------------------------------------|\n| Load configuration        | Reads `setup-config.json` or creates it with default values if missing     |\n| Locate Python interpreter | Tries to find `pythonX.Y` based on config version                          |\n| Create virtualenv         | Uses `venv` to create the virtual environment                              |\n| Upgrade pip               | Ensures pip is up to date                                                   |\n| Install requirements      | Installs dependencies from `requirements.txt`, or creates one if missing   |\n| Run main script           | Executes the specified `main_file`                                         |\n| Clean up temp files       | Deletes files like `tempCodeRunnerFile.py` if found                        |\n\n---\n\n## 🧩 setup-config.json Example\n\nCreated automatically on first run if missing:\n\n```json\n{\n  \"project_name\": \"UnnamedProject\",\n  \"main_file\": \"main.py\",\n  \"requirements_file\": \"requirements.txt\",\n  \"venv_dir\": \"venv\",\n  \"python_version\": \"3.12\"\n}\n```\n\nYou can edit this file freely to adjust the configuration.\n\n---\n\n## 🚀 Available Modes\n\n| Command                          | Description                                                           |\n|----------------------------------|------------------------------------------------------------------------|\n| `python setup.py full`          | Default mode: creates venv + installs + runs main script               |\n| `python setup.py install-only`  | Only creates venv and installs requirements                            |\n| `python setup.py run-only`      | Only runs the main script (requires venv to exist)                     |\n| `python setup.py full --clean`  | Full clean setup: deletes and recreates virtual environment            |\n\n---\n\n## 📂 Recommended Project Structure\n\n```\nyour-project/\n├── setup.py\n├── setup-config.json\n├── requirements.txt\n├── main.py\n└── .github/\n    └── workflows/\n        └── setup.yml\n```\n\n---\n\n## 🔧 Configuration Example\n\n```json\n{\n  \"project_name\": \"resume-manager\",\n  \"main_file\": \"setup.py\",\n  \"requirements_file\": \"requirements.txt\",\n  \"venv_dir\": \"venv\",\n  \"python_version\": \"3.12\"\n}\n```\n\n---\n\n## 💡 Highlights\n\n- No need to touch `setup.py` to adapt it to new projects.\n- Great for onboarding and consistent local/dev setup.\n- GitHub Actions ready.\n- Works identically on all OSes that support Python \u0026 venv.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftameronline%2Fsetup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftameronline%2Fsetup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftameronline%2Fsetup/lists"}