Skip to content

Commit 4709678

Browse files
authored
Drop Python 3.8 (#1146)
It is EOL.
1 parent 4bfc643 commit 4709678

File tree

8 files changed

+9
-47
lines changed

8 files changed

+9
-47
lines changed

.circleci/config.yml

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -63,32 +63,6 @@ commands:
6363
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)
6464

6565
jobs:
66-
py38:
67-
working_directory: ~/project
68-
machine:
69-
image: ubuntu-2004:202111-02
70-
steps:
71-
- checkout
72-
- upgradepython:
73-
version: "3.8"
74-
- run:
75-
name: Use pyenv to set python version
76-
command: |
77-
pyenv versions
78-
pyenv global 3.8
79-
- docker-compose
80-
- restore_cache:
81-
name: Restore external data cache
82-
keys:
83-
- tox-externaldata-{{ checksum "tests/datastore.py" }}
84-
- tox:
85-
env: py38
86-
- save_cache:
87-
name: Save external data cache
88-
key: tox-externaldata-{{ checksum "tests/datastore.py" }}
89-
paths:
90-
- ./.tox/externaldata
91-
- coverage
9266
py39:
9367
working_directory: ~/project
9468
machine:
@@ -329,13 +303,6 @@ workflows:
329303
version: 2
330304
ci:
331305
jobs:
332-
- py38:
333-
filters:
334-
tags:
335-
only: /^v.*/
336-
branches:
337-
ignore:
338-
- gh-pages
339306
- py39:
340307
filters:
341308
tags:
@@ -387,7 +354,6 @@ workflows:
387354
- gh-pages
388355
- docs-deploy:
389356
requires:
390-
- py38
391357
- py39
392358
- py310
393359
- py311
@@ -404,7 +370,6 @@ workflows:
404370
- sphinx
405371
- publish_docker:
406372
requires:
407-
- py38
408373
- py39
409374
- py310
410375
- py311
@@ -428,7 +393,6 @@ workflows:
428393
only:
429394
- master
430395
jobs:
431-
- py38
432396
- py39
433397
- py310
434398
- py311
@@ -438,7 +402,6 @@ workflows:
438402
- wheels
439403
- publish_docker:
440404
requires:
441-
- py38
442405
- py39
443406
- py310
444407
- py311

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
if: github.repository == 'DigitalSlideArchive/HistomicsTK' && ( startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master' )
2323
strategy:
2424
matrix:
25-
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
25+
python: ["3.9", "3.10", "3.11", "3.12"]
2626
steps:
2727
- uses: actions/checkout@v4
2828
- uses: actions/setup-python@v5
@@ -68,7 +68,7 @@ jobs:
6868
- [ubuntu-latest, x86_64]
6969
- [macos-latest, "x86_64 arm64"]
7070
- [windows-latest, auto64]
71-
python: ["cp38", "cp39", "cp310", "cp311", "cp312"]
71+
python: ["cp39", "cp310", "cp311", "cp312"]
7272
fail-fast: false
7373

7474
steps:

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ repos:
6161
hooks:
6262
- id: pyupgrade
6363
args:
64-
- --py37-plus
64+
- --py39-plus
6565
- --keep-percent-format
6666
- repo: https://github.com/pre-commit/mirrors-autopep8
6767
rev: v2.0.4

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ RUN apt-get update && \
3030
# Make a specific version of python the default and install pip
3131
# RUN rm -f /usr/bin/python && \
3232
# rm -f /usr/bin/python3 && \
33-
# ln `which python3.8` /usr/bin/python && \
34-
# ln `which python3.8` /usr/bin/python3 && \
33+
# ln `which python3.12` /usr/bin/python && \
34+
# ln `which python3.12` /usr/bin/python3 && \
3535
# curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
3636
# python get-pip.py && \
3737
# rm get-pip.py && \

Dockerfile-wheels

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
FROM dockcross/manylinux2014-x64
22

3-
# Don't build python < 3.8
3+
# Don't build python < 3.9
44
RUN rm -rf /opt/python/cp36*
55
RUN rm -rf /opt/python/cp37*
6+
RUN rm -rf /opt/python/cp38*
67
RUN rm -rf /opt/python/pp*
78

89
RUN for PYBIN in /opt/python/*/bin; do \

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
'Development Status :: 5 - Production/Stable',
7474
'License :: OSI Approved :: Apache Software License',
7575
'Programming Language :: Python :: 3',
76-
'Programming Language :: Python :: 3.8',
7776
'Programming Language :: Python :: 3.9',
7877
'Programming Language :: Python :: 3.10',
7978
'Programming Language :: Python :: 3.11',
@@ -85,5 +84,5 @@
8584
entry_points={
8685
'console_scripts': ['histomicstk = histomicstk.cli.__main__:main'],
8786
},
88-
python_requires='>=3.8',
87+
python_requires='>=3.9',
8988
)

test_wheels.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
true"""
2020

2121
containers = [
22-
'python:3.8',
2322
'python:3.9',
2423
'python:3.10',
2524
'python:3.11',

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py{38,39,310,311,312}
3+
py{39,310,311,312}
44
docs
55
lint
66
skip_missing_interpreters = true

0 commit comments

Comments
 (0)