Skip to content

Commit

Permalink
Rename migration scripts (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Jun 27, 2022
1 parent d7f52ea commit 1f8f69d
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ config as well, if present.
To migrate, run the following:

```bash
python -m hatch_jupyter_builder.migration .
python -m hatch_jupyter_builder.migrate .
```

The migration script will do most of the migration automatically, but
Expand All @@ -95,7 +95,7 @@ will prompt you for anything it cannot do itself.
To compare dist files with a reference checkout, run the following:

```bash
python -m hatch_jupyter_builder.migration.compare <source_dir> <target_dir> sdist
python -m hatch_jupyter_builder.compare_migration <source_dir> <target_dir> sdist
```

Use `wheel` to compare wheel file contents.
Expand Down
Empty file.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ filterwarnings = [

[tool.coverage.run]
omit = [
"hatch_jupyter_builder/migration/*"
"hatch_jupyter_builder/migrate/*",
"hatch_jupyter_builder/compare_migrated/*"
]

[tool.jupyter-releaser]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import pytest
import tomli

from hatch_jupyter_builder.migration.compare import main
from hatch_jupyter_builder.compare_migrated.__main__ import main

HERE = Path(__file__).parent.absolute()

Expand All @@ -26,7 +26,7 @@ def test_migration():

# Migrate the first extension and compare its migrated pyproject.toml
# to the expected one.
subprocess.check_call([python, "-m", "hatch_jupyter_builder.migration", target1])
subprocess.check_call([python, "-m", "hatch_jupyter_builder.migrate", target1])
source_toml = source.joinpath("pyproject.toml").read_text(encoding="utf-8")
target_toml = target1.joinpath("pyproject.toml").read_text(encoding="utf-8")
source_data = tomli.loads(source_toml)
Expand Down

0 comments on commit 1f8f69d

Please sign in to comment.