audio-spectrogram 0.1.0a0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- audio_spectrogram-0.1.0a0/.github/dependabot.yml +31 -0
- audio_spectrogram-0.1.0a0/.github/release.yml +4 -0
- audio_spectrogram-0.1.0a0/.github/workflows/ci.yml +135 -0
- audio_spectrogram-0.1.0a0/.gitignore +13 -0
- audio_spectrogram-0.1.0a0/.pre-commit-config.yaml +31 -0
- audio_spectrogram-0.1.0a0/.python-version +1 -0
- audio_spectrogram-0.1.0a0/.vscode/launch.json +11 -0
- audio_spectrogram-0.1.0a0/LICENSE +674 -0
- audio_spectrogram-0.1.0a0/PKG-INFO +46 -0
- audio_spectrogram-0.1.0a0/README.md +21 -0
- audio_spectrogram-0.1.0a0/doc/GUI.png +0 -0
- audio_spectrogram-0.1.0a0/pyproject.toml +66 -0
- audio_spectrogram-0.1.0a0/setup.cfg +4 -0
- audio_spectrogram-0.1.0a0/src/audio_spectrogram/__init__.py +12 -0
- audio_spectrogram-0.1.0a0/src/audio_spectrogram/__main__.py +36 -0
- audio_spectrogram-0.1.0a0/src/audio_spectrogram/app/__init__.py +2 -0
- audio_spectrogram-0.1.0a0/src/audio_spectrogram/app/application.py +81 -0
- audio_spectrogram-0.1.0a0/src/audio_spectrogram/app/control_panel_handler.py +166 -0
- audio_spectrogram-0.1.0a0/src/audio_spectrogram/app/plot_handler.py +107 -0
- audio_spectrogram-0.1.0a0/src/audio_spectrogram/app/qapplication.py +26 -0
- audio_spectrogram-0.1.0a0/src/audio_spectrogram/app/spectrogram.py +62 -0
- audio_spectrogram-0.1.0a0/src/audio_spectrogram/app/widgets/__init__.py +2 -0
- audio_spectrogram-0.1.0a0/src/audio_spectrogram/app/widgets/combobox.py +39 -0
- audio_spectrogram-0.1.0a0/src/audio_spectrogram/app/widgets/control_panel_widget.py +131 -0
- audio_spectrogram-0.1.0a0/src/audio_spectrogram/app/widgets/main_window.py +44 -0
- audio_spectrogram-0.1.0a0/src/audio_spectrogram/app/widgets/plot_widget.py +58 -0
- audio_spectrogram-0.1.0a0/src/audio_spectrogram/app/widgets/power_of_two_spinbox.py +42 -0
- audio_spectrogram-0.1.0a0/src/audio_spectrogram/util.py +63 -0
- audio_spectrogram-0.1.0a0/src/audio_spectrogram.egg-info/PKG-INFO +46 -0
- audio_spectrogram-0.1.0a0/src/audio_spectrogram.egg-info/SOURCES.txt +34 -0
- audio_spectrogram-0.1.0a0/src/audio_spectrogram.egg-info/dependency_links.txt +1 -0
- audio_spectrogram-0.1.0a0/src/audio_spectrogram.egg-info/entry_points.txt +5 -0
- audio_spectrogram-0.1.0a0/src/audio_spectrogram.egg-info/requires.txt +6 -0
- audio_spectrogram-0.1.0a0/src/audio_spectrogram.egg-info/top_level.txt +1 -0
- audio_spectrogram-0.1.0a0/tox.ini +26 -0
- audio_spectrogram-0.1.0a0/uv.lock +421 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
|
3
|
+
# Please see the documentation for all configuration options:
|
|
4
|
+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
5
|
+
|
|
6
|
+
version: 2
|
|
7
|
+
updates:
|
|
8
|
+
- package-ecosystem: "uv"
|
|
9
|
+
# Enable version updates for development dependencies
|
|
10
|
+
directory: "/"
|
|
11
|
+
schedule:
|
|
12
|
+
interval: "monthly"
|
|
13
|
+
versioning-strategy: "increase-if-necessary"
|
|
14
|
+
groups:
|
|
15
|
+
dev-deps:
|
|
16
|
+
patterns:
|
|
17
|
+
- "*"
|
|
18
|
+
cooldown:
|
|
19
|
+
default-days: 30
|
|
20
|
+
|
|
21
|
+
- package-ecosystem: "github-actions"
|
|
22
|
+
# Enable version updates for GitHub Actions
|
|
23
|
+
directory: "/"
|
|
24
|
+
schedule:
|
|
25
|
+
interval: "monthly"
|
|
26
|
+
groups:
|
|
27
|
+
github-actions:
|
|
28
|
+
patterns:
|
|
29
|
+
- "*"
|
|
30
|
+
cooldown:
|
|
31
|
+
default-days: 30
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
name: Tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
push:
|
|
6
|
+
tags:
|
|
7
|
+
- 'v*'
|
|
8
|
+
branches-ignore:
|
|
9
|
+
- 'dependabot/**'
|
|
10
|
+
|
|
11
|
+
env:
|
|
12
|
+
PY_COLORS: "1"
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
test:
|
|
19
|
+
runs-on: ${{ matrix.os }}
|
|
20
|
+
strategy:
|
|
21
|
+
matrix:
|
|
22
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
23
|
+
env: [
|
|
24
|
+
"py312",
|
|
25
|
+
"py313",
|
|
26
|
+
"py314",
|
|
27
|
+
]
|
|
28
|
+
fail-fast: false
|
|
29
|
+
steps:
|
|
30
|
+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
|
|
31
|
+
with:
|
|
32
|
+
fetch-depth: 0
|
|
33
|
+
persist-credentials: false
|
|
34
|
+
- name: Install uv
|
|
35
|
+
uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # 7.3.1
|
|
36
|
+
with:
|
|
37
|
+
enable-cache: false
|
|
38
|
+
- name: Install tox
|
|
39
|
+
run: uv tool install tox --with tox-uv
|
|
40
|
+
- name: Test with pytest via tox
|
|
41
|
+
run: |
|
|
42
|
+
tox -e ${{ matrix.env }}
|
|
43
|
+
|
|
44
|
+
static-code-analysis:
|
|
45
|
+
runs-on: ubuntu-latest
|
|
46
|
+
steps:
|
|
47
|
+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
|
|
48
|
+
with:
|
|
49
|
+
fetch-depth: 0
|
|
50
|
+
persist-credentials: false
|
|
51
|
+
- name: Install uv
|
|
52
|
+
uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # 7.3.1
|
|
53
|
+
with:
|
|
54
|
+
enable-cache: false
|
|
55
|
+
- name: Install tox
|
|
56
|
+
run: uv tool install tox --with tox-uv
|
|
57
|
+
- name: Check formatting
|
|
58
|
+
run: |
|
|
59
|
+
tox -e format
|
|
60
|
+
- name: Run linters
|
|
61
|
+
run: |
|
|
62
|
+
tox -e lint
|
|
63
|
+
- name: Run type checker
|
|
64
|
+
run: |
|
|
65
|
+
tox -e type
|
|
66
|
+
|
|
67
|
+
pre-commit:
|
|
68
|
+
runs-on: ubuntu-latest
|
|
69
|
+
steps:
|
|
70
|
+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
|
|
71
|
+
with:
|
|
72
|
+
fetch-depth: 0
|
|
73
|
+
persist-credentials: false
|
|
74
|
+
- name: Install uv
|
|
75
|
+
uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # 7.3.1
|
|
76
|
+
with:
|
|
77
|
+
enable-cache: false
|
|
78
|
+
- name: Install pre-commit
|
|
79
|
+
run: |
|
|
80
|
+
uv tool install --python 3.12 pre-commit --with pre-commit-uv
|
|
81
|
+
pre-commit install
|
|
82
|
+
- name: Check pre-commit
|
|
83
|
+
run: |
|
|
84
|
+
pre-commit run -a
|
|
85
|
+
|
|
86
|
+
build:
|
|
87
|
+
name: Packaging
|
|
88
|
+
runs-on: ubuntu-latest
|
|
89
|
+
steps:
|
|
90
|
+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
|
|
91
|
+
with:
|
|
92
|
+
fetch-depth: 0
|
|
93
|
+
persist-credentials: false
|
|
94
|
+
- name: Install uv
|
|
95
|
+
uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # 7.3.1
|
|
96
|
+
with:
|
|
97
|
+
enable-cache: false
|
|
98
|
+
- name: Build wheel and sdist
|
|
99
|
+
run: uv build
|
|
100
|
+
- name: Check build artifacts
|
|
101
|
+
run: uvx twine check --strict dist/*
|
|
102
|
+
- name: Save artifacts
|
|
103
|
+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # 7.0.0
|
|
104
|
+
with:
|
|
105
|
+
name: release
|
|
106
|
+
path: ./dist
|
|
107
|
+
|
|
108
|
+
upload_pypi:
|
|
109
|
+
name: Create release
|
|
110
|
+
needs: [ build ]
|
|
111
|
+
runs-on: ubuntu-latest
|
|
112
|
+
environment:
|
|
113
|
+
name: pypi
|
|
114
|
+
url: https://pypi.org/p/audio-spectrogram
|
|
115
|
+
permissions:
|
|
116
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
117
|
+
contents: write # for action-gh-release
|
|
118
|
+
attestations: write # for attest-build-provenance
|
|
119
|
+
|
|
120
|
+
# upload to PyPI on new tag
|
|
121
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
|
122
|
+
steps:
|
|
123
|
+
- uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # 8.0.0
|
|
124
|
+
with:
|
|
125
|
+
path: dist
|
|
126
|
+
merge-multiple: true
|
|
127
|
+
|
|
128
|
+
- name: Generate artifact attestation
|
|
129
|
+
if: github.event.repository.private == false
|
|
130
|
+
uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # 4.1.0
|
|
131
|
+
with:
|
|
132
|
+
subject-path: 'dist/*'
|
|
133
|
+
|
|
134
|
+
- name: Publish release distributions to PyPI
|
|
135
|
+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # 1.14.0
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v6.0.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: check-added-large-files
|
|
6
|
+
args: ['--maxkb=1000']
|
|
7
|
+
- id: check-case-conflict
|
|
8
|
+
- id: check-merge-conflict
|
|
9
|
+
- id: check-symlinks
|
|
10
|
+
- id: check-yaml
|
|
11
|
+
- id: debug-statements
|
|
12
|
+
- id: end-of-file-fixer
|
|
13
|
+
- id: mixed-line-ending
|
|
14
|
+
- id: requirements-txt-fixer
|
|
15
|
+
- id: trailing-whitespace
|
|
16
|
+
|
|
17
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
18
|
+
rev: "v0.15.9"
|
|
19
|
+
hooks:
|
|
20
|
+
# Run the linter.
|
|
21
|
+
- id: ruff-check
|
|
22
|
+
args: ["--fix", "--show-fixes"]
|
|
23
|
+
# Run the formatter.
|
|
24
|
+
- id: ruff-format
|
|
25
|
+
|
|
26
|
+
- repo: https://github.com/woodruffw/zizmor-pre-commit
|
|
27
|
+
# Zizmor version.
|
|
28
|
+
rev: v1.23.1
|
|
29
|
+
hooks:
|
|
30
|
+
# Run the linter.
|
|
31
|
+
- id: zizmor
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.12
|