{"id":17823354,"url":"https://github.com/purarue/clone-repos","last_synced_at":"2026-02-06T14:31:57.114Z","repository":{"id":94609933,"uuid":"561636458","full_name":"purarue/clone-repos","owner":"purarue","description":"a basic git repo clone script with pip/editable install support","archived":false,"fork":false,"pushed_at":"2026-01-17T05:36:31.000Z","size":30,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-17T17:36:16.903Z","etag":null,"topics":["clone","git"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/cl-repos","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/purarue.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-11-04T06:10:12.000Z","updated_at":"2026-01-17T05:36:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e3b813a-649e-4991-b612-d87bd0309a64","html_url":"https://github.com/purarue/clone-repos","commit_stats":null,"previous_names":["purarue/clone-repos"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/purarue/clone-repos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fclone-repos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fclone-repos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fclone-repos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fclone-repos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purarue","download_url":"https://codeload.github.com/purarue/clone-repos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fclone-repos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29164861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T12:44:37.655Z","status":"ssl_error","status_checked_at":"2026-02-06T12:44:13.991Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["clone","git"],"created_at":"2024-10-27T17:57:41.977Z","updated_at":"2026-02-06T14:31:57.105Z","avatar_url":"https://github.com/purarue.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clone-repos\n\na basic git repo clone script, with special support for pip and/or editable installs, using [reorder_editable](https://github.com/purarue/reorder_editable)\n\nThis supports running a preinstall (after cloning) or postinstall step (a shell command) as well\n\nFor examples of a `clone-repos.yaml` file this expects at `~/.config/clone-repos.yaml`, see:\n\n- [clone-repos](https://purarue.xyz/d/clone-repos.yaml?redirect)\n- [computer-clone-repos](https://purarue.xyz/d/computer-clone-repos.yaml?redirect)\n- [hpi-clone-repos](https://purarue.xyz/d/hpi-clone-repos.yaml?redirect)\n\nI also use this to install plugins/addons for things like [ranger](https://ranger.github.io/) or [todotxt](https://github.com/todotxt/todo.txt-cli):\n\n- [ranger-plugins](https://purarue.xyz/d/ranger-plugins.yaml?redirect)\n- [todotxt-actions](https://purarue.xyz/d/todotxt-actions.yaml?redirect)\n\n## Installation\n\nRequires `python3.10+`\n\nTo install with pip, run:\n\n    pip install cl-repos\n\n## Usage\n\n```\nUsage: clone-repos [OPTIONS] CONFIG_FILE\n\n  Clones and sets up your repos.\n\n  Can provide a CONFIG_FILE instead of using the default\n\nOptions:\n  -b, --base-repos DIRECTORY   base repository directory to clone repos into\n                               [env var: REPOS; required]\n  -P, --parse-config           test parsing the config file instead of running\n                               clone\n  -B, --break-system-packages  pass the --break-system-packages flag to pip\n  --help                       Show this message and exit.\n```\n\nThe full format for a repo is:\n\n```yaml\n\"url to repository\":\n  base: path # overwrite base-path for this repo\n  dirname: directory_name # directory name to clone into\n  symlink_to: directory_name # the parent directory to symlink the cloned repo to\n  pip: how # 'install', 'editable' or 'editable_system'\n  preinstall:\n    - \"shell command 1\"\n    - \"shell command 2\"\n  postinstall: \"shell command here\"\n  pipefail: false # if true, stops multiple preinstall/postinstall if any command fails\n```\n\nThe `preinstall` and `postinstall` scripts can either be one command (a string), or multiple (a list)\n\nFor `pip`, `editable` by default uses the `--user` flag, if you know what you're doing and want to install in your system lib directory, use `editable_system` (Note that this only works in particular python installations. In a lot of cases, pip will still default to installing into your `--user` directory instead). See [reorder_editable](https://github.com/purarue/reorder_editable) for context.\n\nThis expects a `$REPOS` environment variable to be set, which is the base directory to clone into, e.g. in your shell config set:\n\n```bash\nexport REPOS=\"${HOME}/Repos\"\n```\n\n... or you can provide the `--base-repos` flag when running\n\nTo clone, run `clone-repos` or `python3 -m clone_repos`\n\nTo run this quickly on new machines, I setup an alias in my dotfiles like:\n\n`alias cr=\"pip install cl-repos \u0026\u0026 clone-repos -B\"`\n\n### Tests\n\n```bash\ngit clone 'https://github.com/purarue/clone-repos'\ncd ./clone-repos\npip install '.[testing]'\nflake8 ./clone-repos\nmypy ./clone-repos\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurarue%2Fclone-repos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurarue%2Fclone-repos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurarue%2Fclone-repos/lists"}