Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed May 19, 2023
1 parent 5800f26 commit 609edfc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ graft jupyter-config

include LICENSE
include pyproject.toml
include reactpy_jupyter.pth
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
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", "--sdist", "--wheel", "--outdir", "dist/")
session.run("python", "-m", "build", "--wheel", "--outdir", "dist/")
session.run("twine", "upload", "dist/*")
9 changes: 0 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,6 @@ def build_javascript_first(cmd: Command):
log.info("Successfully installed Javascript")


def build_with_pth_file(cmd: Command):
# install the pth file
pth_filename = f"{NAME}.pth"
source_pth_file = ROOT_DIR / pth_filename
source_pth_file = Path(cmd.build_lib, pth_filename)
cmd.copy_file(str(source_pth_file), str(source_pth_file))


def add_to_cmd(cls: Command, functions: list[Callable[[Command], None]]) -> Command:
class Command(cls):
def run(self):
Expand All @@ -183,7 +175,6 @@ def run(self):
add_to_cmd,
functions=[
build_javascript_first,
build_with_pth_file,
],
)

Expand Down

0 comments on commit 609edfc

Please sign in to comment.