Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auditwheel should warn on invalid versions, e.g. dev #108

Open
safijari opened this issue Oct 18, 2018 · 6 comments
Open

Auditwheel should warn on invalid versions, e.g. dev #108

safijari opened this issue Oct 18, 2018 · 6 comments

Comments

@safijari
Copy link

dev was just a special case, from what I can tell if the x.y.z kind of string isn't present I'll get:

> auditwheel repair pyapriltags_eth-dev-cp27-cp27mu-linux_x86_64.whl

.
.
.

Grafting: /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25 -> .libsapriltags_eth/libstdc++-637c843a.so.6.0.25
Grafting: /lib/x86_64-linux-gnu/libm-2.27.so -> .libsapriltags_eth/libm-2-24310d2a.27.so
Setting RPATH: apriltags_eth.so to "$ORIGIN/.libsapriltags_eth"
Traceback (most recent call last):
  File "/home/jari/.local/share/virtualenvs/auditwheel_pipenv-zl3561H8/bin/auditwheel", line 11, in <module>
    sys.exit(main())
  File "/home/jari/.local/share/virtualenvs/auditwheel_pipenv-zl3561H8/lib/python3.6/site-packages/auditwheel/main.py", line 49, in main
    rval = args.func(args, p)
  File "/home/jari/.local/share/virtualenvs/auditwheel_pipenv-zl3561H8/lib/python3.6/site-packages/auditwheel/main_repair.py", line 81, in execute
    update_tags=args.UPDATE_TAGS)
  File "/home/jari/.local/share/virtualenvs/auditwheel_pipenv-zl3561H8/lib/python3.6/site-packages/auditwheel/repair.py", line 98, in repair_wheel
    get_replace_platforms(abi))
  File "/home/jari/.local/share/virtualenvs/auditwheel_pipenv-zl3561H8/lib/python3.6/site-packages/auditwheel/wheeltools.py", line 202, in add_platforms
    fparts = parsed_fname.groupdict()
AttributeError: 'NoneType' object has no attribute 'groupdict'

Is this known? Intended? I can get still get away by doing something like 0.0.1-dev but still.

@matthew-brett
Copy link
Contributor

matthew-brett commented Oct 18, 2018 via email

@safijari
Copy link
Author

safijari commented Oct 18, 2018 via email

@matthew-brett
Copy link
Contributor

matthew-brett commented Oct 18, 2018 via email

@safijari
Copy link
Author

safijari commented Oct 18, 2018 via email

@matthew-brett
Copy link
Contributor

Yes, a better error would be good. Would you consider doing a PR to put one in? I guess it's just a check for None, in parsed_fname, maybe in the add_platforms routine.

@njsmith
Copy link
Member

njsmith commented Oct 18, 2018

Btw version numbers are supposed to follow the format given in PEP 440: https://www.python.org/dev/peps/pep-0440/

@ehashman ehashman added the bug label Oct 27, 2018
@ehashman ehashman changed the title Auditwheel breaks when package version is dev Auditwheel should warn on invalid versions, e.g. dev Oct 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants