2022-07-20 13:31:08 +00:00
|
|
|
[build-system]
|
|
|
|
requires = ["poetry-core>=1.0.0"]
|
|
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
|
|
|
|
[tool.poetry]
|
|
|
|
name = "pywidevine"
|
2023-02-03 06:58:00 +00:00
|
|
|
version = "1.6.0"
|
2022-07-20 13:31:08 +00:00
|
|
|
description = "Widevine CDM (Content Decryption Module) implementation in Python."
|
|
|
|
license = "GPL-3.0-only"
|
2023-11-08 23:07:04 +00:00
|
|
|
authors = ["rlaphoenix <rlaphoenix@pm.me>"]
|
2022-07-20 14:03:37 +00:00
|
|
|
readme = "README.md"
|
|
|
|
repository = "https://github.com/rlaphoenix/pywidevine"
|
2023-11-08 23:07:04 +00:00
|
|
|
keywords = ["python", "drm", "widevine", "google"]
|
2022-07-20 14:03:37 +00:00
|
|
|
classifiers = [
|
2023-11-08 23:07:04 +00:00
|
|
|
"Development Status :: 5 - Production/Stable",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"Intended Audience :: End Users/Desktop",
|
|
|
|
"Natural Language :: English",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Topic :: Multimedia :: Video",
|
|
|
|
"Topic :: Security :: Cryptography",
|
|
|
|
"Topic :: Software Development :: Libraries :: Python Modules"
|
|
|
|
]
|
|
|
|
include = [
|
|
|
|
{ path = "CHANGELOG.md", format = "sdist" },
|
|
|
|
{ path = "README.md", format = "sdist" },
|
|
|
|
{ path = "LICENSE", format = "sdist" },
|
2022-07-20 14:03:37 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[tool.poetry.urls]
|
2023-11-08 23:07:04 +00:00
|
|
|
"Issues" = "https://github.com/rlaphoenix/pywidevine/issues"
|
|
|
|
"Discussions" = "https://github.com/rlaphoenix/pywidevine/discussions"
|
2022-08-02 00:53:29 +00:00
|
|
|
"Changelog" = "https://github.com/rlaphoenix/pywidevine/blob/master/CHANGELOG.md"
|
2022-07-20 13:31:08 +00:00
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
2023-11-08 17:20:20 +00:00
|
|
|
python = ">=3.7,<4.0"
|
|
|
|
protobuf = "^4.24.4"
|
2023-09-19 10:55:30 +00:00
|
|
|
pymp4 = "^1.4.0"
|
|
|
|
pycryptodome = "^3.19.0"
|
|
|
|
click = "^8.1.7"
|
|
|
|
requests = "^2.31.0"
|
2023-11-08 17:20:20 +00:00
|
|
|
Unidecode = "^1.3.7"
|
2023-09-19 10:55:30 +00:00
|
|
|
PyYAML = "^6.0.1"
|
2023-11-08 17:20:20 +00:00
|
|
|
aiohttp = {version = "^3.8.6", optional = true}
|
2022-07-24 20:48:09 +00:00
|
|
|
|
2023-11-08 23:07:04 +00:00
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
|
|
pre-commit = "^2.2.1"
|
|
|
|
mypy = "^1.4.1"
|
|
|
|
mypy-protobuf = "^3.4.0"
|
|
|
|
types-protobuf = "^4.24.0.4"
|
|
|
|
types-requests = "^2.31.0.10"
|
|
|
|
types-PyYAML = "^6.0.12.12"
|
|
|
|
isort = "^5.11.5"
|
|
|
|
ruff = "~0.1.4"
|
|
|
|
|
2022-07-24 20:48:09 +00:00
|
|
|
[tool.poetry.extras]
|
|
|
|
serve = ["aiohttp", "PyYAML"]
|
2022-07-20 13:47:24 +00:00
|
|
|
|
|
|
|
[tool.poetry.scripts]
|
|
|
|
pywidevine = "pywidevine.main:main"
|
2023-09-19 11:05:41 +00:00
|
|
|
|
2023-11-08 23:07:04 +00:00
|
|
|
[tool.ruff]
|
|
|
|
extend-exclude = [
|
|
|
|
"*_pb2.py",
|
|
|
|
"*.pyi",
|
|
|
|
]
|
|
|
|
force-exclude = true
|
|
|
|
line-length = 120
|
|
|
|
select = ["E4", "E7", "E9", "F", "W"]
|
|
|
|
|
|
|
|
[tool.ruff.extend-per-file-ignores]
|
|
|
|
"pywidevine/__init__.py" = ["F403"]
|
|
|
|
|
2023-09-19 11:05:41 +00:00
|
|
|
[tool.isort]
|
|
|
|
line_length = 118
|
2023-11-08 23:07:04 +00:00
|
|
|
extend_skip_glob = ["*_pb2.py", "*.pyi"]
|
|
|
|
|
|
|
|
[tool.mypy]
|
|
|
|
check_untyped_defs = true
|
|
|
|
disallow_incomplete_defs = true
|
|
|
|
disallow_untyped_defs = true
|
|
|
|
exclude = [
|
|
|
|
'_pb2.pyi?$' # generated protobuffer files
|
|
|
|
]
|
|
|
|
follow_imports = "silent"
|
|
|
|
ignore_missing_imports = true
|
|
|
|
no_implicit_optional = true
|