Skip to content

flet build fails to parse file and git dependencies from tool.poetry.dependencies in pyproject.toml #4547

Closed
@FeodorFitsner

Description

@FeodorFitsner

Discussed in #4546

Originally posted by amcraig December 11, 2024

Question

Hi all,
I've tried including my python package(not on PyPi) through both relative paths to the whl/tar.gz and via git in both requirements.txt and in pyproject.toml (including poetry) but any attempts I do fail due to a distutils Module not found error or KeyError: 'version'.

Does anyone have a guaranteed way to provide a local/private python package to Flet in the build process?
Thanks!

Code sample

##### Pyproject Poetry 
[tool.poetry]
name = "file_tracker"
version = "0.5.0"
description = "redacted"
authors = ["amcraig"]

[tool.poetry.dependencies]
python = "^3.10"
private_package = { git = "https://github.com/private/package.git" }
flet = "^0.25.1"

##### requirements.txt
python==3.10
flet
datateam @ git+https://github.com/private/package

Error message

No response

------------------------------------------------------

  • I have searched for answers to my question both in the issues and in previous discussions.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpackagingRelated to app packaging

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions