From 27cde3828efc43f10e5441d7d28621ca996f800a Mon Sep 17 00:00:00 2001 From: Marcus Read Date: Sun, 22 Sep 2024 09:58:07 +0100 Subject: [PATCH] Bump min support Python to 3.10 Follows numpy 2.1 requiring >= 3.10, --- .github/workflows/benchmark.yml | 2 +- .github/workflows/main.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- etc/requirements.txt | 4 ++-- etc/requirements_dev.txt | 8 ++------ etc/requirements_minpandas.txt | 6 +----- pyproject.toml | 5 ++--- 7 files changed, 12 insertions(+), 21 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 701d7c66..dc5d524f 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Install dependencies run: | pip install -e .[dev] -c etc/requirements_dev.txt diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8e58c196..7330c44f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,9 +16,9 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ["3.9", "3.12"] + python-version: ["3.10", "3.12"] include: - - python-version: "3.9" + - python-version: "3.10" requirements_file: requirements_dev.txt - python-version: "3.12" requirements_file: requirements_minpandas.txt diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6879f952..c0d09f80 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,10 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Set up Python 3.11 + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Install build dependencies run: | diff --git a/etc/requirements.txt b/etc/requirements.txt index 80257e56..eabb8c6f 100644 --- a/etc/requirements.txt +++ b/etc/requirements.txt @@ -1,12 +1,12 @@ # -# This file is autogenerated by pip-compile with Python 3.9 +# This file is autogenerated by pip-compile with Python 3.10 # by the following command: # # pip-compile --output-file=etc/requirements.txt pyproject.toml # korean-lunar-calendar==0.3.1 # via exchange_calendars (pyproject.toml) -numpy==2.0.2 +numpy==2.1.1 # via # exchange_calendars (pyproject.toml) # pandas diff --git a/etc/requirements_dev.txt b/etc/requirements_dev.txt index edac9b22..020286dd 100644 --- a/etc/requirements_dev.txt +++ b/etc/requirements_dev.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.9 +# This file is autogenerated by pip-compile with Python 3.10 # by the following command: # # pip-compile --extra=dev --output-file=etc/requirements_dev.txt pyproject.toml @@ -25,15 +25,13 @@ flake8==7.1.1 # via exchange_calendars (pyproject.toml) hypothesis==6.112.1 # via exchange_calendars (pyproject.toml) -importlib-metadata==8.5.0 - # via build iniconfig==2.0.0 # via pytest korean-lunar-calendar==0.3.1 # via exchange_calendars (pyproject.toml) mccabe==0.7.0 # via flake8 -numpy==2.0.2 +numpy==2.1.1 # via # exchange_calendars (pyproject.toml) # pandas @@ -89,8 +87,6 @@ tzdata==2024.1 # pandas wheel==0.44.0 # via pip-tools -zipp==3.20.2 - # via importlib-metadata # The following packages are considered to be unsafe in a requirements file: # pip diff --git a/etc/requirements_minpandas.txt b/etc/requirements_minpandas.txt index deca9587..2ffa1aa4 100644 --- a/etc/requirements_minpandas.txt +++ b/etc/requirements_minpandas.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.9 +# This file is autogenerated by pip-compile with Python 3.10 # by the following command: # # pip-compile --extra=dev --output-file=etc/requirements_minpandas.txt pyproject.toml @@ -29,8 +29,6 @@ flake8==7.1.1 # via exchange_calendars (pyproject.toml) hypothesis==6.112.1 # via exchange_calendars (pyproject.toml) -importlib-metadata==8.5.0 - # via build iniconfig==2.0.0 # via pytest korean-lunar-calendar==0.3.1 @@ -91,8 +89,6 @@ tzdata==2024.1 # via exchange_calendars (pyproject.toml) wheel==0.44.0 # via pip-tools -zipp==3.20.2 - # via importlib-metadata # The following packages are considered to be unsafe in a requirements file: # pip diff --git a/pyproject.toml b/pyproject.toml index 9bd7388c..ec571d74 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,12 +12,11 @@ authors = [ readme = "README.md" license = {file = "LICENSE"} keywords = ["finance", "security", "calendar", "exchange"] -requires-python = "~=3.9" +requires-python = "~=3.10" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", @@ -64,4 +63,4 @@ write_to = "exchange_calendars/_version.py" [tool.black] line-length = 88 -target-version = ['py39', 'py310', 'py311', 'py312'] +target-version = ['py310', 'py311', 'py312']