-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
115 lines (101 loc) · 3.28 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[tool.poetry]
name = "afkode"
version = "0.4.4"
description = "Personal voice command interface for iPhone on pythonista powered by Whisper and ChatGPT."
license = "MIT"
authors = ["Nick Jenkins"]
readme = "README.md"
homepage = "https://www.ndjenkins.com/"
repository = "https://github.com/ndjenkins85/afkode/"
documentation = "https://ndjenkins85.github.io/afkode/"
keywords = [
"quick_start",
"python_packaging",
"whisper",
"chatgpt",
"openai"
]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Documentation",
"Topic :: Documentation :: Sphinx",
"Topic :: Education :: Testing",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Documentation",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
]
include = ["LICENSE", "README.md"]
[tool.poetry.dependencies]
python = ">=3.8.1,<3.9"
openai = "^0.27.5"
PyAudio = "^0.2.13"
PyYAML = "^6.0"
pydub = "^0.25.1"
gTTS = "^2.3.2"
google-auth = "2.22.0"
requests = "^2.23.0"
requests_toolbelt = "^1.0.0"
urllib3 = "1.26.16"
types-requests = "^2.31.0"
black = { version = "^23.3", optional = true }
darglint = { version = "^1.8", optional = true }
flake8 = { version = "^6.0", optional = true }
flake8-annotations = { version = "^3.0", optional = true }
flake8-bandit = { version = "^4.1", optional = true }
flake8-bugbear = { version = "^23.6", optional = true }
flake8-builtins = { version = "^2.1", optional = true }
flake8-docstrings = { version = "^1.7", optional = true }
mypy = { version = "^0.910", optional = true }
safety = { version = "^2.3", optional = true }
xdoctest = { version = "^1.1", optional = true }
types-PyYAML = { version = "^6.0", optional = true }
pytest = { version = "^6.2", optional = true }
pytest-cases = { version = "^3.6", optional = true }
pytest-cov = { version = "^3.0", optional = true }
m2r2 = { version = "^0.3", optional = true }
sphinx = { version = "^6.2", optional = true }
sphinx-autodoc-typehints = { version = "^1.23", optional = true }
sphinx_rtd_theme = { version = "^1.2", optional = true }
[tool.poetry.dev-dependencies]
ipykernel = "^6.23.1"
ipython = "7.23.1"
traitlets = "^5.9.0"
jupyter = "^1.0.0"
lxml = "4.9.2"
nox = "^2023.04.22"
pre-commit = "^2.15"
MarkupSafe = "^2.0.1"
[tool.poetry.extras]
lint = ["black", "darglint", "flake8", "mypy", "safety", "xdoctest", "flake8-annotations", "flake8-bandit", "flake8-bugbear", "flake8-builtins", "flake8-docstrings", "types-PyYAML"]
tests = ["pytest", "pytest-cases", "pytest-cov"]
docs = ["m2r2", "sphinx", "sphinx_rtd_theme", "sphinx-autodoc-typehints"]
[tool.poetry.scripts]
afkode = 'afkode.run:start'
[tool.poetry-version-plugin]
source = "init"
[build-system]
# Keep poetry version same as in github actions and Dockerfile
requires = ["setuptools", "poetry>=1.1.9"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
known_local_folder = ["afkode"]
skip_glob = [
"afkode/__init__.py",
]
[tool.mypy]
python_version = 3.8
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
'sphinx_rtd_theme',
'nox.*',
'pytest'
]