-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to pyproject + pdm, add Python 3.13, drop 3.7 and 3.8
Build wheel with bundled libmediainfo for MacOS arm64 and for Linux (x886_64 and arm64). Fixes: #127 Fixes: #128 Fixes: #140
- Loading branch information
Showing
8 changed files
with
128 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
build | ||
dist | ||
docs/_build | ||
.pdm* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# https://packaging.python.org/en/latest/specifications/pyproject-toml/ | ||
[build-system] | ||
requires = ["pdm-backend", "wheel>=0.42"] | ||
build-backend = "pdm.backend" | ||
|
||
[project] | ||
name = "pymediainfo" | ||
description = "A Python wrapper for the mediainfo library." | ||
authors = [ | ||
{name = "Louis Sautier", email = "[email protected]"}, | ||
] | ||
readme = "README.rst" | ||
license = {text = "MIT"} | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: POSIX :: Linux", | ||
"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", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
] | ||
dynamic = ["version"] | ||
requires-python = ">=3.9" | ||
dependencies = [ | ||
] | ||
|
||
[project.optional-dependencies] | ||
tests = [ | ||
"pytest>=6", | ||
"pytest-cov", | ||
"pytest-xdist", | ||
] | ||
docs = [ | ||
"alabaster", | ||
"setuptools_scm", | ||
"sphinx", | ||
] | ||
dev = [ | ||
"ipython", | ||
"mypy>=1.0", | ||
"black", | ||
"isort", | ||
"flake8", | ||
"pylint", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/sbraz/pymediainfo" | ||
Documentation = "https://pymediainfo.readthedocs.io/" | ||
Bugs = "https://github.com/sbraz/pymediainfo/issues" | ||
|
||
|
||
# https://pdm-project.org/latest/ | ||
[tool.pdm.version] | ||
source = "scm" | ||
|
||
[tool.pdm.build] | ||
source-includes = ["scripts/", "tests/"] | ||
|
||
[tool.pdm.scripts.types] | ||
help = "Check type hints" | ||
cmd = "mypy --install-types --non-interactive --config-file=pyproject.toml {args:src tests}" | ||
|
||
|
||
# https://mypy.readthedocs.io/en/stable/config_file.html | ||
[tool.mypy] | ||
# global-only flags | ||
pretty = true | ||
show_error_codes = true | ||
|
||
[[tool.mypy.overrides]] | ||
module = ["pymediainfo.*"] | ||
strict = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/usr/bin/env python3 | ||
# ruff: noqa: T201 | ||
""" | ||
a demo that shows how to call pymediainfo | ||
""" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters