mirror of
https://github.com/initialcommit-com/git-sim.git
synced 2026-04-27 03:25:53 +03:00
[GH-ISSUE #24] How to run from source #21
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/git-sim#21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ryanmcfall on GitHub (Jan 25, 2023).
Original GitHub issue: https://github.com/initialcommit-com/git-sim/issues/24
I want to play around with the source code a little bit, so I've cloned the repository locally.
What do I do in order to run my local version? I don't see anything in
README.mdabout this.@initialcommit-io commented on GitHub (Jan 25, 2023):
Please check the
CONTRIBUTING.mdfile.Closing this while you test, if you run into any issues feel free to reopen this.
@paketb0te commented on GitHub (Jan 25, 2023):
Set up a virtual environment (e.g.
pip -m venv .venv- this calls the module "venv" and creates a virtual environment in the directory.venv) and activate it (source .venv/bin/activateon Linux, see DOCS for other OSes).Afterwards, you can run
pip install -e .which will install everything in the current working directory into your virtual environment in editable mode (meaning you can work on your files and don't need to reinstall after every change).@ryanmcfall commented on GitHub (Jan 26, 2023):
In case someone comes across this issue, I can verify that the method suggested by @paketb0te works great. Thanks for the suggestion - I like this better than editing out the prefix from the
importstatements as suggested inCONTRIBUTING.md.@abhijitnathwani commented on GitHub (Jan 26, 2023):
Thanks for confirming @ryanmcfall. The
contributing.mdis now updated to reflect these changes.@initialcommit-io commented on GitHub (Jan 26, 2023):
@ryanmcfall Yes thanks for testing the various options. You're absolutely right changing the imports was not sustainable - it was just my hacky workaround.
We now have a much better option in the updated
CONTRIBUTING.md.Let us know if that works for you - it worked great for me even outside of a Virtualenv.