forked from r0oth3x49/lynda-dl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
70 lines (56 loc) · 1.87 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
# -*- coding: utf-8 -*-
#
# you can install this to a local test virtualenv like so:
# virtualenv venv
# ./venv/bin/pip install --editable .
from setuptools import setup
from lynda import __version__
def read_file(filename, alt=None):
"""
Read the contents of filename or give an alternative result instead.
"""
lines = None
try:
with open(filename) as f:
lines = f.read()
except IOError:
lines = [] if alt is None else alt
return lines
requirements = read_file('requirements.txt')
trove_classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python',
'Topic :: Education',
]
setup(
name='lynda-dl',
version=__version__,
maintainer='Nasir Khan',
maintainer_email='[email protected]',
license='MIT',
url='https://github.com/r0oth3x49/lynda-dl',
install_requires=requirements,
description='A cross-platform python based utility to download courses from lynda for personal offline use.',
keywords=['lynda-dl','lynda', 'download', 'education', 'video'],
classifiers=trove_classifiers,
packages=["lynda", "lynda._colorized"],
entry_points=dict(
console_scripts=[
'lynda-dl=lynda.lynda_dl:main'
]
),
platforms=['any'],
)