|
12 | 12 | # included LICENSE file, or visit one of the above pages for details. |
13 | 13 | # |
14 | 14 |
|
15 | | -""" PySceneDetect setup.py |
| 15 | +""" PySceneDetect setup.py """ |
16 | 16 |
|
17 | | -To install PySceneDetect: |
18 | | -
|
19 | | - python setup.py install |
20 | | -
|
21 | | -To run the PySceneDetect unit tests (requires testvideo.mp4, link below): |
22 | | -
|
23 | | - python setup.py test |
24 | | -
|
25 | | -You can obtain the required testvideo.mp4 from the PySceneDetect [resources |
26 | | -branch](https://github.com/Breakthrough/PySceneDetect/tree/resources) on Github, |
27 | | -or the following URL: |
28 | | -
|
29 | | - https://raw.githubusercontent.com/Breakthrough/PySceneDetect/resources/tests/testvideo.mp4 |
30 | | -
|
31 | | -""" |
| 17 | +# TODO: Remove this. https://packaging.python.org/en/latest/tutorials/packaging-projects/ |
32 | 18 |
|
33 | 19 | from setuptools import setup |
34 | | -from typing import Dict, List |
35 | | - |
36 | | -def get_requires() -> List[str]: |
37 | | - """ Get Requires: Returns a list of required packages. """ |
38 | | - return [ |
39 | | - 'Click', |
40 | | - 'numpy', |
41 | | - 'tqdm', |
42 | | - 'appdirs' |
43 | | - ] |
44 | | - |
45 | | -def get_extra_requires() -> Dict[str, List[str]]: |
46 | | - """ Get Extra Requires: Returns a list of extra/optional packages. """ |
47 | | - return { |
48 | | - 'opencv': ['opencv-python'], |
49 | | - 'opencv-headless': ['opencv-python-headless'], |
50 | | - } |
51 | | - |
52 | | - |
53 | 20 | setup( |
54 | | - name='scenedetect', |
55 | | - version='0.6-rc0', |
56 | | - description='Video scene cut/shot detection program and Python library.', |
57 | | - long_description=open('dist/package-info.rst').read(), |
58 | | - author='Brandon Castellano', |
59 | | - author_email='brandon248@gmail.com', |
60 | | - url='https://github.com/Breakthrough/PySceneDetect', |
61 | | - license="BSD 3-Clause", |
62 | | - keywords="video computer-vision analysis", |
63 | | - install_requires=get_requires(), |
64 | | - extras_require=get_extra_requires(), |
65 | | - setup_requires=['pytest-runner'], |
66 | | - tests_require=['pytest'], |
67 | | - packages=['scenedetect', |
68 | | - 'scenedetect.backends', |
69 | | - 'scenedetect.cli', |
70 | | - 'scenedetect.detectors', |
71 | | - 'scenedetect.thirdparty'], |
72 | | - package_data={'': ['../LICENSE', '../USAGE.md', '../package-info.rst']}, |
73 | | - #include_package_data = True, # Must leave this to the default. |
74 | | - #test_suite="unitest.py", # Auto-detects tests from setup.cfg |
75 | | - entry_points={"console_scripts": ["scenedetect=scenedetect.__main__:main"]}, |
76 | | - classifiers=[ |
77 | | - 'Development Status :: 5 - Production/Stable', |
78 | | - 'Environment :: Console', |
79 | | - 'Environment :: Console :: Curses', |
80 | | - 'Intended Audience :: Developers', |
81 | | - 'Intended Audience :: End Users/Desktop', |
82 | | - 'Intended Audience :: System Administrators', |
83 | | - 'License :: OSI Approved :: MIT License', |
84 | | - 'Operating System :: OS Independent', |
85 | | - 'Programming Language :: Python :: 3', |
86 | | - 'Programming Language :: Python :: 3.6', |
87 | | - 'Programming Language :: Python :: 3.7', |
88 | | - 'Programming Language :: Python :: 3.8', |
89 | | - 'Programming Language :: Python :: 3.9', |
90 | | - 'Topic :: Multimedia :: Video', |
91 | | - 'Topic :: Multimedia :: Video :: Conversion', |
92 | | - 'Topic :: Multimedia :: Video :: Non-Linear Editor', |
93 | | - 'Topic :: Utilities' |
94 | | - ], |
95 | | - project_urls={ |
96 | | - 'Homepage': 'https://pyscenedetect.readthedocs.io/', |
97 | | - 'Manual': 'https://manual.scenedetect.com/en/v0.6/', |
98 | | - 'Changelog': 'https://scenedetect.com/changelog/', |
99 | | - 'Bug Tracker': 'https://github.com/Breakthrough/PySceneDetect/issues', |
100 | | - } |
| 21 | + setup_requires=["pytest-runner"], |
| 22 | + tests_require=["pytest"], |
101 | 23 | ) |
0 commit comments