Skip to content

Commit

Permalink
Drop Python 3.8
Browse files Browse the repository at this point in the history
It is EOL.
  • Loading branch information
manthey committed Nov 13, 2024
1 parent 4bfc643 commit 9751bec
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 47 deletions.
37 changes: 0 additions & 37 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,32 +63,6 @@ commands:
command: for i in $(seq 1 10); do [ $i -gt 1 ] && echo "retrying $i" && sleep 5; ./codecov --disable search pycov gcov --file .tox/coverage/py_coverage.xml .tox/coverage/cobertura-coverage.xml && s=0 && break || s=$?; done; (exit $s)

jobs:
py38:
working_directory: ~/project
machine:
image: ubuntu-2004:202111-02
steps:
- checkout
- upgradepython:
version: "3.8"
- run:
name: Use pyenv to set python version
command: |
pyenv versions
pyenv global 3.8
- docker-compose
- restore_cache:
name: Restore external data cache
keys:
- tox-externaldata-{{ checksum "tests/datastore.py" }}
- tox:
env: py38
- save_cache:
name: Save external data cache
key: tox-externaldata-{{ checksum "tests/datastore.py" }}
paths:
- ./.tox/externaldata
- coverage
py39:
working_directory: ~/project
machine:
Expand Down Expand Up @@ -329,13 +303,6 @@ workflows:
version: 2
ci:
jobs:
- py38:
filters:
tags:
only: /^v.*/
branches:
ignore:
- gh-pages
- py39:
filters:
tags:
Expand Down Expand Up @@ -387,7 +354,6 @@ workflows:
- gh-pages
- docs-deploy:
requires:
- py38
- py39
- py310
- py311
Expand All @@ -404,7 +370,6 @@ workflows:
- sphinx
- publish_docker:
requires:
- py38
- py39
- py310
- py311
Expand All @@ -428,7 +393,6 @@ workflows:
only:
- master
jobs:
- py38
- py39
- py310
- py311
Expand All @@ -438,7 +402,6 @@ workflows:
- wheels
- publish_docker:
requires:
- py38
- py39
- py310
- py311
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
if: github.repository == 'DigitalSlideArchive/HistomicsTK' && ( startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master' )
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
- [ubuntu-latest, x86_64]
- [macos-latest, "x86_64 arm64"]
- [windows-latest, auto64]
python: ["cp38", "cp39", "cp310", "cp311", "cp312"]
python: ["cp39", "cp310", "cp311", "cp312"]
fail-fast: false

steps:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ repos:
hooks:
- id: pyupgrade
args:
- --py37-plus
- --py39-plus
- --keep-percent-format
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v2.0.4
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ RUN apt-get update && \
# Make a specific version of python the default and install pip
# RUN rm -f /usr/bin/python && \
# rm -f /usr/bin/python3 && \
# ln `which python3.8` /usr/bin/python && \
# ln `which python3.8` /usr/bin/python3 && \
# ln `which python3.12` /usr/bin/python && \
# ln `which python3.12` /usr/bin/python3 && \
# curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
# python get-pip.py && \
# rm get-pip.py && \
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile-wheels
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM dockcross/manylinux2014-x64

# Don't build python < 3.8
# Don't build python < 3.9
RUN rm -rf /opt/python/cp36*
RUN rm -rf /opt/python/cp37*
RUN rm -rf /opt/python/cp38*
RUN rm -rf /opt/python/pp*

RUN for PYBIN in /opt/python/*/bin; do \
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
Expand All @@ -85,5 +84,5 @@
entry_points={
'console_scripts': ['histomicstk = histomicstk.cli.__main__:main'],
},
python_requires='>=3.8',
python_requires='>=3.9',
)
1 change: 0 additions & 1 deletion test_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
true"""

containers = [
'python:3.8',
'python:3.9',
'python:3.10',
'python:3.11',
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{38,39,310,311,312}
py{39,310,311,312}
docs
lint
skip_missing_interpreters = true
Expand Down

0 comments on commit 9751bec

Please sign in to comment.