-
-
Notifications
You must be signed in to change notification settings - Fork 581
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
Update setup.py syntax for pipenv (bug) compliancy #394
Update setup.py syntax for pipenv (bug) compliancy #394
Conversation
setup.py
Outdated
@@ -24,8 +24,7 @@ | |||
] | |||
|
|||
extras_require = { | |||
"format": ["rfc3987", "strict-rfc3339", "webcolors"], | |||
":python_version=='2.7'": ["functools32"], | |||
"format": ["rfc3987", "strict-rfc3339", "webcolors"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering if we can move everything out of extra_require
but I could not find in any documentation the proper syntax for this format
key.
Any hint?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don’t think so. The format
key is using extras_require
as it is originally designed to do, i.e. support the package[extra]
installation syntax. There are no alternatives to this feature. extras_require
itself is not obsolete, only using it for environment markers is.
Hey! Looks like the build is failing, could you have a look to see if that's relevant? Otherwise seems reasonable thanks! |
Hi Julian, the build is failing in the doc generation, I'm not sure how to fix a.t.m. EDIT: these tests are also failing to me on branch master. I must be missing some tooling.
I can have a look at it, though Stacktrace:
|
ok @Julian I've had some playtime digging the issue here. First I had to install a couple of packages to reproduce the TravisCI results. Then after some trial-and-error I've discovered that the IMO these failures have nothing to do with this patch (aside this: 8ae6e6f). If you wish, I can prepare another small pr to update the documentation (clearing up package requirements for
with this patch, all the tests pass (tested locally, not committed yet). Let me know your thoughts on the matter :) |
Hey! Thanks so much for having a look. That fix strikes me like hiding the problem rather than a fix though -- sphinx should have no problem finding those two objects, so something is up... And yeah nitpick mode is basically the only way to get Sphinx to do normal things, otherwise it's way too lenient about errors and will render total nonsense into its output without anyone noticing... But it definitely doesn't look related to this change, so if you don't see anything else I'm happy to merge and jump down the rabbit hole myself. Thanks again! It definitely does not |
See #394 (comment) which goes away when downgrading. I've also just had the fun manually verifying the objects.inv for both of those versions correctly contain the object we reference. Hooray...
OK, pretty sure I've tracked this down to some sort of Sphinx 1.7 bug, but I have no more energy to find it specifically. Merged though! Thanks for the PR! |
You beat me for one second. After sweat and tears and a lot of trial-and-error I reached the same results :-) Yes, you need to pin I am pushing to a test repo to submit a POC to the Sphinx maintainers. |
Hah awesome, nice work! Clearly more energy than I have :) |
86f52b87 Fix a clear copy-paste error in the case names for tests from #394. ec18a7d0 Merge pull request #360 from notEthan/duplicate_uris cd9a4b9d change schemas with duplicate URIs http://localhost:1234/folder/ 43e190e0 Merge pull request #394 from rjmill/rjmill/bools-and-1s-and-0s-inside-objects-and-arrays 85f0d459 Merge pull request #419 from ChALkeR/chalker/format-uri 54436216 Merge pull request #420 from ChALkeR/chalker/format/ip6 ad47b726 Add long valid and invalid ipv6 b2ab70ec More optional ipv6 tests 37189ae6 Test that uri format scheme is validated for allowed chars 2106ed17 backport uniqueItems cases to draft3 49fc2a95 backport const test cases to draft6 79fe60c0 more tests for true != 1 and false != 0 inside objects/arrays git-subtree-dir: json git-subtree-split: 86f52b87e3d572b8f808dd074a6b95c3695ba992
Hi,
I'm using your library (cool, thanks!) and I'm migrating my project to using pipenv instead of pip.
Pipenv has a bug that prevents to correctly parse the old
extra_requires
syntax. Apparently this syntax is old and superseded byinstall_requires
.In short, what happens is that in my py3 virtualenv, pipenv wrongly installs
functools32
and that breaks the whole package installation process.This patch allows me to use
jsonschema
in my project migrated to pipenv.I'd be happy to have your opinion on this small patch, thanks!