use current version as default for new custom components (#3957)
This commit is contained in:
parent
d4cd512144
commit
456672149b
@ -12,7 +12,7 @@ requires-python = ">=3.8"
|
|||||||
authors = [{ name = "", email = "YOUREMAIL@domain.com" }]
|
authors = [{ name = "", email = "YOUREMAIL@domain.com" }]
|
||||||
keywords = ["reflex","reflex-custom-components"]
|
keywords = ["reflex","reflex-custom-components"]
|
||||||
|
|
||||||
dependencies = ["reflex>=0.4.2"]
|
dependencies = ["reflex>={{ reflex_version }}"]
|
||||||
|
|
||||||
classifiers = ["Development Status :: 4 - Beta"]
|
classifiers = ["Development Status :: 4 - Beta"]
|
||||||
|
|
||||||
|
@ -65,7 +65,9 @@ def _create_package_config(module_name: str, package_name: str):
|
|||||||
with open(CustomComponents.PYPROJECT_TOML, "w") as f:
|
with open(CustomComponents.PYPROJECT_TOML, "w") as f:
|
||||||
f.write(
|
f.write(
|
||||||
templates.CUSTOM_COMPONENTS_PYPROJECT_TOML.render(
|
templates.CUSTOM_COMPONENTS_PYPROJECT_TOML.render(
|
||||||
module_name=module_name, package_name=package_name
|
module_name=module_name,
|
||||||
|
package_name=package_name,
|
||||||
|
reflex_version=constants.Reflex.VERSION,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user