Skip to content

Commit

Permalink
move to pyproject and support more python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
David Rubinstein committed Feb 6, 2024
1 parent a019e48 commit c2010ed
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 67 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- Windows
- MacOs
py:
- "3.12"
- "3.11"
- "3.10"
- "3.9"
Expand Down
72 changes: 72 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
[project]
name = "basic-pitch"
version = "0.3.0"
description = "Basic Pitch, a lightweight yet powerful audio-to-MIDI converter with pitch bend detection."
keywords = []
classifiers = [
"Development Status :: 5 - Production/Stable",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"librosa>=0.8.0",
"mir_eval>=0.6",
"numpy>=1.18",
"pretty_midi>=0.2.9",
"resampy>=0.2.2",
"scikit-learn<=1.1.2",
"scipy>=1.4.1",
"typing_extensions",
"tensorflow>=2.4.1; platform_system != 'Darwin'",
"tensorflow-macos>=2.4.1; platform_system == 'Darwin'",
]

[metadata]
author = "Spotify"
author_email = "[email protected]"
maintainer = "Spotify"
maintainer_email = "[email protected]"
url = "https://github.com/spotify/basic-pitch"
long_description = "Basic Pitch, a lightweight yet powerful audio-to-MIDI converter with pitch bend detection. See https://github.com/spotify/basic-pitch for more details."
license = "Apache 2.0"

[tool.setuptools.packages.find]
where = ["."]
exclude = ["tests"]
namespaces = false

[project.scripts]
basic-pitch = "basic_pitch.predict:main"

[project.optional-dependencies]
test = [
"coverage>=5.0.2",
"pytest>=6.1.1",
"pytest-mock",
]
docs = ["mkdocs>=1.0.4"]
dev = [
"basic_pitch[test,docs]",
"mypy",
"tox",
]

[tool.distutils.bdist_wheel]
universal = true

[build-system]
requires = [
"setuptools>=40.8.0",
"wheel",
"cython<3",
]
67 changes: 0 additions & 67 deletions setup.cfg

This file was deleted.

0 comments on commit c2010ed

Please sign in to comment.