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

Updated yaml code to support 5.1 #35

Merged
merged 1 commit into from
Dec 12, 2019
Merged

Conversation

muhrin
Copy link
Collaborator

@muhrin muhrin commented Dec 10, 2019

Had to pin prospector at <1.1.7 which has problems with pylint, see:
pylint-dev/pylint-plugin-utils#12

Also took opportunity to up pika to 1.0 and above.

'Programming Language :: Python :: 3.7',
],
keywords='communication messaging rpc broadcast',
install_requires=[
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While we're at it, do you want to specify python_requires here? This allows pip to install the correct version once support for a specific Python version is dropped (but needs to be in a release before it is dropped).

See e.g.: aiidateam/aiida-core#3574

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -18,4 +18,4 @@
TASK_PREFETCH_COUNT = 0

ENCODER = partial(yaml.dump, encoding='utf-8')
DECODER = yaml.load
DECODER = lambda _: yaml.load(_, Loader=yaml.Loader)
Copy link
Member

@greschd greschd Dec 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the value of _ is actually used, maybe it should be named? Keeping with the naming from pyyaml, it would be lambda stream: yaml.load(stream, Loader=yaml.Loader).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or better yet, same as above: partial(yaml.load, Loader=yaml.Loader). Totally bike-shedding here though, feel free to merge whenever.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, yes, talk about not looking at the line above!

greschd
greschd previously approved these changes Dec 10, 2019
@@ -18,4 +18,4 @@
TASK_PREFETCH_COUNT = 0

ENCODER = partial(yaml.dump, encoding='utf-8')
DECODER = yaml.load
DECODER = lambda _: yaml.load(_, Loader=yaml.Loader)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or better yet, same as above: partial(yaml.load, Loader=yaml.Loader). Totally bike-shedding here though, feel free to merge whenever.

@muhrin muhrin force-pushed the yaml-update branch 2 times, most recently from 21e7344 to e711a2f Compare December 10, 2019 15:55
Had to pin prospector at <1.1.7 which has problems with pylint, see:
pylint-dev/pylint-plugin-utils#12

Also took opportunity to up pika to 1.0 and above.
@muhrin muhrin requested a review from greschd December 10, 2019 17:19
Copy link
Member

@greschd greschd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR'ing all the way up!

@muhrin muhrin requested a review from greschd December 11, 2019 17:56
@muhrin muhrin merged commit f59447d into aiidateam:develop Dec 12, 2019
@muhrin muhrin deleted the yaml-update branch April 18, 2020 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants