Skip to content

Commit 4bc38bd

Browse files
authored
Merge pull request hed-standard#1146 from VisLab/json_schema
Updated the minimum Python to 3.10
2 parents 70d545b + e16c09d commit 4bc38bd

13 files changed

Lines changed: 21 additions & 23 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020
run: |
2121
if [[ "${{ github.event_name }}" == 'push' && "${{ github.ref }}" == 'refs/heads/main' ]]; then
2222
# Push to main branch
23-
echo 'matrix=["3.9", "3.10", "3.11", "3.12", "3.13"]' >> $GITHUB_OUTPUT
23+
echo 'matrix=["3.10", "3.11", "3.12", "3.13"]' >> $GITHUB_OUTPUT
2424
elif [[ "${{ github.event_name }}" == 'pull_request' && "${{ github.event.pull_request.base.ref }}" == 'main' ]]; then
2525
# PR to main branch
26-
echo 'matrix=["3.9", "3.10", "3.11", "3.12", "3.13"]' >> $GITHUB_OUTPUT
26+
echo 'matrix=[ "3.10", "3.11", "3.12", "3.13"]' >> $GITHUB_OUTPUT
2727
else
28-
echo 'matrix=["3.9", "3.13"]' >> $GITHUB_OUTPUT
28+
echo 'matrix=["3.10", "3.13"]' >> $GITHUB_OUTPUT
2929
fi
3030
3131
build:
@@ -60,7 +60,7 @@ jobs:
6060
pip install -r docs/requirements.txt
6161
pip install -e .[test]
6262
63-
# Run spec tests without coverage for non Python 3.9
63+
# Run spec tests without coverage for non Python 3.10
6464
- name: Run spec_test
6565
env:
6666
GITHUB_TOKEN: ${{ github.token }}

.github/workflows/ci_windows.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
platform: [windows-latest]
14-
python-version: ["3.9", "3.10", "3.11", "3.12"]
14+
python-version: ["3.10", "3.11", "3.12"]
1515

1616
runs-on: ${{ matrix.platform }}
1717

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up Python
2727
uses: actions/setup-python@v6
2828
with:
29-
python-version: '3.9'
29+
python-version: '3.10'
3030

3131
- name: Cache dependencies
3232
uses: actions/cache@v4

.github/workflows/spec_tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
platform: [ubuntu-latest]
14-
python-version: [3.9]
14+
python-version: ["3.10"]
1515

1616
runs-on: ${{ matrix.platform }}
1717

.github/workflows/test_installer.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
strategy:
1212
matrix:
13-
python-version: ["3.9", "3.13"]
13+
python-version: ["3.10", "3.13"]
1414

1515
steps:
1616
- uses: actions/checkout@v5

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This project adheres to a code of conduct that we expect all contributors to fol
3232

3333
### Prerequisites
3434

35-
- Python 3.9 or higher
35+
- Python 3.10 or higher
3636
- Git
3737
- pip (Python package manager)
3838

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.8056010.svg)](https://doi.org/10.5281/zenodo.8056010)
22
[![Maintainability](https://qlty.sh/gh/hed-standard/projects/hed-python/maintainability.svg)](https://qlty.sh/gh/hed-standard/projects/hed-python)
33
[![Code Coverage](https://qlty.sh/gh/hed-standard/projects/hed-python/coverage.svg)](https://qlty.sh/gh/hed-standard/projects/hed-python)
4-
![Python3](https://img.shields.io/badge/python->=3.9-yellow.svg)
4+
![Python3](https://img.shields.io/badge/python->=3.10-yellow.svg)
55
![PyPI - Status](https://img.shields.io/pypi/v/hedtools)
66
[![Documentation](https://img.shields.io/badge/docs-hedtags.org-blue.svg)](https://www.hedtags.org/hed-python)
77

@@ -31,7 +31,7 @@ A development version is available at: [https://hedtools.org/hed_dev](https://he
3131

3232
### Python Installation
3333

34-
**Requirements:** Python 3.9 or higher
34+
**Requirements:** Python 3.10 or higher
3535

3636
Install from PyPI:
3737
```bash

RELEASE_GUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Before starting the release process, ensure you have:
1111
- [ ] Write access to the hed-python repository
1212
- [ ] PyPI account with maintainer access to the `hedtools` package
1313
- [ ] Git configured with your credentials
14-
- [ ] Python 3.9+ installed
14+
- [ ] Python 3.10+ installed
1515
- [ ] Virtual environment activated (if using one)
1616
- [ ] All intended changes merged to the `main` branch
1717

hed/models/query_expressions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def handle_expr(self, hed_group, exact=False):
195195

196196
# Todo: this may need more thought with respects to wildcards and negation
197197
# negated_groups = [group for group in hed_group.get_all_groups() if group not in groups]
198-
# This simpler version works on python >= 3.9
198+
# This simpler version works on python >= 3.10
199199
# negated_groups = [SearchResult(group, []) for group in hed_group.get_all_groups() if group not in groups]
200200
# Python 3.7/8 compatible version.
201201
negated_groups = [

hed/schema/schema_io/df_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def get_library_name_and_id(schema):
233233
return name.capitalize(), starting_id
234234

235235

236-
# todo: Replace this once we no longer support < python 3.9
236+
# todo: Replace this once we no longer support < python 3.10
237237
def remove_prefix(text, prefix):
238238
if text and text.startswith(prefix):
239239
return text[len(prefix) :]

0 commit comments

Comments
 (0)