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

Add Python 3.11 to GHA #590

Merged
merged 1 commit into from Dec 8, 2022
Merged

Add Python 3.11 to GHA #590

merged 1 commit into from Dec 8, 2022

Conversation

gliptak
Copy link
Contributor

@gliptak gliptak commented Dec 6, 2022

Signed-off-by: Gábor Lipták gliptak@gmail.com

@gliptak
Copy link
Contributor Author

gliptak commented Dec 6, 2022

PyCQA/flake8#1751

@cjmayo
Copy link

cjmayo commented Dec 7, 2022

PyCQA/flake8#1751

Same problem, but looks like flake8-quotes here.

zheller/flake8-quotes#110

Maybe pinning flake8 is the best option.

flake8 \

@gliptak
Copy link
Contributor Author

gliptak commented Dec 7, 2022

The conflict is caused by:
    flake8 5.0.4 depends on pyflakes<2.6.0 and >=2.5.0
    autoflake 2.0.0 depends on pyflakes>=3.0.0

Signed-off-by: Gábor Lipták <gliptak@gmail.com>
Comment on lines +3 to 5
# $ make install PYTHON=python3.7

PYTHON = python3
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Owner

Choose a reason for hiding this comment

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

Linked doc says:

If you’d like a variable to be set to a value only if it’s not already set, then you can use the shorthand operator ‘?=’ instead of ‘=’.

PYTHON is already set, so there's no need to use ?=

Copy link
Contributor

Choose a reason for hiding this comment

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

Ahh, true. I just did a test with this Makefile:

PYTHON = python3
MYTHON ?= python3

.PHONY: test

test:
	@echo "PYTHON is set to $(PYTHON)"
	@echo "MYTHON is set to $(MYTHON)"

which gives these results:

$ make test PYTHON=python3.8 MYTHON=python3.8
PYTHON is set to python3.8
MYTHON is set to python3.8
$ PYTHON=python3.8 MYTHON=python3.8 make test
PYTHON is set to python3
MYTHON is set to python3.8

so this was just a gap in my understanding of Makefile variables. Sorry!

@giampaolo
Copy link
Owner

Merging. Thanks.

@giampaolo giampaolo merged commit a674ac8 into giampaolo:master Dec 8, 2022
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.

None yet

4 participants