Skip to content

Twine have indirect Python 2 only dependency. #241

Closed
@Carreau

Description

@Carreau

Twine rely on clint which install args, which AFAICT has no published Python 3 compatible versions:

  File "/root/miniconda3/lib/python3.6/site-packages/args.py", line 394, in <module>
    flags = args.flags
  File "/root/miniconda3/lib/python3.6/site-packages/args.py", line 328, in flags
    return self.start_with('-')
  File "/root/miniconda3/lib/python3.6/site-packages/args.py", line 192, in start_with
    if _is_collection(x):
  File "/root/miniconda3/lib/python3.6/site-packages/args.py", line 37, in _is_collection
    if isinstance(obj, basestring):
NameError: name 'basestring' is not defined

Which has the side effect of breaking as soon as sphinx autolink kick in and try to figure out what blah blah `args` blah blah could mean as it import args. (numpy/numpy#9005)

It would be nice to have twine be completely Python 3 compatible.

The activity on Clint and Args make me doubt I'll get a response though, so opening issue here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions