-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
empty version (or project (?)) cause regex matching crash #85
Comments
Never thought anybody'd build docs without a version! You're right, that regex for If Sphinx allows an empty Thanks for reporting this! I'll get a bugfix update out as soon as I can. |
On a quick test, it looks like Sphinx automatically sets
I'll have to fix both! |
Hehehehe. Bugs like this are kind of fun though, I had no idea sphinx defaulted to |
I haz a uzer! 😲 😃 In retrospect, I should probably have picked a name that was easier to pronounce.....
Yep, the fix was pretty much as simple as you indicated, changing to Of course, updating my virtual environment to run the tests revealed that one of my other projects, which is a testing dependency of sphobjinv, is incompatible with attrs v18.2, due to some change in how attrs handles |
Blacken, adding helper scripts. Closes #86. Switch Travis from flake8 check to black check. Improve the filtering in the 'scripts:' section for the things only to do on 3.6 (black check, doctest, codecov). Due to stdio-mgr blowing up on attrs>=18.1, needed to add a pip --force-reinstall to ensure attrs is downgraded. (Appears that Travis envs come with attrs==latest by default?) Adjust project and version regexes to allow empty fields. Add dummy inventories to the test resources to ensure they get handled ok. Closes #85.
Keep an eye out for a |
v2.0.1rc1 is published, @svenevs |
Apologies for this fix sitting on |
Found what I think is a bug in the header parsing. This project commented out their version number resulting in an empty
Version
in the header to theobjects.inv
:If you do it directly, you get information that seems to mean that you assume
Version
andProject
actually have values after them (and apparently they don't need to):I think you want to change
.+
to be.*
?sphobjinv/sphobjinv/re.py
Line 42 in 11db748
sphobjinv/sphobjinv/re.py
Line 51 in 11db748
And then it will return you empty strings?
The text was updated successfully, but these errors were encountered: