Skip to content

Commit

Permalink
Reacton extra
Browse files Browse the repository at this point in the history
  • Loading branch information
itepifanio committed Feb 21, 2024
1 parent e03d43e commit 31f4001
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 8 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,19 @@ on: [workflow_dispatch, pull_request, push]
jobs:
test:
runs-on: ubuntu-latest
steps: [uses: fastai/workflows/nbdev-ci@master]
strategy:
matrix:
python-version: [3.9, 3.10, 3.11, 3.12]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U nbdev
pip install -e ".[reacton]"
- name: Run Tests
run: |
nbdev_test
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ example](https://github.com/itepifanio/ipywatch/blob/main/assets/ipywatch.gif?ra
## Installing

`pip install ipywatch`

or

`pip install ipywatch[reacton]` if you’re using solara or reacton
6 changes: 5 additions & 1 deletion nbs/index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
"source": [
"## Installing\n",
"\n",
"`pip install ipywatch`"
"`pip install ipywatch`\n",
"\n",
"or \n",
"\n",
"`pip install ipywatch[reacton]` if you're using solara or reacton"
]
}
],
Expand Down
3 changes: 1 addition & 2 deletions settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,4 @@ user = itepifanio

### Optional ###
requirements = ipykernel>=6.20.1
dev_requirements = solara>=1.26.1
# console_scripts =
# console_scripts =
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
statuses = [ '1 - Planning', '2 - Pre-Alpha', '3 - Alpha',
'4 - Beta', '5 - Production/Stable', '6 - Mature', '7 - Inactive' ]
py_versions = '3.6 3.7 3.8 3.9 3.10'.split()
py_versions = '3.9 3.10 3.11 3.12'.split()

requirements = shlex.split(cfg.get('requirements', ''))
if cfg.get('pip_requirements'): requirements += shlex.split(cfg.get('pip_requirements', ''))
Expand All @@ -42,7 +42,10 @@
packages = setuptools.find_packages(),
include_package_data = True,
install_requires = requirements,
extras_require={ 'dev': dev_requirements },
extras_require={
'dev': dev_requirements,
'reacton': ['reacton>=1.7.0']
},
dependency_links = cfg.get('dep_links','').split(),
python_requires = '>=' + cfg['min_python'],
long_description = open('README.md', encoding='utf-8').read(),
Expand All @@ -53,5 +56,3 @@
'nbdev': [f'{cfg.get("lib_path")}={cfg.get("lib_path")}._modidx:d']
},
**setup_cfg)


0 comments on commit 31f4001

Please sign in to comment.