A URL router for ReactPy
Use pip to install this package:
pip install reactpy-routerFor a developer installation from source be sure to install NPM before running:
git clone https://github.com/reactive-python/reactpy-router
cd reactpy-router
pip install -e . -r requirements.txtTo run the tests you'll need to install Chrome. Then you
can download the ChromeDriver and add it to
your PATH. Once that's done, simply pip install the requirements:
pip install -r requirements.txtAnd run the tests with pytest:
pytest testsYou can run the tests in headless mode (i.e. without opening the browser):
pytest testsYou'll need to run in headless mode to execute the suite in continuous integration systems like GitHub Actions.
To release a new version of reactpy-router on PyPI:
- Install
twinewithpip install twine - Update the
version = "x.y.z"variable inreactpy-router/__init__.py gitadd the changes to__init__.pyand create agit tag -a x.y.z -m 'comment'- Build the Python package with
python setup.py sdist bdist_wheel - Check the build artifacts
twine check --strict dist/* - Upload the build artifacts to PyPI
twine upload dist/*
To release a new version of reactpy-router on NPM:
- Update
js/package.jsonwith new npm package version - Clean out prior builds
git clean -fdx - Install and publish
npm install && npm publish