Skip to content

Commit 12b0847

Browse files
authored
Fix GHA builds (#77)
1 parent 8551ef8 commit 12b0847

File tree

6 files changed

+18
-8
lines changed

6 files changed

+18
-8
lines changed

.github/workflows/pytest.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,20 @@ jobs:
2222
uses: actions/setup-python@v4
2323
with:
2424
python-version: ${{ matrix.python-version }}
25-
- name: Install dependencies
25+
26+
- name: Upgrade pip, install wheel
2627
run: |
2728
python -m pip install --upgrade pip
29+
pip install wheel
30+
31+
- name: Install dev version of htmltools
32+
run: |
33+
pip install https://github.com/rstudio/py-htmltools/tarball/main
34+
35+
- name: Install dependencies
36+
run: |
2837
pip install -e ".[dev,test]"
38+
2939
- name: Install
3040
run: |
3141
make install

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ dist: clean ## builds source and wheel package
8585
python setup.py bdist_wheel
8686
ls -l dist
8787

88-
install: clean ## install the package to the active Python's site-packages
89-
python setup.py install
88+
install: dist ## install the package to the active Python's site-packages
89+
pip uninstall -y shinywidgets
90+
python3 -m pip install dist/shinywidgets*.whl
9091

9192
pyright: ## type check with pyright
9293
pyright --pythonversion=3.7

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description = Render ipywidgets in Shiny applications
88
long_description = file: README.md
99
long_description_content_type = text/markdown
1010
license = MIT
11-
license_file = LICENSE
11+
license_files = LICENSE
1212
platforms = any
1313
classifiers =
1414
Development Status :: 2 - Pre-Alpha

shinywidgets/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
__author__ = """Carson Sievert"""
44
__email__ = "carson@rstudio.com"
5+
__version__ = "0.1.5"
56

67
from ._shinywidgets import output_widget, reactive_read, register_widget, render_widget
7-
from ._version import __version__ # noqa: F401
88

99
__all__ = ("output_widget", "register_widget", "render_widget", "reactive_read")

shinywidgets/_dependencies.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
from jupyter_core.paths import jupyter_path # type: ignore
1919
from shiny import Session
2020

21+
from . import __version__
22+
2123

2224
# TODO: scripts/static_download.R should produce/update these
2325
def libembed_dependency() -> List[HTMLDependency]:
@@ -47,8 +49,6 @@ def libembed_dependency() -> List[HTMLDependency]:
4749

4850

4951
def output_binding_dependency() -> HTMLDependency:
50-
from ._version import __version__
51-
5252
return HTMLDependency(
5353
name="ipywidget-output-binding",
5454
version=__version__,

shinywidgets/_version.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)