Skip to content
This repository was archived by the owner on Dec 12, 2023. It is now read-only.

Enable Python 3.7, 3.8 support#93

Merged
KelSolaar merged 1 commit intogtaylor:masterfrom
MartyMacGyver:mff-upgrade-python
Oct 31, 2019
Merged

Enable Python 3.7, 3.8 support#93
KelSolaar merged 1 commit intogtaylor:masterfrom
MartyMacGyver:mff-upgrade-python

Conversation

@MartyMacGyver
Copy link
Copy Markdown
Contributor

Small changes were made to support 3.8 escaping deprecations whilst maintaining backward compatibility.

@MartyMacGyver
Copy link
Copy Markdown
Contributor Author

Oh... I see this is unmaintained now (the docs didn't mention that). However, I see merge activity since then as well. Is this truly defunct?

Comment thread colormath/color_appearance_models.py Outdated

def __init__(self, x, y, z, x_0, y_0, z_0, y_0_abs, k_1, k_2, sigma=300):
"""
r"""
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Any reason for using raw strings over escaping the slashes?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Specifically because I'm not sure how the documentation parser would deal with that, so I erred on the side of caution. I'd prefer to escape the slashes...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

sphinx.ext.autodoc imports modules to be documented (see warning at the very top of the page), so it's Python parser we're dealing with. Using escape slashes to fix SyntaxWarning should be safe here.

Copy link
Copy Markdown
Contributor Author

@MartyMacGyver MartyMacGyver Oct 31, 2019

Choose a reason for hiding this comment

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

A bit belated, but I've made the update as discussed.

(In both places it appeared.)

@KelSolaar
Copy link
Copy Markdown
Collaborator

Is this truly defunct?

Nope! I'm trying to maintain the repo although I'm on a trip thus limited connection.

@MartyMacGyver MartyMacGyver force-pushed the mff-upgrade-python branch 2 times, most recently from 3839ea7 to f226cd3 Compare October 31, 2019 06:08
@MartyMacGyver
Copy link
Copy Markdown
Contributor Author

MartyMacGyver commented Oct 31, 2019

OK, I fixed the problem above, rebased, enabled 3.8 (not just 3.8-dev as it was previously).

@KelSolaar
Copy link
Copy Markdown
Collaborator

Thanks LGTM!

@KelSolaar KelSolaar merged commit ab6c365 into gtaylor:master Oct 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants