Skip to content

Commit

Permalink
one more attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed May 19, 2023
1 parent 4c2cd13 commit 64a2160
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion noxfile.py
Expand Up @@ -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/*")
2 changes: 1 addition & 1 deletion reactpy_jupyter/__init__.py
Expand Up @@ -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",
Expand Down
7 changes: 1 addition & 6 deletions setup.py
Expand Up @@ -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:
Expand Down

0 comments on commit 64a2160

Please sign in to comment.