From 7ce3161d4aee10cd1d68997cb911da80f7305950 Mon Sep 17 00:00:00 2001 From: darliro Date: Fri, 11 Oct 2024 11:31:50 +1100 Subject: [PATCH] setup Python 3.13 and enforce virtual environment creation --- .github/workflows/config.yml | 11 ++++++----- pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml index a58ce36..0b25c6b 100644 --- a/.github/workflows/config.yml +++ b/.github/workflows/config.yml @@ -13,15 +13,16 @@ jobs: # Checkout the repository - uses: actions/checkout@v3 - # Set up Python and create virtual environment - - name: Set up Python and Create Virtual Environment - run: | - python -m venv .venv - source .venv/bin/activate + # Setup Python version and create virtual environment + - name: Set up Python 3.13 + uses: actions/setup-python@v4 + with: + python-version: '3.13' # Install dependencies and Playwright browsers - name: Install dependencies and Playwright run: | + python -m venv .venv source .venv/bin/activate pip install pdm pdm install --prod --no-self --no-editable diff --git a/pyproject.toml b/pyproject.toml index c1c2f5b..563cc2f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ description = "Default template for PDM package" authors = [ {name = "darli.ro", email = "glicerinn@gmail.com"}, ] -requires-python = "==3.13.*" +requires-python = ">=3.13.*" readme = "README.md" license = {text = "MIT"}