Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
test:
strategy:
matrix:
python: ["3.8", "3.9", "3.10"]
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
platform: [ubuntu-latest, macos-latest]
fail-fast: false
runs-on: ${{ matrix.platform }}
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
Expand All @@ -11,12 +11,12 @@ repos:
- id: check-builtin-literals
- id: check-merge-conflict
- repo: https://github.com/psf/black
rev: 23.7.0
rev: 24.10.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
Expand All @@ -25,7 +25,7 @@ repos:
# hooks:
# - id: check-manifest
- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
rev: 0.8.1
hooks:
- id: nbstripout
args: [--extra-keys=metadata.kernelspec metadata.language_info]
17 changes: 8 additions & 9 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,20 @@ version: 2
sphinx:
configuration: docs/source/conf.py

build:
os: ubuntu-lts-latest
apt_packages:
- portaudio19-dev
- supercollider
tools:
python: "3.12"

# Build all formats
formats: all

python:
version: 3.7
install:
- method: pip
path: .
extra_requirements:
- docs

# TODO currently readthedocs uses ubuntu18.04, this is old
# it also does not support starting supercollider as it lacks X server support.
# https://docs.readthedocs.io/en/stable/config-file/v2.html#build-apt-packages
build:
image: latest
apt_packages:
- portaudio19-dev
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## Version 1.1.1

- Fix startup [issue #18](https://github.com/interactive-sonification/sc3nb/issues/18)
- Other minor improvements

[See all changes](https://github.com/interactive-sonification/sc3nb/compare/v1.1.0...v1.1.0)


## Version 1.1.0

- Bundler Improvements
Expand Down
9 changes: 8 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ Additional dependencies for sc3nb can be installed via the following extras:

| Install | Purpose |
|:---------------|:-----------------------------------------------------------------------------|
| `[all]` | install all extras |
| `[test]` | running tox for tests and other things |
| `[dev]` | using the pre-commit hooks and installing other useful tools for development |
| `[docs]` | building the docs directly, without tox (used by tox) |
| `[localtest]` | running pytest directly, without tox (used by tox) |
| `[localtest]` | running pytest directly, without tox (used by tox) |


Normally you should only need `[test]` and `[dev]` for contributing.
Expand All @@ -73,6 +74,12 @@ The following tests should all be successful.
```
tox -e docs
```
Note that you also need [pandoc](https://pandoc.org/) installed.
If you use conda you can use
```
conda install pandoc
```

Controll the output in `build/docs/html/`

## How to prepare a release
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@

autosummary_generate = True

numpydoc_validation_checks = {"all", "GL01", "GL02", "GL05"}
numpydoc_validation_checks = {"all", "GL08"}

intersphinx_mapping = {"python": ("https://docs.python.org/dev", None)}

Expand Down
38 changes: 19 additions & 19 deletions examples/supercollider-objects/score-examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "d94cc915",
"id": "0",
"metadata": {},
"source": [
"# Score"
Expand All @@ -11,7 +11,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "8a02aaad",
"id": "1",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -21,7 +21,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "639cfa3c",
"id": "2",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -31,7 +31,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "75ae0551",
"id": "3",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -40,7 +40,7 @@
},
{
"cell_type": "markdown",
"id": "c4a54ee3",
"id": "4",
"metadata": {},
"source": [
"The Score class can be used for non-realtime synthesis. \n",
Expand All @@ -56,7 +56,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "09f49299",
"id": "5",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -65,7 +65,7 @@
},
{
"cell_type": "markdown",
"id": "a70f0bbf",
"id": "6",
"metadata": {},
"source": [
"Lets create a simple SynthDef for this demonstration"
Expand All @@ -74,7 +74,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "2946df64",
"id": "7",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -90,7 +90,7 @@
},
{
"cell_type": "markdown",
"id": "e5831fd0",
"id": "8",
"metadata": {},
"source": [
"For creating the messages its recommended to use the Bundler class"
Expand All @@ -99,7 +99,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "b809a28d",
"id": "9",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -114,7 +114,7 @@
},
{
"cell_type": "markdown",
"id": "90cd5332",
"id": "10",
"metadata": {},
"source": [
"The corresponding messages can be seen with"
Expand All @@ -123,7 +123,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "91e17fe6",
"id": "11",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -132,7 +132,7 @@
},
{
"cell_type": "markdown",
"id": "41c1ce0f",
"id": "12",
"metadata": {},
"source": [
"Lets start the non-realtime synthesis"
Expand All @@ -141,7 +141,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "027fc513",
"id": "13",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -150,7 +150,7 @@
},
{
"cell_type": "markdown",
"id": "2f73cc4c",
"id": "14",
"metadata": {},
"source": [
"Lets listen to the created audio file with the IPython Audio class that allows to read and play audio files "
Expand All @@ -159,7 +159,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "0a9a54c5",
"id": "15",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -169,7 +169,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "b53bc871",
"id": "16",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -179,7 +179,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "f5a6e0b7",
"id": "17",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -189,7 +189,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "809080b1",
"id": "18",
"metadata": {},
"outputs": [],
"source": []
Expand Down
1 change: 0 additions & 1 deletion src/sc3nb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
For example usage please refer to the user guide.
"""


from sc3nb.sc import startup, SC

from sc3nb.sc_objects.server import SCServer, ServerOptions
Expand Down
1 change: 1 addition & 0 deletions src/sc3nb/magics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module adds the Jupyter specialties such as Magics and Keyboard Shortcuts"""

import re
import sys
import warnings
Expand Down
1 change: 1 addition & 0 deletions src/sc3nb/osc/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
as this list or when nested as bundles with inner list

"""

import logging
import math
from typing import Any, Sequence, Tuple, Union
Expand Down
Loading
Loading