-
Notifications
You must be signed in to change notification settings - Fork 167
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
Removes the usage of conda._vendor.toolz
from constructor
#525
Conversation
The test coverage in this repository is pretty low, so I would not rely on the tests passing as the best way to determine this is ready to be merged. Does anyone know of another way we could test out the changes to make sure they haven't broken anything? |
I guess we could figure out the right commands manually every time to test any changes 😱 But this isn't sustainable, and it's also limited to one OS, etc... The best way forward I think would be to improve the tests:
|
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.
As my comments suggest I'm clearly not a fan of copying code 😄
conda._vendor.toolz
from constructor
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.
Oops! Sorry for not paying more attention and suggesting these changes during the last review. Most of these itertools
use cases actually seem unnecessary and can be replaced with arg unpacking and list-comprehensions.
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.
Noice!
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.
Just removing two unused imports
This commit attempts to replace the usage of toolz in the main conda project. In an upcoming conda, release this will be completely removed.
Co-authored-by: Ken Odegard <kodegard@anaconda.com>
dfb1b02
to
beaa8d7
Compare
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.
👍
This pull request replaces the usage of
toolz
in the main conda project. In an upcomingconda
, release this will be completely removed.I chose to completely copy over the code from the
toolz
repository into this one. It now lives in the top leveltoolz.py
file. I also ignored the Python 2 compatibility code that was still in theconda
version and instead updated based on the most recenttoolz
version.It should also be noted that the
get
function being imported fromconda._vendor.toolz
was not being used and was not ported over.See this issue for more information: conda/conda#11333