Skip to content

Commit 02f82a7

Browse files
Merge pull request #1 from davide1992-light/python3.10-compatibility-and-ci
Add Python 3.10+ compatibility, CI/CD pipeline, and configurable settings
2 parents de27005 + be4c526 commit 02f82a7

File tree

27 files changed

+1659
-806
lines changed

27 files changed

+1659
-806
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
runs:
2+
using: 'composite'
3+
steps:
4+
- name: Checkout Code
5+
uses: actions/checkout@v3
6+
7+
- name: Set up Python
8+
uses: actions/setup-python@v4
9+
with:
10+
python-version: '3.10.12'
11+
12+
- name: Install colint from github repository
13+
shell: bash
14+
run: |
15+
pip install --upgrade pip
16+
pip install git+https://github.com/secomind/colint.git

.github/workflows/lint.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Lint Checks
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
sort_libraries:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout Code
11+
uses: actions/checkout@v3
12+
13+
- name: Install Colint
14+
uses: ./.github/actions/install-colint
15+
16+
- name: Run Sort Libraries Check
17+
run: |
18+
colint sort-libraries . --check --config-file ./lint
19+
20+
code_format:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Checkout Code
25+
uses: actions/checkout@v3
26+
27+
- name: Install Colint
28+
uses: ./.github/actions/install-colint
29+
30+
- name: Run Code Format Check
31+
run: |
32+
colint code-format . --check --config-file ./lint
33+
34+
grammar_check:
35+
runs-on: ubuntu-latest
36+
37+
steps:
38+
- name: Checkout Code
39+
uses: actions/checkout@v3
40+
41+
- name: Install Colint
42+
uses: ./.github/actions/install-colint
43+
44+
- name: Run Grammar Check
45+
run: |
46+
colint grammar-check . --check --config-file ./lint
47+
48+
newline_fix:
49+
runs-on: ubuntu-latest
50+
51+
steps:
52+
- name: Checkout Code
53+
uses: actions/checkout@v3
54+
55+
- name: Install Colint
56+
uses: ./.github/actions/install-colint
57+
58+
- name: Run Newline Fix Check
59+
run: |
60+
colint newline-fix . --check --config-file ./lint

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

Lines changed: 0 additions & 45 deletions
This file was deleted.

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# Fork Improvements
2+
3+
This is an improved fork of the original Edge Impulse Linux SDK that addresses several compatibility and usability issues:
4+
5+
- **Python 3.10+ Compatibility**: Fixed AudioImpulseRunner compatibility issues with Python 3.10 and newer versions by replacing PyAudio dependencies with more robust threading solutions
6+
- **Optional Dependencies**: Added `[image]` and `[audio]` optional dependency groups so you only install what you need:
7+
- `pip3 install edge_impulse_linux[audio]` - for audio classification projects
8+
- `pip3 install edge_impulse_linux[image]` - for computer vision projects
9+
- `pip3 install edge_impulse_linux[all]` - for both
10+
- **Improved Stability**: Enhanced threading and audio handling for better reliability across different Python versions
11+
12+
---
13+
114
# Edge Impulse Linux SDK for Python
215

316
This library lets you run machine learning models and collect sensor data on Linux machines using Python. This SDK is part of [Edge Impulse](https://www.edgeimpulse.com) where we enable developers to create the next generation of intelligent device solutions with embedded machine learning. [Start here to learn more and train your first model](https://docs.edgeimpulse.com).

deploy.sh

Lines changed: 0 additions & 29 deletions
This file was deleted.

edge_impulse_linux/__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

edge_impulse_linux/audio.py

Lines changed: 0 additions & 166 deletions
This file was deleted.

0 commit comments

Comments
 (0)