diff --git a/noxfile.py b/noxfile.py index ed095dd..4b3d5d7 100644 --- a/noxfile.py +++ b/noxfile.py @@ -39,5 +39,5 @@ def check_javascript(session: Session) -> None: @group.session def publish(session: Session) -> None: session.install("twine", "build", "wheel") - session.run("python", "-m", "build", "--wheel", "--outdir", "dist/") + session.run("python", "-m", "build", "--wheel", "--sdist", "--outdir", "dist/") session.run("twine", "upload", "dist/*") diff --git a/reactpy_jupyter/__init__.py b/reactpy_jupyter/__init__.py index ccd37d8..608a009 100644 --- a/reactpy_jupyter/__init__.py +++ b/reactpy_jupyter/__init__.py @@ -10,7 +10,7 @@ from .monkey_patch import execute_patch from .widget_component import from_widget -__version__ = "0.9.2" # DO NOT MODIFY +__version__ = "0.9.3" # DO NOT MODIFY __all__ = ( "from_widget", diff --git a/setup.py b/setup.py index b682d58..d3538a6 100644 --- a/setup.py +++ b/setup.py @@ -162,14 +162,9 @@ def build_javascript_first(cmd: Command): def build_with_pth_file(cmd: Command): - build_lib = getattr(cmd, "build_lib", None) or getattr(cmd, "dist_dir", None) - if build_lib is None: - raise ValueError("Cannot find build_lib or dist_dir") - pth_filename = f"{NAME}.pth" source_pth_file = ROOT_DIR / pth_filename - target_pth_file = Path(build_lib, pth_filename) - cmd.copy_file(str(source_pth_file), str(target_pth_file)) + cmd.copy_file(str(source_pth_file), pth_filename) def add_to_cmd(cls: Command, functions: list[Callable[[Command], None]]) -> Command: