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

Cope with *.pyc files outside __pycache__ #69

Merged
merged 1 commit into from
May 13, 2021

Conversation

nphilipp
Copy link
Contributor

@nphilipp nphilipp commented Nov 1, 2020

I hope this pull request finds you well.

PEP-3147 allows solitary *.pyc files outside of __pycache__, however importlib.source_from_cache() raises a ValueError for such files. Fall back to the Python 2.x method if that happens, i.e. strip the trailing c off the file name.

PEP-3147 allows solitary *.pyc files outside of __pycache__, however
importlib.source_from_cache() raises a ValueError for such files. Fall
back to the Python 2.x method if that happens, i.e. strip the trailing
'c' off the file name.

Signed-off-by: Nils Philippsen <nils@tiptoe.de>
@digitalresistor
Copy link
Member

With Python 3.5 and below being EOL, I would recommend updating this to Python 3.6 or higher only, and we can bump the Python versions that Hupper is compatible with.

I'd like @mmerickel's input on that suggestion though!

@nphilipp
Copy link
Contributor Author

nphilipp commented Nov 2, 2020

I'm merely an indirect consumer of hupper on a very current Python version, so personally I'm fine with it. However (and again personally), I'd hold off on that until code outside of compat makes use of features of the latest Python versions and advertises that through its requirements (right now, setup.py claims support for Python 2.7, Python >= 3.4).

@mmerickel mmerickel merged commit da2638c into Pylons:master May 13, 2021
@mmerickel
Copy link
Member

Thanks @nphilipp. Sorry for the slowness but LGTM.

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.

3 participants