Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid using setup.cfg if possible #1296

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,3 @@ filename = *.py,*.pyx,*.pxd
ignore = E203,W503
max-line-length = 142
per-file-ignores = __init__.py: E402,F401 *.pyx,*.pxd: E211,E225,E227,E402,E999

[metadata]
license = BSD
long_description = file: README.md
long_description_content_type = text/markdown
project_urls =
Bug Reports = https://github.com/PyAV-Org/PyAV/issues
Documentation = https://pyav.org/docs
Feedstock = https://github.com/conda-forge/av-feedstock
Download = https://pypi.org/project/av
18 changes: 14 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,25 @@ def parse_cflags(raw_flags):
exec(fp.read(), about)

package_folders = pathlib.Path("av").glob("**/")
package_data = {".".join(pckg.parts): ["*.pxd"] for pckg in package_folders}
package_data = {".".join(pckg.parts): ["*.pxd", "*.pyi", "*.typed"] for pckg in package_folders}


with open("README.md") as f:
long_description = f.read()

setup(
name="av",
version=about["__version__"],
description="Pythonic bindings for FFmpeg's libraries.",
long_description=long_description,
long_description_content_type="text/markdown",
license="BSD",
project_urls={
"Bug Reports": "https://github.com/PyAV-Org/PyAV/issues",
"Documentation": "https://pyav.org/docs",
"Feedstock": "https://github.com/conda-forge/av-feedstock",
"Download": "https://pypi.org/project/av",
},
author="Mike Boers",
author_email="[email protected]",
url="https://github.com/PyAV-Org/PyAV",
Expand All @@ -196,9 +208,7 @@ def parse_cflags(raw_flags):
ext_modules=ext_modules,
test_suite="tests",
entry_points={
"console_scripts": [
"pyav = av.__main__:main",
],
"console_scripts": ["pyav = av.__main__:main"],
},
classifiers=[
"Development Status :: 5 - Production/Stable",
Expand Down
Loading