-
Notifications
You must be signed in to change notification settings - Fork 91
/
setup.py
72 lines (59 loc) · 2.91 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import io
import os
import re
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
readme = f.read()
with io.open(os.path.join(here, 'CHANGELOG.md'), encoding='utf-8') as f:
changelog = f.read()
install_requires = ['rebulk>=3.2.0', 'babelfish>=0.6.0', 'python-dateutil', 'importlib-resources;python_version<"3.9"']
dev_require = ['tox', 'mkdocs', 'mkdocs-material', 'pyinstaller', 'wheel', 'python-semantic-release', 'twine']
tests_require = ['pytest', 'pytest-mock', 'pytest-benchmark', 'pytest-cov', 'pylint', 'PyYAML']
package_data = ['config/*', 'data/*']
entry_points = {
'console_scripts': [
'guessit = guessit.__main__:main'
],
}
with io.open('guessit/__version__.py', 'r') as f:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]$', f.read(), re.MULTILINE).group(1)
args = dict(name='guessit',
version=version,
description='GuessIt - a library for guessing information from video filenames.',
long_description=readme + '\n\n' + changelog,
long_description_content_type='text/markdown',
# Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=['Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Multimedia',
'Topic :: Software Development :: Libraries :: Python Modules'
],
keywords='python library release parser name filename movies series episodes animes',
author='Rémi Alvergnat',
author_email='[email protected]',
url='https://guessit-io.github.io/guessit',
download_url='https://pypi.python.org/packages/source/g/guessit/guessit-%s.tar.gz' % version,
license='LGPLv3',
packages=find_packages(),
package_data={'guessit': package_data},
include_package_data=True,
install_requires=install_requires,
entry_points=entry_points,
test_suite='guessit.test',
zip_safe=True,
extras_require={
'test': tests_require,
'dev': dev_require
})
setup(**args)