Skip to content

Make torrequest (and other deps) optional #2130

Closed
@mjsir911

Description

@mjsir911

Checklist

  • I'm reporting a feature request
  • I've checked for similar feature requests including closed ones

Description

Hi,

It would be cool if sherlock.py was modified a bit to not require the torrequest import if I have no interest in downloading via tor, preferably deferring to importing when it's actually needed or maybe wrapping in an exception handler and/or stubbing out.

Considering tor downloading won't work anyways without tor actually installed, shedding off an additional dependency (or two, I can't find stem being imported anywhere but it seems related) would be nice. The motivation behind this is torrequest and stem aren't currently packaged in gentoo's tree but all the other deps are.

In the same vein, exrex is only used within the tests but is pulled in the dependency list even for end-user installs. Moving this out to test-depends or something (I know python has this functionality, forget the name) would make sense.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions