Remove the code and test files from `noisepy`. Add a dependency on the new `noisepy-seis-io` and ensure the package works.
Closed this issue · 0 comments
carlosgjs commented
Here's how I recommend doing this, assuming you have a the two repos as:
repos/noisepy
repos/noisepy-io
- Create a new virtual environment
cd repos
pip install -e "./noisepy[dev]"
pip install -e "./noisepy-io[dev]"
This will give you a virtual environment with both projects installed locally and in editable mode. You then need to:
- Add a dependency to
noisepy-io
fromnoisepy
(in the pyproject.toml) - For each type (or a set of types) that moved:
- Delete the code in noisepy that now exists in
noisepy-io
- Fix up the import statements across the code
- Run unit tests
- Delete the code in noisepy that now exists in
Throughout this process you'll likely make changes in both packages. In the end you'll need to do a PR and publish a version of noisepy-io
. Once that is published you can do the big PR in noisepy
to use this new package.