![]() ![]() However, myproj needs commonlib, which we also work on at the same time. Then, we start working on our project, i.e., myproj in this case. Setup Development Mode with Git Submoduleįirst of all, for Python project development, we usually set up a virtual environment and install all the dependencies into the virtual environment. ![]() Case 2: Update a submodule to a newer or specific version.Case 1: Update a submodule because of code changes.Hopefully, people who need to manage this type of workflow can find this article helpful.Ĭommonlib and myproj are used as an example in the rest of the article, and the example assumes the code runs in a virtual environment with the following condition: This article demonstrates how to use development mode and submodule to deal with this situation. If both commonlib and myproj happen to be Python projects, we can use setuptools’ development mode (development mode) and Git submodule (submodule) to make the work easier. While we are working on myproj, we may also need to update commonlib at the same time. A project called myproj has a dependency on commonlib.The library is self-contained and has its test suite and document. A common library, say commonlib, is used by many projects.We have two projects, and each of them has its Git repository: The scenario may look like the following: As a software engineer, it is not uncommon that we work on a project that has a dependency on the other project that we also work on at the same time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |