Skip to content

Commit 965fa0a

Browse files
Build: Drop support for Python 3.8 (#7)
* CI(dependabot): Bump mikepenz/action-junit-report from 4 to 5 Bumps [mikepenz/action-junit-report](https://github.com/mikepenz/action-junit-report) from 4 to 5. - [Release notes](https://github.com/mikepenz/action-junit-report/releases) - [Commits](mikepenz/action-junit-report@v4...v5) --- updated-dependencies: - dependency-name: mikepenz/action-junit-report dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Chore: Bump Copier template * CI: Bump pre-commit hook versions * CI: Fix min_versions job --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Adrien Berchet <[email protected]>
1 parent a175a83 commit 965fa0a

File tree

12 files changed

+49
-45
lines changed

12 files changed

+49
-45
lines changed

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changes here will be overwritten by Copier
22

3-
_commit: 0.1.55
3+
_commit: 0.1.66
44
_src_path: [email protected]:neuromath/python-template.git
55
author_name: Blue Brain Project, EPFL
66
copyright_license: Apache License 2.0

.github/workflows/commitlint.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
check-pr-title:
99
name: Check PR title
1010
runs-on: ubuntu-latest
11+
env:
12+
PR_TITLE: ${{ github.event.pull_request.title }}
1113
steps:
1214
- uses: actions/checkout@v4
1315
- uses: actions/setup-node@v4
@@ -16,4 +18,4 @@ jobs:
1618
- run: npm install -g --force commitlint @commitlint/cli commitlint-plugin-cleanfeet
1719
- run: npm install conventional-changelog-conventionalcommits
1820
- run: touch .git/COMMIT_EDITMSG
19-
- run: echo "${{ github.event.pull_request.title }}" | commitlint
21+
- run: echo "$PR_TITLE" | commitlint

.github/workflows/publish-sdist.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14-
- name: Set up Python 3.8
14+
- name: Set up Python 3.10
1515
uses: actions/setup-python@v5
1616
with:
17-
python-version: 3.8
17+
python-version: "3.10"
1818
- name: Build a wheel and a source tarball
1919
run: |
2020
pip install setuptools>=42 build setuptools_scm[toml]>=3.4

.github/workflows/run-tox.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
16+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1717
min_versions: ["min_versions", "latest_versions"]
1818
exclude:
1919
- min_versions: "min_versions"
2020
include:
21-
- python-version: "3.8"
21+
- python-version: "3.9"
2222
min_versions: "min_versions"
2323

2424
steps:
@@ -55,7 +55,7 @@ jobs:
5555
pip install tox
5656
tox run -e min_versions
5757
- name: JUnit Report Action
58-
uses: mikepenz/action-junit-report@v4
58+
uses: mikepenz/action-junit-report@v5
5959
if: always() # always run even if the previous step fails
6060
with:
6161
report_paths: 'reports/pytest-*.xml'

.pre-commit-config.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
default_language_version:
2-
python: python3.8
31
repos:
42
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.4.0
3+
rev: v5.0.0
64
hooks:
75
- id: check-added-large-files
86
- id: check-case-conflict
@@ -13,22 +11,22 @@ repos:
1311
- id: end-of-file-fixer
1412
- id: trailing-whitespace
1513
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
16-
rev: v9.5.0
14+
rev: v9.18.0
1715
hooks:
1816
- id: commitlint
1917
stages:
2018
- commit-msg
2119
additional_dependencies: ['conventional-changelog-conventionalcommits']
2220
- repo: https://github.com/pycqa/isort
23-
rev: 5.12.0
21+
rev: 5.13.2
2422
hooks:
2523
- id: isort
2624
- repo: https://github.com/psf/black
27-
rev: 23.9.1
25+
rev: 24.10.0
2826
hooks:
2927
- id: black
3028
- repo: https://github.com/codespell-project/codespell
31-
rev: v2.2.5
29+
rev: v2.3.0
3230
hooks:
3331
- id: codespell
3432
args: ["-x", ".codespellignorelines"]
@@ -38,6 +36,6 @@ repos:
3836
- id: pydocstyle
3937
additional_dependencies: ["tomli"]
4038
- repo: https://github.com/PyCQA/flake8
41-
rev: 6.1.0
39+
rev: 7.1.1
4240
hooks:
4341
- id: flake8

.pylintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ disable=
33
fixme,
44
invalid-name,
55
len-as-condition,
6-
no-else-return
6+
no-else-return,
7+
too-many-positional-arguments
78

89
[FORMAT]
910
# Regexp for a line that is allowed to be longer than the limit.

.readthedocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
version: 2
77

88
build:
9-
os: ubuntu-20.04
9+
os: ubuntu-22.04
1010
tools:
11-
python: "3.9"
11+
python: "3.11"
1212

1313
sphinx:
1414
configuration: docs/source/conf.py

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ When you wish to contribute to the code base, please consider the following guid
5959
or
6060

6161
```shell
62-
tox -e py38 -e lint -e docs -e check-packaging
62+
tox run -e py39,lint,docs,check-packaging
6363
```
6464

6565
* Commit your changes using a descriptive commit message.

docs/source/conf.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@
2929

3030
# -- Project information -----------------------------------------------------
3131

32-
project = "BluePyParallel"
32+
project_name = "BluePyParallel"
33+
package_name = "BluePyParallel"
3334

3435
# The short X.Y version
35-
version = metadata.version("BluePyParallel")
36+
version = metadata.version(package_name)
3637

3738
# The full version, including alpha/beta/rc tags
3839
release = version
@@ -76,10 +77,10 @@
7677
# html_static_path = ['_static']
7778

7879
html_theme_options = {
79-
"metadata_distribution": "BluePyParallel",
80+
"metadata_distribution": package_name,
8081
}
8182

82-
html_title = project
83+
html_title = project_name
8384

8485
# If true, links to the reST sources are added to the pages.
8586
html_show_sourcelink = False

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ authors = [
55
]
66
description = "Provides an embarrassingly parallel tool with sql backend."
77
readme = "README.md"
8-
requires-python = ">=3.8"
8+
requires-python = ">=3.9"
99
license = { text = "Apache License 2.0" }
1010
classifiers = [
1111
"Development Status :: 4 - Beta",
1212
"Intended Audience :: Developers",
1313
"Programming Language :: Python",
1414
"Programming Language :: Python :: 3",
15-
"Programming Language :: Python :: 3.8",
1615
"Programming Language :: Python :: 3.9",
1716
"Programming Language :: Python :: 3.10",
1817
"Programming Language :: Python :: 3.11",
@@ -45,8 +44,8 @@ test = [
4544
"packaging>=20",
4645
"pytest>=6.1",
4746
"pytest-benchmark>=3.4",
48-
"pytest-cov>=3",
49-
"pytest-html>=3.1",
47+
"pytest-cov>=4.1",
48+
"pytest-html>=3.2",
5049
]
5150

5251
[project.urls]
@@ -69,10 +68,10 @@ include = ["bluepyparallel*"]
6968
[tool.black]
7069
line-length = 100
7170
target-version = [
72-
"py38",
7371
"py39",
7472
"py310",
7573
"py311",
74+
"py312",
7675
]
7776

7877
[tool.pydocstyle]

0 commit comments

Comments
 (0)