π π A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
Add `pedalboard.__version__` (#22)
Resha Dwika Hefni Al-Fahsi26673a7412e4
diff --git a/pedalboard/__init__.py b/pedalboard/__init__.pyindex 6a7101f..36404dc 100644--- a/pedalboard/__init__.py+++ b/pedalboard/__init__.py@@ -17,6 +17,7 @@from pedalboard_native import * # noqa: F403, F401from .pedalboard import Pedalboard, AVAILABLE_PLUGIN_CLASSES, load_plugin # noqa: F401+from .version import __version__ # noqa: F401for klass in AVAILABLE_PLUGIN_CLASSES:vars()[klass.__name__] = klassdiff --git a/pedalboard/version.py b/pedalboard/version.pynew file mode 100644index 0000000..c591a36--- /dev/null+++ b/pedalboard/version.py@@ -0,0 +1,22 @@+#! /usr/bin/env python+#+# Copyright 2021 Spotify AB+#+# Licensed under the GNU Public License, Version 3.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# https://www.gnu.org/licenses/gpl-3.0.html+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+++MAJOR = 0+MINOR = 3+PATCH = 6++__version__ = "%d.%d.%d" % (MAJOR, MINOR, PATCH)diff --git a/setup.py b/setup.pyindex 1aebda8..6847ff7 100644--- a/setup.py+++ b/setup.py@@ -202,9 +202,14 @@ if DEBUG:this_directory = Path(__file__).parentlong_description = (this_directory / "README.md").read_text()+# read the contents of the version.py+version = {}+version_file_contents = (this_directory / "pedalboard" / "version.py").read_text()+exec(version_file_contents, version)+setup(name='pedalboard',- version='0.3.6',+ version=version['__version__'],author='Peter Sobot',author_email='[email protected]',description='A Python library for adding effects to audio.',