Ryan Morshead
21011917ac
fix black lint ( #1193 )
2024-02-10 10:59:16 -08:00
Ryan Morshead
3a3ad3f706
Skip rendering None in all situations ( #1171 )
...
* skip rendering none
* add changelog
* conditional render none should not reset state for sibling components
* minor renaming + better changelog
* misc fixes
* raises exceptiongroup
* skipif
* handle egroup in starlette
* final nocov
2023-12-27 19:02:16 -08:00
Ryan Morshead
43009e42fe
fix strict eq effect test ( #1170 )
2023-12-09 18:07:31 -08:00
Ryan Morshead
d6f9bfe23c
update nodejs install method in docker ( #1168 )
...
* fix docker nodejs install
* use install script
2023-12-09 08:28:33 -08:00
Ryan Morshead
341a4925fd
Concurrent Renders ( #1165 )
...
* initial work on concurrent renders
* concurrent renders
* limit to 3.11
* fix docs
* update changelog
* simpler add_effect interface
* improve docstring
* better changelog description
* effect function accepts stop event
* simplify concurrent render process
* test serial renders too
* remove ready event
* fix doc example
* add docstrings
* use function scope async fixtures
* fix flaky test
* rename config option
* move effect kick-off into component did render
* move effect start to back to layout render
* try 3.x again
* require tracerite 1.1.1
* fix docs build
2023-12-09 08:11:46 -08:00
Dekkorate
701e462f61
Fix flask backend mimetype for modules ( #1131 )
...
* Fix flask backend mimetype for modules
* Update changelog
---------
Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>
2023-10-22 13:14:47 -06:00
Ryan Morshead
d3959e4e39
fix flaky test ( #1158 )
2023-10-22 13:05:03 -06:00
Ryan Morshead
3faa10fbbe
Try to fix lint ( #1157 )
...
* misc
* fix lint
2023-10-22 12:26:08 -06:00
Ryan Morshead
f053551f89
delete accidentally committed file
2023-07-23 22:55:31 -06:00
Ryan Morshead
99cd7b1a01
need to copy scheme from base url ( #1118 )
...
* need to copy scheme from base url
* add changelog entry
2023-07-23 22:54:28 -06:00
Ryan Morshead
c42d85c292
setsockopt on mac too
2023-07-23 22:52:28 -06:00
Mark Bakhit
fb9c57f073
reactpy.run
and configure(...)
refactoring (#1051 )
...
- Change `reactpy.backends.utils.find_all_implementations()` to first try to import `<backend_name>` before importing `reactpy.backend.<backend_name>`
- Allows for missing sub-dependencies to not cause `reactpy.run` to silently fail
- Import `uvicorn` directly within `serve_with_uvicorn` in order to defer import.
- Allows for `ModuleNotFound: Could not import uvicorn` exception to tell the user what went wrong
- Added `CommonOptions.serve_index_route: bool`
- Allows us to not clutter the route patterns when it's not needed
- There are real circumstances where a user might want the index route to 404
- Fix bug where in-use ports are being assigned on Windows.
- Removes `allow_reuse_waiting_ports` parameter on `find_available_port()`
- Rename `BackendImplementation` to `BackendProtocol`
- Change load order of `SUPPORTED_PACKAGES` so that `FastAPI` has a chance to run before `starlette`
- Rename `SUPPORTED_PACKAGES` to `SUPPORTED_BACKENDS`
- Refactor `reactpy.backend.*` code to be more human readable
- Use f-strings where possible
- Merge `if` statements where possible
- Use `contextlib.supress` where possible
- Remove defunct `requirements.txt` file
2023-07-18 02:15:08 -07:00
Ryan Morshead
778057d7ab
fix ruff error + pin ruff ver for now ( #1107 )
2023-07-15 12:32:24 -06:00
Ryan Morshead
ff60ae7046
Update pull_request_template.md
2023-07-04 17:20:46 -06:00
Ryan Morshead
773570b1ec
V1.0.2 changelog ( #1088 )
...
* fix changelog
* narrow pre-commit steps to particular files
2023-07-03 23:48:37 -06:00
Ryan Morshead
5582431ca6
reactpy-v1.0.2 ( #1087 )
2023-07-03 23:28:13 -06:00
Mark Bakhit
77303a38fe
django-reactpy
-> reactpy-django
(#1080 )
...
Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>
2023-07-03 21:27:52 -06:00
Ryan Morshead
e82ffdfaa0
Fix issue from #1081 ( #1085 )
...
* identify issue from #1081
* fix the bug
* update doc
* make ruff happy
* add changelog entry
2023-07-03 21:10:31 -06:00
Ryan Morshead
f065655ae1
Fix publish ( #1064 )
...
* use env instead of env_dict
* check mypy on tasks
2023-07-02 16:31:49 -06:00
Ryan Morshead
754a6198b0
minor improvements to project setup ( #1082 )
...
* minor improvements to project setup
* install docs + fix ruff errors
* fix lint
* fixes first
2023-07-02 16:15:14 -06:00
Ryan Morshead
3f804cae51
Update pull_request_template.md
2023-06-16 11:47:59 -06:00
Ryan Morshead
9bf3db7f66
fix how we collect tags on current commit ( #1063 )
...
* fix how we collect tags on current commit
* fix dry-run handling
2023-06-16 09:45:38 -07:00
Ryan Morshead
6df7ecdebb
pre for 1.0.1 release ( #1062 )
2023-06-16 09:15:54 -07:00
Simone Rubino
403e5f2453
fix docs typos ( #1061 )
2023-06-15 17:17:18 -07:00
Mark Bakhit
bd60e6e7e1
Warn and fix missing mime types ( #1050 )
2023-06-14 23:15:37 -07:00
Ryan Morshead
a3d79aa8f5
report better error for attrs that cannot be serialized ( #1008 )
...
* report better error for attrs that cannot be serialized
also misc changes to config options to make this eaiser
in particular ability to specify options as parents
* add more tests
* no need to be clever - just inherit
* fix tests
* ignore missing cov
* add test for non-json serializable attrs
* add changelog entry
* fix tests
* try node 16?
https://github.com/nodesource/distributions#using-ubuntu-3
* install npm explicitey
* try install in different order
* update first
* explicitely install npm i guess...
2023-06-14 21:18:43 -07:00
Ryan Morshead
678afe01f7
Add contributor license agreement
2023-06-14 19:52:28 -07:00
Ryan Morshead
1dcdc9c30e
Update LICENSE date
2023-06-14 13:08:24 -06:00
dependabot[bot]
8785a2ab68
Bump vite from 3.2.5 to 3.2.7 in /src/js/app ( #1005 )
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 3.2.5 to 3.2.7.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/v3.2.7/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v3.2.7/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>
2023-06-13 12:16:25 -06:00
Smit Parmar
1e3141907a
Added pre-commit hook ( #1024 )
...
* Added pre-commit hook
* Updated pre-commit hook
* New NL at EOF
---------
Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>
2023-06-13 11:07:22 -06:00
Abhiram
8120ddc228
Better Error message if no backend installed #1042 ( #1045 )
...
* Better Error message if no backend installed #1042
* change the error message as requested
* Update src/py/reactpy/reactpy/backend/default.py
Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>
* fix linting issues
* Update src/py/reactpy/reactpy/backend/default.py
Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>
* Improve readability
* Update src/py/reactpy/reactpy/backend/default.py
* make text bold
---------
Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>
2023-06-13 10:09:39 -06:00
Ryan Morshead
f559e230dc
docs fixes ( #1039 )
2023-06-10 11:22:55 -07:00
Smit Parmar
c80bc5169d
Fixed while running hatch run lint-js --fix ( #1030 )
2023-06-10 11:12:57 -07:00
danish-mehmood
81d6343f94
docs:fixed two typos inside Dangers of mutability ( #1038 )
...
Co-authored-by: danish@jedi <danish.mehmood@attech-ltd.com>
Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>
2023-06-10 11:12:37 -07:00
Juan José Cano Duque
b1a251684d
Update parameter name in starlette.py ( #1031 )
...
Looks like the configure() method has an error in the component parameter.
In the code documentation, the parameter indicates 'component' but the name is 'constructor', I've reviewed other files, and looks like the standard is 'component'.
2023-06-10 11:09:44 -07:00
Ikko Eltociear Ashimine
2962ed97f7
docs: fix typo in distributing-javascript.rst ( #1028 )
...
creat -> create
Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>
2023-06-10 11:07:59 -07:00
Sarthak Shah
e7a6b5b3e1
Update index.rst ( #1026 )
...
fixed a minor typo
Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>
2023-06-10 11:07:10 -07:00
Mark Bakhit
9c707d33f8
Unpin reactpy client version ( #1027 )
2023-06-09 14:01:08 -05:00
Smit Parmar
0a89ecb9ea
Fixed FileNotFound error while running hatch run lint-py ( #1023 )
...
* Fixed FileNotFound error while running hatch run lint-py
* Revert previous changes and add minor fix
2023-06-08 10:51:00 -06:00
Ryan Morshead
7428340b44
avoid importing backend-specific dependencies ( #1006 )
2023-06-07 12:42:06 -07:00
Christian Jensen
a6eb1dce9e
Fix the Django project URL ( #1015 )
...
There must have been a rename of the repo - this is the correct on.
Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>
2023-06-06 22:27:10 -07:00
Ryan Morshead
95524415d7
fix noqas ( #1016 )
2023-06-06 22:25:24 -07:00
Mark
09679e2d0d
Remove HR from readme ( #1013 )
2023-06-06 16:46:28 -07:00
Ryan Morshead
11732245a6
Emphasize the pip install reactpy
does not include a backend ( #1012 )
...
Saw a couple videos of poeple missing that fact when reading off the docs.
2023-06-06 16:35:05 -06:00
Ryan Morshead
309bd5a938
Create CODEOWNERS ( #1011 )
2023-06-06 11:49:22 -06:00
Ido Rot
4f5a2517e5
Update README.md ( #1009 )
2023-06-06 11:31:38 -06:00
Kian-Meng Ang
4f98dcf3a1
Fix typos ( #1007 )
...
* Fix typos
Found via:
- `codespell -S package-lock.json -L inflight,ue,falsy`
- `typos --format brief`
* fix capitalization
* fix capitalization
* fix capitalization
---------
Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>
2023-06-05 23:03:13 -07:00
Ryan Morshead
e950966b97
fix poetry docs ( #1003 )
2023-06-03 15:20:46 -07:00
Ryan Morshead
ac582666eb
Poetry+Hatch Monorepo ( #1002 )
...
* re-organize dirs + start using hatch
* setup root pyproject.toml + basic invoke tasks
* add publish task
* more ruff fixes
* get workflows to run
* split up script runs
* rename to check
* change matrix order
* make ruff happy
* get tests to pass
* check semver
* more fixes
* ignore missing coverage
* fix cov
* fix import sort
* try build in env-js
* try latest hatch-build-scripts
* misc fixes
* try to fix npm in gh action
* do not set registry url by default
* allow re-runs
* no need for extra build
* fix doc build and tests
* remove scripts
* fix tests
* update contributor guide
2023-06-03 14:56:52 -07:00
Mark
cf7950d468
Clean up readme ( #1000 )
2023-05-28 21:55:11 -07:00