Skip to content
Snippets Groups Projects
Commit b3250d29 authored by vlorentz's avatar vlorentz
Browse files

Remove dependency on swh-core.

This is a fix to workaround pip's inability to correctly solve
extra requirements (swh-model depends on swh-core[], but if other
packages depend on swh-model and swh-core[http], the 'http' extra
does not always get installed).
parent d7ec4a61
No related branches found
No related tags found
No related merge requests found
swh.core >= 0.0.60
...@@ -9,13 +9,14 @@ import sys ...@@ -9,13 +9,14 @@ import sys
from functools import partial from functools import partial
from swh.core.cli import CONTEXT_SETTINGS
from swh.model import identifiers as pids from swh.model import identifiers as pids
from swh.model.exceptions import ValidationError from swh.model.exceptions import ValidationError
from swh.model.from_disk import Content, Directory from swh.model.from_disk import Content, Directory
CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
class PidParamType(click.ParamType): class PidParamType(click.ParamType):
name = 'persistent identifier' name = 'persistent identifier'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment