use current version as default for new custom components (#3957)

This commit is contained in:
Thomas Brandého 2024-09-20 04:08:23 +02:00 committed by GitHub
parent d4cd512144
commit 456672149b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -12,7 +12,7 @@ requires-python = ">=3.8"
authors = [{ name = "", email = "YOUREMAIL@domain.com" }]
keywords = ["reflex","reflex-custom-components"]
dependencies = ["reflex>=0.4.2"]
dependencies = ["reflex>={{ reflex_version }}"]
classifiers = ["Development Status :: 4 - Beta"]

View File

@ -65,7 +65,9 @@ def _create_package_config(module_name: str, package_name: str):
with open(CustomComponents.PYPROJECT_TOML, "w") as f:
f.write(
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,
)
)