samplerate 0.2.0__tar.gz → 0.2.1__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.
Files changed (32) hide show
  1. {samplerate-0.2.0 → samplerate-0.2.1}/PKG-INFO +1 -1
  2. {samplerate-0.2.0 → samplerate-0.2.1}/setup.py +3 -8
  3. {samplerate-0.2.0 → samplerate-0.2.1}/src/samplerate.cpp +2 -2
  4. {samplerate-0.2.0 → samplerate-0.2.1}/src/samplerate.egg-info/PKG-INFO +1 -1
  5. {samplerate-0.2.0 → samplerate-0.2.1}/.gitattributes +0 -0
  6. {samplerate-0.2.0 → samplerate-0.2.1}/.github/workflows/pythonpackage.yml +0 -0
  7. {samplerate-0.2.0 → samplerate-0.2.1}/.gitignore +0 -0
  8. {samplerate-0.2.0 → samplerate-0.2.1}/CMakeLists.txt +0 -0
  9. {samplerate-0.2.0 → samplerate-0.2.1}/LICENSE.rst +0 -0
  10. {samplerate-0.2.0 → samplerate-0.2.1}/MANIFEST.in +0 -0
  11. {samplerate-0.2.0 → samplerate-0.2.1}/README.rst +0 -0
  12. {samplerate-0.2.0 → samplerate-0.2.1}/docs/Makefile +0 -0
  13. {samplerate-0.2.0 → samplerate-0.2.1}/docs/changelog.rst +0 -0
  14. {samplerate-0.2.0 → samplerate-0.2.1}/docs/conf.py +0 -0
  15. {samplerate-0.2.0 → samplerate-0.2.1}/docs/index.rst +0 -0
  16. {samplerate-0.2.0 → samplerate-0.2.1}/docs/samplerate/converters.rst +0 -0
  17. {samplerate-0.2.0 → samplerate-0.2.1}/docs/samplerate/exceptions.rst +0 -0
  18. {samplerate-0.2.0 → samplerate-0.2.1}/docs/samplerate/index.rst +0 -0
  19. {samplerate-0.2.0 → samplerate-0.2.1}/docs/samplerate/samplerate.rst +0 -0
  20. {samplerate-0.2.0 → samplerate-0.2.1}/examples/play_modulation.py +0 -0
  21. {samplerate-0.2.0 → samplerate-0.2.1}/external/CMakeLists.txt +0 -0
  22. {samplerate-0.2.0 → samplerate-0.2.1}/pyproject.toml +0 -0
  23. {samplerate-0.2.0 → samplerate-0.2.1}/requirements.txt +0 -0
  24. {samplerate-0.2.0 → samplerate-0.2.1}/setup.cfg +0 -0
  25. {samplerate-0.2.0 → samplerate-0.2.1}/src/samplerate.egg-info/SOURCES.txt +0 -0
  26. {samplerate-0.2.0 → samplerate-0.2.1}/src/samplerate.egg-info/dependency_links.txt +0 -0
  27. {samplerate-0.2.0 → samplerate-0.2.1}/src/samplerate.egg-info/requires.txt +0 -0
  28. {samplerate-0.2.0 → samplerate-0.2.1}/src/samplerate.egg-info/top_level.txt +0 -0
  29. {samplerate-0.2.0 → samplerate-0.2.1}/tests/test_api.py +0 -0
  30. {samplerate-0.2.0 → samplerate-0.2.1}/tests/test_exception.py +0 -0
  31. {samplerate-0.2.0 → samplerate-0.2.1}/tests/test_resampling.py +0 -0
  32. {samplerate-0.2.0 → samplerate-0.2.1}/tests/test_resize.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: samplerate
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Monolithic python wrapper for libsamplerate based on pybind11 and NumPy
5
5
  Author-email: Robin Scheibler <fakufaku@gmail.com>, Tino Wagner <ich@tinowagner.com>
6
6
  License: MIT
@@ -4,14 +4,11 @@
4
4
  # https://github.com/pybind/cmake_example
5
5
 
6
6
  import os
7
- import platform
8
7
  from pathlib import Path
9
- import re
10
8
  import subprocess
11
9
  import sys
12
10
  from pathlib import Path
13
11
 
14
- import setuptools
15
12
  from setuptools import Extension, setup
16
13
  from setuptools.command.build_ext import build_ext
17
14
 
@@ -104,11 +101,9 @@ class CMakeBuild(build_ext):
104
101
  ]
105
102
  build_args += ["--config", cfg]
106
103
 
107
- if sys.platform.startswith("darwin"):
108
- # Cross-compile support for macOS - respect ARCHFLAGS if set
109
- archs = re.findall(r"-arch (\S+)", os.environ.get("ARCHFLAGS", ""))
110
- if archs:
111
- cmake_args += ["-DCMAKE_OSX_ARCHITECTURES={}".format(";".join(archs))]
104
+ # When building universal2 wheels, we need to set the architectures for CMake.
105
+ if "universal2" in self.plat_name:
106
+ cmake_args += ["-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64"]
112
107
 
113
108
  # Set CMAKE_BUILD_PARALLEL_LEVEL to control the parallel build level
114
109
  # across all generators.
@@ -328,8 +328,8 @@ class CallbackResampler {
328
328
 
329
329
  CallbackResampler clone() const { return CallbackResampler(*this); }
330
330
  CallbackResampler &__enter__() { return *this; }
331
- void __exit__(const py::object &exc_type, const py::object &exc,
332
- const py::object &exc_tb) {
331
+ void __exit__(const py::object &/*exc_type*/, const py::object &/*exc*/,
332
+ const py::object &/*exc_tb*/) {
333
333
  _destroy();
334
334
  }
335
335
  };
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: samplerate
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Monolithic python wrapper for libsamplerate based on pybind11 and NumPy
5
5
  Author-email: Robin Scheibler <fakufaku@gmail.com>, Tino Wagner <ich@tinowagner.com>
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes