collective / collective/templer.dexterity

Local commands broken by external dependencies in setup.py

Open
#4 6 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

When attempting to run local commands on a freshly created dexterity package (say for creating a new dexterity content type in the new package), I get the following error:

```
pkg_resources.DistributionNotFound: plone.namedfile[blobs]: Not Found for: my.package (did you run python setup.py develop?)
```

This generally happens because the named package is not currently available to Paste in the context of the current working set.

I'm not completely clear on how to deal with this. The dependency on plone.namedfile[blobs] is declared in the setup.py of the template. Is this a hard dependency for all dexterity content types? Is there some way we might remove this?

Contributor guide

No contributing guide indexed for this repository

Research direction

Read the generated package's setup.py and reproduce a local Paste command in a freshly created Dexterity package, checking the working set and the effect of running python setup.py develop. Determine whether plone.namedfile[blobs] is required for all generated content types or whether the template can avoid it, then verify that local commands no longer raise DistributionNotFound.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.