Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ jobs:
strategy:
matrix:
os: ["ubuntu", "macos", "windows"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- run: pipx run nox -s test-${{ matrix.python-version }}

# Set up as a separate job for a very small amount of parallelism and to
Expand Down
14 changes: 9 additions & 5 deletions microvenv/_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
execute this module directly. It has its own CLI (which can be explored via
`--help`).
"""

import argparse
import os
import pathlib
Expand All @@ -17,7 +18,7 @@
_PYVENVCFG_TEMPLATE = f"""\
home = {_BASE_EXECUTABLE.parent}
include-system-site-packages = false
version = {'.'.join(map(str, sys.version_info[:3]))}
version = {".".join(map(str, sys.version_info[:3]))}
executable = {_BASE_EXECUTABLE.resolve()}
command = {{command}}
"""
Expand Down Expand Up @@ -69,11 +70,15 @@ def create(env_dir=DEFAULT_ENV_DIR, *, scm_ignore_files=frozenset(["git"])):
if lib_path.is_dir() and not lib64_path.exists():
lib64_path.symlink_to("lib", target_is_directory=True)

for executable_name in (
executable_names = [
"python",
f"python{sys.version_info.major}",
f"python{sys.version_info.major}.{sys.version_info.minor}",
):
]
if sys.version_info[:2] == (3, 14):
executable_names.append("𝜋thon")

for executable_name in executable_names:
(scripts_dir / executable_name).symlink_to(_BASE_EXECUTABLE)

if __spec__ is None:
Expand Down Expand Up @@ -114,8 +119,7 @@ def main():
default=DEFAULT_ENV_DIR,
nargs="?",
help=(
"Directory to create virtual environment in "
f"(default: {DEFAULT_ENV_DIR!r}"
f"Directory to create virtual environment in (default: {DEFAULT_ENV_DIR!r}"
),
)
args = parser.parse_args()
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import nox # type: ignore


@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"])
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"])
def test(session):
session.install(".[test]")
session.run("pytest")
Expand Down
Loading