Skip to content

Commit

Permalink
ci: test with python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
delfick committed Jan 16, 2024
1 parent 81c358b commit aa88f3b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"

- name: Install deps
shell: bash
Expand All @@ -32,7 +32,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"

- name: Install deps
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"

- id: build
run: pip install hatch==1.6.3 && hatch build
Expand Down
8 changes: 5 additions & 3 deletions tools/bootstrap_venvstarter.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,24 @@
deps_dir.mkdir()

if not (deps_dir / "venvstarter.py").exists():
if "PIP_REQUIRE_VIRTUALENV" in os.environ:
del os.environ["PIP_REQUIRE_VIRTUALENV"]
os.system(f"{sys.executable} -m pip install venvstarter -t {deps_dir}")

venvstarter_module = runpy.run_path(str(deps_dir / "venvstarter.py"))

wanted_version = "0.11.0"
wanted_version = "0.12.1"

upgrade = False
VERSION = venvstarter_module.get("VERSION")
if VERSION is None:
upgrade = True
else:
Version = venvstarter_module["Version"]
if Version(wanted_version) < Version(VERSION):
if Version(VERSION) != Version(wanted_version):
upgrade = True

if upgrade:
os.system(f"{sys.executable} -m pip install 'venvstarter>={wanted_version}' -t {deps_dir}")
os.system(f"{sys.executable} -m pip install -U 'venvstarter=={wanted_version}' -t {deps_dir}")

manager = runpy.run_path(str(deps_dir / "venvstarter.py"))["manager"]
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py36,py37,py38,py39,py310,py311
envlist = py36,py37,py38,py39,py310,py311,py312

[testenv]
allowlist_externals = ./test.sh
Expand Down

0 comments on commit aa88f3b

Please sign in to comment.