Python dependencies declaration in many places: package.xml, pyproject.toml, requirements.txt
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by tracing AddonManager's handling of package.xml and requirements.txt, then inspect addon_catalog_cache.json generation. Review the cited pyproject.toml and metadata.txt usage across the indexed Addons. Done requires an agreed declaration and migration approach, including how existing FreeCAD-specific metadata is represented during the transition.
Written by the indexing model from the issue text.
Description
Currently AddonManager installs pip dependencies declared by Addons in the package.xml file, but there are also some Addons (7 in the current index) that uses requirements.txt, and modern Addons that uses pyproject.toml to declare them (few but increasing as it is the standard project metadata for python since PEP621 in 2020 )
- Do we want to move to
pyproject.toml? pyproject.tomlcan be used also for all the metadata included inpackage.xml, currently there is a lot of duplication.
There are also about 18 Addons in the current index that have a metadata.txt file with INI format. But AFAIK this not used at all in current AddonManager.
Migration from package.xml to pyproject.toml can be automated during addon_catalog_cache.json generation (Server side of AddonManager) during transition.
All of the FreeCAD specific sections present in package.xml can be expressed in pyproject.toml as it supports arbitrary sections under tools table.
- Dominant language
- Python
- Stars
- 24
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from FreeCAD/AddonManager
-
Difficulty 3/5 1-2 days Newbie friendliness 56/100
FreeCAD/AddonManager#534 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
FreeCAD/AddonManager#532 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 22/100
FreeCAD/AddonManager#529 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
FreeCAD/AddonManager#528 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
FreeCAD/AddonManager#527 · 1 comment ·
All issues in FreeCAD/AddonManager
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
hugohe3/ppt-master#366 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 89/100
Maintainers usually reply within 2 days
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
521xueweihan/HelloGitHub#4716 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
pcqpcq/open-source-android-apps#619 ·
Maintainers usually reply within 1 day
-
contribution Windows 主机
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Lee-xeo/Claude-Cage#1519 ·
Maintainers usually reply within 1 day