Are optional dependencies really optional?
See original GitHub issueThis is probably related to #88.
It seems to me that if you want to use spidermon with Scrapy you need to use spidermon.contrib.scrapy.extensions.Spidermon
. That requires at least jsonschema
(imported via spidermon.python.factory
) from the optional validation
feature. On the other hand, the contents of the optional monitoring
feature look important for any spidermon usage. Are there real use cases where one or both optional features can be skipped?
Disclaimer: I’m not familiar with optional installation features that much, as most modules I’ve used don’t use them.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
What Are NPM's Optional Dependencies and When Should ...
Finally, optionalDependencies are dependencies that don't necessarily need to be installed. If a dependency can be used, but you would like npm ...
Read more >What are Optional Dependencies and when should we use them
What are Optional Dependencies? Dependencies are libraries on which a project depends to function properly. The term optional dependencies ...
Read more >Maven – Optional Dependencies and Dependency Exclusions
This section discusses optional dependencies and dependency exclusions. This will help users to understand what they are and when and how to use...
Read more >What is an "optional" dependency as distinguished from a ...
Optional dependencies are not optional for your project, but when another project depends on your project, these now transitive dependencies ...
Read more >Optional dependencies are not optional - The Gradle Blog
Conclusion. In this blog post, we've highlighted that: Optional dependencies are not optional: they are always required if you use a specific ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Or we can fix the problem by optionally import the
jsonschema
. IMHO I can see Spidermon being used without the validation, but doesn’t make sense if an error raises if you don’t install itFWIW I’m getting an exception since it seems like jsonschema gets imported when using the extension:
I’m not using the item validation tools in this project, just item count/error count monitors.