Skip to content

Commit

Permalink
Bump min support Python to 3.10
Browse files Browse the repository at this point in the history
Follows numpy 2.1 requiring >= 3.10,
  • Loading branch information
maread99 committed Sep 22, 2024
1 parent 6447b47 commit 27cde38
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions etc/requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 2 additions & 6 deletions etc/requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 1 addition & 5 deletions etc/requirements_minpandas.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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']

0 comments on commit 27cde38

Please sign in to comment.