Skip to content

Commit

Permalink
Drop support for EOL Python 3.6 and 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Sep 15, 2023
1 parent 983ef11 commit 37f68c7
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: ">= 3.6"
python-version: ">= 3.8"

- name: deps
run: python -m pip install -U build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: ["macos-latest", "windows-latest", "ubuntu-latest"]

steps:
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ classifiers = [
"Environment :: Web Environment",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand All @@ -35,7 +33,7 @@ classifiers = [
]
keywords = ["requests", "http", "caching", "web"]
dependencies = ["requests >= 2.16.0", "msgpack >= 0.5.2, < 2.0.0"]
requires-python = ">=3.7"
requires-python = ">=3.8"

[project.urls]
Homepage = "https://pypi.org/project/CacheControl/"
Expand Down
4 changes: 0 additions & 4 deletions tests/test_regressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#
# SPDX-License-Identifier: Apache-2.0

import sys
import pytest


Expand All @@ -14,9 +13,6 @@

class Test39:

@pytest.mark.skipif(
sys.version.startswith("2"), reason="Only run this for python 3.x"
)
def test_file_cache_recognizes_consumed_file_handle(self, url):
s = CacheControl(Session(), FileCache("web_cache"))
the_url = url + "cache_60"
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@

[tox]
isolated_build = True
envlist = py{36,37,38,39,310,311,312}, mypy
envlist = py{38,39,310,311,312}, mypy

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310, mypy
Expand Down

0 comments on commit 37f68c7

Please sign in to comment.