Skip to content

Commit 632ee67

Browse files
committed
Avoid using setup.cfg if possible
1 parent 72621f2 commit 632ee67

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

setup.cfg

-10
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,3 @@ filename = *.py,*.pyx,*.pxd
33
ignore = E203,W503
44
max-line-length = 142
55
per-file-ignores = __init__.py: E402,F401 *.pyx,*.pxd: E211,E225,E227,E402,E999
6-
7-
[metadata]
8-
license = BSD
9-
long_description = file: README.md
10-
long_description_content_type = text/markdown
11-
project_urls =
12-
Bug Reports = https://github.com/PyAV-Org/PyAV/issues
13-
Documentation = https://pyav.org/docs
14-
Feedstock = https://github.com/conda-forge/av-feedstock
15-
Download = https://pypi.org/project/av

setup.py

+14-4
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,25 @@ def parse_cflags(raw_flags):
179179
exec(fp.read(), about)
180180

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

184184

185+
with open("README.md") as f:
186+
long_description = f.read()
187+
185188
setup(
186189
name="av",
187190
version=about["__version__"],
188191
description="Pythonic bindings for FFmpeg's libraries.",
192+
long_description=long_description,
193+
long_description_content_type="text/markdown",
194+
license="BSD",
195+
project_urls={
196+
"Bug Reports": "https://github.com/PyAV-Org/PyAV/issues",
197+
"Documentation": "https://pyav.org/docs",
198+
"Feedstock": "https://github.com/conda-forge/av-feedstock",
199+
"Download": "https://pypi.org/project/av",
200+
},
189201
author="Mike Boers",
190202
author_email="[email protected]",
191203
url="https://github.com/PyAV-Org/PyAV",
@@ -196,9 +208,7 @@ def parse_cflags(raw_flags):
196208
ext_modules=ext_modules,
197209
test_suite="tests",
198210
entry_points={
199-
"console_scripts": [
200-
"pyav = av.__main__:main",
201-
],
211+
"console_scripts": ["pyav = av.__main__:main"],
202212
},
203213
classifiers=[
204214
"Development Status :: 5 - Production/Stable",

0 commit comments

Comments
 (0)