When running the flet build command, an error occurs if the requirements.txt file in the project contains empty lines. This results in an ERROR: Invalid requirement: '' message, preventing the successful packaging of the Flet application.
Note: Removing all empty lines from requirements.txt allows the build to complete successfully.
Reproduction Steps
Create a Flet project with a requirements.txt file.
Add one or more empty lines between package names in requirements.txt.
last line is empty.
flet==0.23.2
Run the flet build command.
Observe the error message: ERROR: Invalid requirement: ''
Description
When running the
flet build
command, an error occurs if therequirements.txt
file in the project contains empty lines. This results in anERROR: Invalid requirement: ''
message, preventing the successful packaging of the Flet application.Note: Removing all empty lines from
requirements.txt
allows the build to complete successfully.Reproduction Steps
requirements.txt
file.requirements.txt
.last line is empty.
flet build
command.ERROR: Invalid requirement: ''