Skip to content

Commit

Permalink
Makefile: Add Python 3.11 (#876)
Browse files Browse the repository at this point in the history
* Makefile: Add Python 3.11

https://docs.python.org/3.11/whatsnew/3.11.html

* Update python-tests.yaml

* Update releases.py
  • Loading branch information
cclauss authored Nov 23, 2022
1 parent 62cb7ec commit 77b87ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/python-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Python tests

on: [ push ]
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export POETRY_HOME=$(CURDIR)/.poetry
POETRY:=$(POETRY_HOME)/bin/poetry
POETRY_VENVS=$(POETRY_HOME)/virtualenvs
POETRY_DEPS:=$(POETRY_VENVS)/.deps
SYS_PYTHON:=$(shell env PATH='/bin:/usr/bin:/usr/local/bin:$(PATH)' bash -c "command -v python3.10 || command -v python3.9 || echo .python-not-found")
SYS_PYTHON:=$(shell env PATH='/bin:/usr/bin:/usr/local/bin:$(PATH)' bash -c "command -v python3.11 || command -v python3.10 || command -v python3.9 || echo .python-not-found")
export PYTHONPATH=$(CURDIR)/bin

.PHONY: help
Expand Down
2 changes: 1 addition & 1 deletion bin/lib/releases.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __str__(self) -> str:


class VersionSource(Enum):
value: Tuple[int, str]
value: Tuple[int, str] # type: ignore[assignment]
TRAVIS = (0, "tr")
GITHUB = (1, "gh")

Expand Down

0 comments on commit 77b87ce

Please sign in to comment.