Skip to content

Commit

Permalink
PEP 621: Migrate from setup.py to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Dec 10, 2024
1 parent f7e3545 commit b27c4b6
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 100 deletions.
85 changes: 85 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
[build-system]
build-backend = "setuptools.build_meta"

requires = [ "setuptools>=61.2" ]

[project]
name = "speechrecognition"
version = "3.11.0" # TODO(cclauss): Make version dynamic
description = "Library for performing speech recognition, with support for several engines and APIs, online and offline."
readme.content-type = "text/x-rst"
readme.file = "README.rst"
keywords = [
"api",
"bing",
"google",
"houndify",
"ibm",
"recognition",
"snowboy",
"speech",
"sphinx",
"voice",
"wit",
]
license = { text = "BSD" }
authors = [ { name = "Anthony Zhang (Uberi)", email = "[email protected]" } ]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: Other OS",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Multimedia :: Sound/Audio :: Speech",
"Topic :: Software Development :: Libraries :: Python Modules",
]
# dynamic = [ "version" ] # TODO(cclauss): Make version dynamic
dependencies = [
"standard-aifc; python_version>='3.13'",
"typing-extensions",
]

optional-dependencies.assemblyai = [ "requests" ]
optional-dependencies.audio = [ "pyaudio>=0.2.11" ]
optional-dependencies.dev = [
"flake8",
"pytest",
"pytest-randomly",
"respx",
"rstcheck",
]
optional-dependencies.groq = [
"groq",
"httpx < 0.28"
]
optional-dependencies.openai = [
"openai",
"httpx < 0.28",
]
optional-dependencies.pocketsphinx = [ "pocketsphinx<5" ]
optional-dependencies.whisper-local = [
# "openai-whisper @ git+https://github.com/cclauss/[email protected]",
"openai-whisper",
"soundfile",
]
urls.Homepage = "https://github.com/Uberi/speech_recognition#readme"

[tool.setuptools]
include-package-data = true

[tool.setuptools.packages.find]
exclude = [ "tests.*" ] # test
namespaces = false
# [tool.setuptools.dynamic] # TODO(cclauss): Make version dynamic
# version = { attr = "speech_recognition.__init__.__version__" }
22 changes: 0 additions & 22 deletions setup.cfg

This file was deleted.

78 changes: 0 additions & 78 deletions setup.py

This file was deleted.

0 comments on commit b27c4b6

Please sign in to comment.