Skip to content

Commit 5a1e35d

Browse files
NickSebClarkNick Clarkhmaarrfk
authored
Python versioning and Lint modernisation (#210)
* Added function for compatibility with rapid block mode. Ditch 3.7, python 3.9 is now minimum. Add 3.13 * Little typo with folder. * Reverted changes accidentally included in this branch. * Update actions to latest versions. * Revert to flake8 * Add more python tests * Update setup.py * Update setup.py --------- Co-authored-by: Nick Clark <nclark@magdrivespace.com> Co-authored-by: Mark Harfouche <mark.harfouche@gmail.com>
1 parent 96e9538 commit 5a1e35d

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ['3.7', '3.11', '3.12']
15-
14+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
1615
steps:
17-
- uses: actions/checkout@v1
16+
- uses: actions/checkout@v4
1817
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v2
18+
uses: actions/setup-python@v5
2019
with:
2120
python-version: ${{ matrix.python-version }}
2221
- name: Install dependencies
@@ -26,4 +25,4 @@ jobs:
2625
- name: Flake
2726
run: |
2827
flake8 picoscope setup.py
29-
flake8 examples/*
28+
flake8 examples

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
'Topic :: System :: Hardware',
2525
'Topic :: Scientific/Engineering',
2626
'License :: OSI Approved :: BSD License',
27-
'Programming Language :: Python :: 2.7',
2827
'Programming Language :: Python :: 3',
2928
],
3029

3130
# What does your project relate to?
3231
keywords='picoscope peripherals hardware oscilloscope ATE',
32+
python_requires='>=3.9',
3333
install_requires=['numpy'],
3434
cmdclass=versioneer.get_cmdclass()
3535
)

0 commit comments

Comments
 (0)