Skip to content

Commit

Permalink
Increase minimum version of Python to 3.9 (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt authored Nov 15, 2024
1 parent 4024603 commit 97ec1ec
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.12", "3.8" ]
python-version: [ "3.12", "3.9" ]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.12", "3.8" ]
python-version: [ "3.12", "3.9" ]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -55,7 +55,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta:__legacy__"

[tool.black]
line-length = 100
target-version = ["py38", "py39", "py310", "py311", "py312"]
target-version = ["py39", "py310", "py311", "py312"]

[tool.isort]
profile = "black"
Expand Down
4 changes: 1 addition & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ classifiers =
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Expand All @@ -44,13 +43,12 @@ keywords =

[options]
install_requires =
pickle5; python_version < "3.8"
click
requests
tqdm

zip_safe = false
python_requires = >=3.7
python_requires = >=3.9

# Where is my code
packages = find:
Expand Down
6 changes: 1 addition & 5 deletions src/pystow/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import functools
import json
import logging
import pickle
from abc import ABC, abstractmethod
from pathlib import Path
from typing import (
Expand All @@ -21,11 +22,6 @@
cast,
)

try:
import pickle5 as pickle
except ImportError:
import pickle

if TYPE_CHECKING:
import pandas as pd

Expand Down

0 comments on commit 97ec1ec

Please sign in to comment.