Skip to content

Commit 0862aa1

Browse files
authored
Merge pull request #138 from scanoss/bugfix/mdaloia/132-python-3738-incompatibility-tuple-and-json-used-as-type-hint
chore: update minimum python version to 3.9
2 parents 589259c + cec64a7 commit 0862aa1

15 files changed

+36
-27
lines changed

.github/workflows/container-local-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Set up Python
2828
uses: actions/setup-python@v5
2929
with:
30-
python-version: '3.10.x'
30+
python-version: '3.9.x'
3131

3232
- name: Install Dependencies
3333
run: |

.github/workflows/container-publish-ghcr.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_dispatch:
66
push:
77
tags:
8-
- 'v*.*.*'
8+
- "v*.*.*"
99

1010
env:
1111
REGISTRY: ghcr.io
@@ -30,7 +30,7 @@ jobs:
3030
- name: Set up Python
3131
uses: actions/setup-python@v5
3232
with:
33-
python-version: '3.10.x'
33+
python-version: "3.9.x"
3434

3535
- name: Install Dependencies
3636
run: |
@@ -159,3 +159,4 @@ jobs:
159159
# env:
160160
# TAGS: ${{ steps.meta.outputs.tags }}
161161
# COSIGN_EXPERIMENTAL: true
162+

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Python
1818
uses: actions/setup-python@v4
1919
with:
20-
python-version: "3.8"
20+
python-version: "3.9"
2121

2222
- name: Install Dependencies
2323
run: |

.github/workflows/python-local-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Python
2323
uses: actions/setup-python@v5
2424
with:
25-
python-version: "3.10.x"
25+
python-version: "3.9.x"
2626

2727
- name: Install Dependencies
2828
run: |

.github/workflows/python-publish-pypi.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_dispatch:
66
push:
77
tags:
8-
- 'v*.*.*'
8+
- "v*.*.*"
99

1010
jobs:
1111
deploy:
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Python
1717
uses: actions/setup-python@v5
1818
with:
19-
python-version: '3.10.x'
19+
python-version: "3.9.x"
2020

2121
- name: Install dependencies
2222
run: |
@@ -49,7 +49,7 @@ jobs:
4949
- name: Publish Package - ${{ github.ref_name }}
5050
uses: pypa/gh-action-pypi-publish@release/v1
5151
with:
52-
# skip-existing: true
52+
# skip-existing: true
5353
user: __token__
5454
password: ${{ secrets.PYPI_API_TOKEN }}
5555

@@ -62,15 +62,15 @@ jobs:
6262

6363
test:
6464
if: success()
65-
needs: [ deploy ]
65+
needs: [deploy]
6666
runs-on: ubuntu-latest
6767
steps:
6868
- uses: actions/checkout@v4
6969

7070
- name: Set up Python
7171
uses: actions/setup-python@v5
7272
with:
73-
python-version: '3.10.x'
73+
python-version: "3.9.x"
7474

7575
- name: Install Remote Package
7676
uses: nick-fields/retry@v3
@@ -113,3 +113,4 @@ jobs:
113113
echo "Error: Scan test did not produce any results. Failing"
114114
exit 1
115115
fi
116+

.github/workflows/python-publish-testpypi.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Publish Python Package - TestPyPI
22
# This workflow will upload a TestPyPI Python Package using Twine on demand (dispatch)
33

4-
on: [ workflow_dispatch ]
4+
on: [workflow_dispatch]
55

66
permissions:
77
contents: read
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Python
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: '3.10.x'
18+
python-version: "3.9.x"
1919

2020
- name: Install Dependencies
2121
run: |
@@ -56,7 +56,7 @@ jobs:
5656

5757
test:
5858
if: success()
59-
needs: [ deploy ]
59+
needs: [deploy]
6060
runs-on: ubuntu-latest
6161

6262
steps:
@@ -65,7 +65,7 @@ jobs:
6565
- name: Set up Python
6666
uses: actions/setup-python@v5
6767
with:
68-
python-version: '3.10.x'
68+
python-version: "3.9.x"
6969

7070
- name: Install Remote Package
7171
run: |
@@ -101,3 +101,4 @@ jobs:
101101
echo "Error: Scan test did not produce any results. Failing"
102102
exit 1
103103
fi
104+

.github/workflows/version-tag.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020
with:
21-
fetch-depth: '0'
21+
fetch-depth: "0"
2222
token: ${{ secrets.SC_GH_TAG_TOKEN }}
2323
- name: Set up Python
2424
uses: actions/setup-python@v5
2525
with:
26-
python-version: '3.10.x'
26+
python-version: "3.9.x"
2727
- name: Determine Tag
2828
id: taggerVersion
2929
run: |

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
### Added
1010
- Upcoming changes...
1111

12+
## [1.29.0] - 2025-07-15
13+
### Changed
14+
- Updated minimum Python version to 3.9
15+
1216
## [1.28.3] - 2025-07-14
1317
### Fixed
1418
- Fixed scanoss.json ingestion
@@ -604,3 +608,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
604608
[1.28.0]: https://github.com/scanoss/scanoss.py/compare/v1.27.1...v1.28.0
605609
[1.28.1]: https://github.com/scanoss/scanoss.py/compare/v1.28.0...v1.28.1
606610
[1.28.2]: https://github.com/scanoss/scanoss.py/compare/v1.28.1...v1.28.2
611+
[1.29.0]: https://github.com/scanoss/scanoss.py/compare/v1.28.2...v1.29.0
612+

PACKAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ if __name__ == "__main__":
138138
```
139139

140140
## Requirements
141-
Python 3.7 or higher.
141+
Python 3.9 or higher.
142142

143143
## Source code
144144
The source for this package can be found [here](https://github.com/scanoss/scanoss.py).

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ To leverage the CLI from within a container, please look at [GHCR.md](GHCR.md).
2424
Before starting with development of this project, please read our [CONTRIBUTING](CONTRIBUTING.md) and [CODE OF CONDUCT](CODE_OF_CONDUCT.md).
2525

2626
### Requirements
27-
Python 3.7 or higher.
27+
Python 3.9 or higher.
2828

2929
The dependencies can be found in the [requirements.txt](requirements.txt) and [requirements-dev.txt](requirements-dev.txt) files.
3030

0 commit comments

Comments
 (0)