Skip to content

Feature: Support standard pyproject.toml dependency formats in flet build #5724

@karim-moon

Description

@karim-moon

Duplicate Check

Describe the requested feature

When running flet build, the build process fails to correctly parse dependencies specified in pyproject.toml in several scenarios:

  1. List format dependencies cause errors
    e.g.
    torch = [
  { version = ">=2.7.0", platform = "linux", markers = "extra == 'cuda'"}, 
  { version = ">=2.7.0", platform = "linux", markers = "extra != 'cuda'"},
  { version = ">=2.7.0", platform = "darwin"},
  { version = ">=2.7.0", platform = "win32"},
]

  1. Private PyPI repositories are not supported
    e.g.
some_dep = { version = ">=0.1.6", source = "private-pypi" }
[[tool.poetry.source]]
name = "private-pypi"
url = "{private pypi url}/pypi/pypi/simple"
  1. Wildcard versioning (*) causes failures

  2. Are there any plans to address these issues in an upcoming release?

  3. In the meantime, are there any alternative workarounds we could use besides the simple string version specification approach?

Suggest a solution

No response

Screenshots

No response

Additional details

No response

Metadata

Metadata

Assignees

Labels

feature requestSuggestion/Request for additional feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions