Skip to content

Commit cda824d

Browse files
authored
Pull pysquared from proveskit/pysquared (#1)
* add function to install from local repo * pull from main repo * delete pysquared * remove pysquared from requirements.txt * fix formatting again * remove tests and other unrelated folders
1 parent 6989bd5 commit cda824d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+13
-5624
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,6 @@ jobs:
1414
- name: Lint
1515
run: |
1616
make fmt
17-
test:
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: actions/checkout@v4
21-
with:
22-
# Disabling shallow clones is recommended for improving the relevancy of SonarQube reporting
23-
fetch-depth: 0
24-
- name: Test
25-
run: |
26-
TEST_SELECT=ALL make test
27-
- name: Archive coverage report
28-
uses: actions/upload-artifact@v4
29-
with:
30-
name: coverage-report
31-
path: .coverage-reports/coverage.xml
32-
- name: SonarQube Scan
33-
uses: SonarSource/[email protected]
34-
env:
35-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3617
archive:
3718
runs-on: ubuntu-latest
3819
steps:

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,5 @@ venv
1111
**/*.mpy
1212

1313
# libs
14-
lib/rv3028*
15-
lib/adafruit*
16-
lib/asyncio*
17-
lib/neopixel.py
14+
/lib/*
15+
!/lib/requirements.txt

Makefile

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,19 @@ help: ## Display this help.
1313
@$(UV) venv
1414
@$(UV) pip install --requirement pyproject.toml
1515

16+
LOCAL_PYSQUARED ?= ""
17+
1618
.PHONY: download-libraries
1719
download-libraries: .venv ## Download the required libraries
1820
@echo "Downloading libraries..."
19-
@$(UV) pip install --requirement lib/requirements.txt --target lib --no-deps --upgrade --quiet
21+
@$(UV) pip install --requirement lib/requirements.txt --target lib --no-deps --upgrade --quiet; \
22+
23+
@if [ -n "$(LOCAL_PYSQUARED)" ]; then \
24+
$(UV) pip install $(LOCAL_PYSQUARED) --target lib --no-deps --upgrade --quiet; \
25+
else \
26+
$(UV) pip install git+https://github.com/proveskit/pysquared --target lib --no-deps --upgrade --quiet; \
27+
fi
28+
2029
@rm -rf lib/*.dist-info
2130
@rm -rf lib/.lock
2231

@@ -29,16 +38,6 @@ pre-commit-install: uv
2938
fmt: pre-commit-install ## Lint and format files
3039
$(UVX) pre-commit run --all-files
3140

32-
.PHONY: test
33-
test: .venv download-libraries ## Run tests
34-
ifeq ($(TEST_SELECT),ALL)
35-
$(UV) run coverage run --rcfile=pyproject.toml -m pytest tests/unit
36-
else
37-
$(UV) run coverage run --rcfile=pyproject.toml -m pytest -m "not slow" tests/unit
38-
endif
39-
@$(UV) run coverage html --rcfile=pyproject.toml > /dev/null
40-
@$(UV) run coverage xml --rcfile=pyproject.toml > /dev/null
41-
4241
BOARD_MOUNT_POINT ?= ""
4342
VERSION ?= $(shell git tag --points-at HEAD --sort=-creatordate < /dev/null | head -n 1)
4443

lib/pysquared/Big_Data.py

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

lib/pysquared/__init__.py

Whitespace-only changes.

lib/pysquared/cdh.py

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

0 commit comments

Comments
 (0)