This repository has been archived by the owner on Nov 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
64 lines (57 loc) · 1.75 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
#######################################################################
# This file is part of steve.
#
# Copyright (C) 2012-2014 Will Kahn-Greene
# Licensed under the Simplified BSD License. See LICENSE for full
# license.
#######################################################################
from setuptools import find_packages, setup
import os
import re
READMEFILE = 'README.rst'
VERSIONFILE = os.path.join('steve', '__init__.py')
VSRE = r"""^__version__ = ['"]([^'"]*)['"]"""
def get_version():
verstrline = open(VERSIONFILE, 'rt').read()
mo = re.search(VSRE, verstrline, re.M)
if mo:
return mo.group(1)
else:
raise RuntimeError(
'Unable to find version string in {0}.'.format(VERSIONFILE))
setup(
name='steve',
version=get_version(),
description='Command line importer for richard',
long_description=open(READMEFILE).read(),
license='Simplified BSD License',
author='Will Kahn-Greene',
author_email='willkg@bluesock.org',
keywords='richard videos importer',
url='http://github.com/pyvideo/steve',
zip_safe=True,
packages=find_packages(),
include_package_data=True,
install_requires=[
'click',
'html2text',
'jinja2',
'requests',
'pytest',
'tabulate',
'youtube-dl',
],
entry_points="""
[console_scripts]
steve-cmd=steve.cmdline:click_run
""",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)