{"id":19120863,"url":"https://github.com/waylonwalker/monorepo","last_synced_at":"2025-07-01T12:37:38.061Z","repository":{"id":105815235,"uuid":"579064335","full_name":"WaylonWalker/monorepo","owner":"WaylonWalker","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-21T03:21:42.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-03T08:18:46.686Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WaylonWalker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-12-16T15:11:29.000Z","updated_at":"2022-12-19T08:18:50.000Z","dependencies_parsed_at":"2023-06-14T03:45:26.889Z","dependency_job_id":null,"html_url":"https://github.com/WaylonWalker/monorepo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WaylonWalker%2Fmonorepo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WaylonWalker%2Fmonorepo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WaylonWalker%2Fmonorepo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WaylonWalker%2Fmonorepo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WaylonWalker","download_url":"https://codeload.github.com/WaylonWalker/monorepo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240177050,"owners_count":19760308,"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","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":"2024-11-09T05:15:15.687Z","updated_at":"2025-02-22T12:45:26.816Z","avatar_url":"https://github.com/WaylonWalker.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"A python monorepo created with hatch.\n\n\n## Configuration\n\nThis configuration goes in your global hatch config, you can find it with\n`hatch config find`.\n\n\n``` toml\n[projects]\none = '/home/waylon/git/monorepo/project-one'\ntwo = '/home/waylon/git/monorepo/project-two'\nthree = '/home/waylon/git/monorepo/project-three'\n\n[dirs]\nproject = [\"/home/waylon/git/monorepo\"]\n```\n\n## Editable installs\n\nI am looking for a good way to make all the projects able to editable install\neach other.  This will allow quick updates without needing a new venv. Go to\ndefinition will now just work, rather than going into the projects venv, it\nwill take you to the real source code that you can safely edit.\n\n\n### Currently scripts work\n\nThis feels like a bit of a hacky solution compared to setting the dependency as\neditable in the list of dependencies, or in a post-install script, but it\nworks.\n\nIn the scripts section for the `env`, add an editable command.\n\n``` toml\n[tool.hatch.envs.default.scripts]\neditable = [\n    \"python -m pip install -e ../project-one\",\n    \"python -m pip install -e ../project-two\",\n]\n```\n\nThen when you want to create an editable environment for project three you can\nrun the following.\n\n``` bash\nhatch -p three run editable\n## or you can run it locally to the project\ncd project-three\nhatch run editable\n```\n\nNow to clear out the env, maybe if you wanted to go back to a non-editable\ninstall.\n\n``` bash\nhatch -p three env prune\n```\n\n### Other names\n\n* local_install\n* local_setup\n* editable_install\n* make_editable\n\n### It Could be Better\n\nIt would be better for this to be seemless, either by specifying the dependency\nas editable in the dependency section, or in a pre/post install command.\nCurrently these are not working for me.\n\n## Links\n\n* Hatch [#233](https://github.com/pypa/hatch/issues/233) - Monorepo support\n* Hatch Docs [post-install config](https://hatch.pypa.io/latest/config/environment/overview/#post-install)\n* Requirements.txt [plugin](https://github.com/repo-helper/hatch-requirements-txt)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaylonwalker%2Fmonorepo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaylonwalker%2Fmonorepo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaylonwalker%2Fmonorepo/lists"}