{"id":13343238,"url":"https://github.com/anki-code/my-xonsh-fork","last_synced_at":"2025-08-15T00:35:02.510Z","repository":{"id":57444611,"uuid":"309081159","full_name":"anki-code/my-xonsh-fork","owner":"anki-code","description":"Convert your xonsh fork package name to the new.","archived":false,"fork":false,"pushed_at":"2022-12-21T14:12:01.000Z","size":70,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-26T11:09:31.410Z","etag":null,"topics":["xonsh","xonsh-dev","xonsh-fork"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anki-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":["https://github.com/anki-code","https://www.buymeacoffee.com/xxh","https://github.com/xonsh/xonsh#the-xonsh-shell-community"]}},"created_at":"2020-11-01T11:30:09.000Z","updated_at":"2023-12-01T13:47:48.000Z","dependencies_parsed_at":"2023-01-30T03:46:15.327Z","dependency_job_id":null,"html_url":"https://github.com/anki-code/my-xonsh-fork","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/anki-code/my-xonsh-fork","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anki-code%2Fmy-xonsh-fork","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anki-code%2Fmy-xonsh-fork/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anki-code%2Fmy-xonsh-fork/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anki-code%2Fmy-xonsh-fork/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anki-code","download_url":"https://codeload.github.com/anki-code/my-xonsh-fork/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anki-code%2Fmy-xonsh-fork/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270505741,"owners_count":24596503,"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-08-14T02:00:10.309Z","response_time":75,"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":["xonsh","xonsh-dev","xonsh-fork"],"created_at":"2024-07-29T19:30:42.871Z","updated_at":"2025-08-15T00:35:02.473Z","avatar_url":"https://github.com/anki-code.png","language":"Python","readme":"\u003cp align=\"center\"\u003e\n\u003cb\u003emy-xonsh-fork\u003c/b\u003e is to convert your xonsh fork package name to the new \u003cbr\u003ei.e. \u003ccode\u003exonsh\u003c/code\u003e becomes \u003ccode\u003exonsh42\u003c/code\u003e and you can run it, add it to shebang or import in python. \n\u003c/p\u003e\n\n## How it works\n\n1. You have your own fork of original xonsh repository.\n2. You want to install it on your host. But you don't want to lose the original xonsh on your host. You don't want to rename xonsh package in your fork code to have an ability to pull the changes from the original xonsh repository without conflicts.\n3. When you run `my-xonsh-fork` it make a clone of the source git repo and replaces `xonsh` directory, calls, paths with the `xonsh{FORK_NAME}` i.e. `xonsh2`.\n4. Then you can install this package using `pip`.\n5. As result you'll have `xonsh` on the host along with `xonsh2`. You can use both `xonsh` and `xonsh2` in the sheband of your scripts i.e. `#!/usr/bin/env xonsh2`.\n\n## Install\n```python\npip install my-xonsh-fork\n```\n\n## Usage\n```\nusage: my-xonsh-fork [-h] -n FORK_NAME -s SOURCE_REPO [-t TARGET_REPO] -d TARGET_DIR [-f]\n\nConvert your xonsh fork package name to the new.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -n FORK_NAME, --fork-name FORK_NAME\n                        Fork name i.e. `-n 2` will create `xonsh2` fork.\n  -s SOURCE_REPO, --source-repo SOURCE_REPO\n                        Source repo i.e. git@github.com:anki-code/xonsh-xep-2.git\n  -t TARGET_REPO, --target-repo TARGET_REPO\n                        Target empty repo to push the result i.e. git@github.com:anki-code/xonsh2.git\n  -d TARGET_DIR, --target-dir TARGET_DIR\n                        Target dir i.e. /tmp/xonsh2\n  -f, --force-rebuild   Remove XONSH_TARGET_DIR and rebuild from scratch.\n```\n\n## Example\nFor example you want to have two packages: `xonsh` with original xonsh and `xonsh2` - your fork of original xonsh. \n\nTo achieve this here is the example based on [XEP-2 fork](https://github.com/anki-code/xonsh-xep-2): \n```python\nmy-xonsh-fork -n 2 -s git@github.com:anki-code/xonsh-xep-2.git -d /tmp/xonsh2 -f\npip install -U /tmp/xonsh2\nxonsh2 --no-rc\n```\nIf you want to push the renamed fork to new repo use ``--target-repo`` argument.\n\n## RC files\n\nIf your fork has name `2` (i.e. `my-xonsh-fork -n 2 ...`) then the new names of RC files will be: `.xonshrc_2`, `rc_2.xsh`. \n\n## xontrib\n\nIf your fork has name `2` (i.e. `my-xonsh-fork -n 2 ...`) then the new name of the xontribs package will be `xontrib2` and the command to load it will be `xontrib2 load`. \n\nTo support your fork in the xontrib change the sections in `setup.py` of the xontrib:\n\n```python\nsetup(\n  ...\n  packages=[\n        'xontrib',\n        'xontrib2'  # Added\n  ],\n  package_dir={\n        'xontrib': 'xontrib', \n        'xontrib2': 'xontrib'  # Added\n  },\n  ...\n)\n```\n","funding_links":["https://github.com/anki-code","https://www.buymeacoffee.com/xxh","https://github.com/xonsh/xonsh#the-xonsh-shell-community"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanki-code%2Fmy-xonsh-fork","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanki-code%2Fmy-xonsh-fork","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanki-code%2Fmy-xonsh-fork/lists"}