From ad5e978989fe4620a355163168006ea4726cb489 Mon Sep 17 00:00:00 2001 From: TomeHirata Date: Mon, 22 Jul 2024 22:10:03 +0900 Subject: [PATCH] feat: update supported Python version --- .github/workflows/build.yml | 11 +++++++---- .github/workflows/publish.yml | 2 +- Pipfile | 2 +- pyproject.toml | 6 ++++-- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 86b5e49..dd55c73 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,16 +8,19 @@ on: jobs: lint-and-test: - runs-on: ubuntu-latest - + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + python-version: ['3.10', '3.11', '3.12'] + runs-on: ${{ matrix.os }} steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up Python + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: - python-version: '3.11' + python-version: ${{ matrix.python-version }} - name: Install pipenv run: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fcb3c17..f7cb585 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.11' - name: Install dependencies run: | diff --git a/Pipfile b/Pipfile index 10220b9..ed1ad77 100644 --- a/Pipfile +++ b/Pipfile @@ -14,7 +14,7 @@ ruff = "~=0.4.9" sphinx = "~=7.3.7" [requires] -python_version = "3.11" +python_version = "3" [scripts] format = "ruff format" diff --git a/pyproject.toml b/pyproject.toml index afb3c30..14c1202 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,10 +7,12 @@ name = "dte_adj" version = "0.1.1" description = "This is a Python library for a research paper 'Estimating Distributional Treatment Effects in Randomized Experiments: Machine Learning for Variance Reduction'" readme = "README.md" -requires-python = ">=3.6" -license = {text = "MIT"} +requires-python = ">=3.10" +license = { file = "LICENSE.txt" } classifiers = [ "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent" ]