-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from interactive-sonification/develop
Release 0.3.2
- Loading branch information
Showing
38 changed files
with
2,569 additions
and
411 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
[run] | ||
source = pya | ||
|
||
[report] | ||
exclude_lines = | ||
# Have to re-enable the standard pragma | ||
pragma: no cover | ||
|
||
# Don't complain if tests don't hit defensive assertion code: | ||
raise NotImplementedError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: pya | ||
dependencies: | ||
- numpy | ||
- scipy | ||
- matplotlib | ||
- pyaudio>=0.2.11 | ||
- ffmpeg | ||
- ipywidgets | ||
- requests | ||
- notebook | ||
- sanic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
export JUPYTER_SERVER_URL | ||
pip install jupyter_server_proxy | ||
jupyter serverextension enable --py jupyter_server_proxy --sys-prefix |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import argparse | ||
import sys | ||
import os | ||
import subprocess | ||
from os.path import exists | ||
|
||
TEMP_FOLDER = 'build/git' | ||
BUILD_FOLDER = f'{TEMP_FOLDER}/build/html' | ||
VERSION_FILE = "versions.html" | ||
|
||
|
||
def generate(args): | ||
out = subprocess.check_output("git show-ref --tags -d".split(' ')) | ||
tags = [str(line.split(b' ')[1].split(b'/')[2], 'utf-8') for line in out.split(b'\n')[:-1]] | ||
branches = ['develop', 'master'] | ||
generated = [] | ||
if not exists(TEMP_FOLDER): | ||
os.system(f'git clone https://github.com/interactive-sonification/pya.git {TEMP_FOLDER}') | ||
os.makedirs(BUILD_FOLDER) | ||
# first, check which documentation to generate | ||
for t in branches + tags[::-1]: | ||
if t not in branches: | ||
t = 'tags/' + t | ||
os.system(f'git -C {TEMP_FOLDER} checkout {t}') | ||
if exists(f'{TEMP_FOLDER}/docs/'): | ||
generated.append(t) | ||
else: | ||
print(f'{t} has no docs!') | ||
# generate documentation; all versions have to be known for the dropdown menu | ||
for t in generated: | ||
os.system(f'git -C {TEMP_FOLDER} checkout {t}') | ||
os.system(f'sphinx-build -b html -D version={t} -A versions={",".join(generated)} {TEMP_FOLDER}/docs {BUILD_FOLDER}/{t}') | ||
# create index html to forward to last tagged version | ||
default_version = generated[len(branches)] if len(generated) > len(branches) else generated[-1] | ||
with open(f'{BUILD_FOLDER}/index.html', 'w') as fp: | ||
fp.write(f"""<!DOCTYPE html> | ||
<html><head> | ||
<meta http-equiv="refresh" content="0; url={default_version}/index.html"> | ||
</head></html> | ||
""") | ||
|
||
|
||
if __name__ == "__main__": | ||
generate(sys.argv[1:]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = . | ||
BUILDDIR = ../../pyadoc-test-docs | ||
# PDFBUILDDIR = /tmp | ||
# PDF = ../manual.pdf | ||
|
||
# latexpdf: | ||
# $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(PDFBUILDDIR)/latex | ||
# @echo "Running LaTeX files through pdflatex..." | ||
# make -C $(PDFBUILDDIR)/latex all-pdf | ||
# cp $(PDFBUILDDIR)/latex/*.pdf $(PDF) | ||
# @echo "pdflatex finished; see $(PDF)" | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{% extends "!layout.html" %} | ||
{% block sidebartitle %} | ||
|
||
{% if logo and theme_logo_only %} | ||
<a href="{{ pathto(master_doc) }}"> | ||
{% else %} | ||
<a href="{{ pathto(master_doc) }}" class="icon icon-home" alt="{{ _("Documentation Home") }}"> {{ project }} | ||
{% endif %} | ||
|
||
{% if logo %} | ||
{# Not strictly valid HTML, but it's the only way to display/scale | ||
it properly, without weird scripting or heaps of work | ||
#} | ||
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="{{ _('Logo') }}"/> | ||
{% endif %} | ||
</a> | ||
|
||
{% if theme_display_version %} | ||
{%- set nav_version = version %} | ||
{% if READTHEDOCS and current_version %} | ||
{%- set nav_version = current_version %} | ||
{% endif %} | ||
{% if nav_version %} | ||
|
||
<div class="version"> | ||
version: <select style="padding: 0;" onchange="location = this.value;" autocomplete="off"> | ||
{% for ver in versions.split(',') %} | ||
<option value="/{{ver}}/" {% if ver == version %}selected="selected"{% endif %}>{{ver}}</option> | ||
{% endfor %} | ||
<select> | ||
</div> | ||
|
||
|
||
{% endif %} | ||
{% endif %} | ||
|
||
{% include "searchbox.html" %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Configuration file for the Sphinx documentation builder. | ||
# | ||
# This file only contains a selection of the most common options. For a full | ||
# list see the documentation: | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html | ||
|
||
# -- Path setup -------------------------------------------------------------- | ||
|
||
# If extensions (or modules to document with autodoc) are in another directory, | ||
# add these directories to sys.path here. If the directory is relative to the | ||
# documentation root, use os.path.abspath to make it absolute, like shown here. | ||
# | ||
import os | ||
import sys | ||
sys.path.insert(0, os.path.abspath('..')) | ||
|
||
|
||
# -- Project information ----------------------------------------------------- | ||
|
||
project = 'pya' | ||
copyright = '2019, Thomas Hermann, Jiajun Yang, Alexander Neumann' | ||
author = 'Thomas Hermann, Jiajun Yang, Alexander Neumann' | ||
|
||
# The full version, including alpha/beta/rc tags | ||
version = '0.3.2' | ||
|
||
|
||
# -- General configuration --------------------------------------------------- | ||
|
||
# Add any Sphinx extension module names here, as strings. They can be | ||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | ||
# ones. | ||
extensions = ['sphinx.ext.autodoc', | ||
'sphinx.ext.napoleon', | ||
'm2r'] | ||
|
||
|
||
source_suffix = ['.rst', '.md'] | ||
|
||
# Add any paths that contain templates here, relative to this directory. | ||
templates_path = ['_templates'] | ||
|
||
# List of patterns, relative to source directory, that match files and | ||
# directories to ignore when looking for source files. | ||
# This pattern also affects html_static_path and html_extra_path. | ||
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] | ||
|
||
|
||
# -- Options for HTML output ------------------------------------------------- | ||
|
||
# The theme to use for HTML and HTML Help pages. See the documentation for | ||
# a list of builtin themes. | ||
# | ||
html_theme = 'sphinx_rtd_theme' | ||
|
||
# Add any paths that contain custom static files (such as style sheets) here, | ||
# relative to this directory. They are copied after the builtin static files, | ||
# so a file named "default.css" will overwrite the builtin "default.css". | ||
html_static_path = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
.. mdinclude:: ../README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
pya | ||
=== | ||
|
||
pya is a package to support creation and manipulation of audio signals | ||
with Python. Project can be found on `Github | ||
<https://github.com/interactive-sonification/pya>`_. | ||
For bug reports and other technical issues, please use the `Github Issues | ||
<https://github.com/interactive-sonification/pya/issues>`_. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
includeme | ||
modules | ||
|
||
|
||
Indices and tables | ||
================== | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` |
Oops, something went wrong.