setup.py Python3 fix, PyPi classifiers
[youtube-dl] / setup.py
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3
4 from __future__ import print_function
5 from distutils.core import setup
6 import pkg_resources
7 import sys
8
9 try:
10     import py2exe
11 except ImportError:
12     print("Cannot import py2exe", file=sys.stderr)
13
14 py2exe_options = {
15     "bundle_files": 1,
16     "compressed": 1,
17     "optimize": 2,
18     "dist_dir": '.',
19     "dll_excludes": ['w9xpopen.exe']
20 }
21
22 py2exe_console = [{
23     "script":"./youtube_dl/__main__.py",
24     "dest_base": "youtube-dl",
25 }]
26
27 exec(compile(open('youtube_dl/version.py').read(), 'youtube_dl/version.py', 'exec'))
28
29 setup(
30     name = 'youtube_dl',
31     version = __version__,
32     description = 'Small command-line program to download videos from YouTube.com and other video sites',
33     url = 'https://github.com/rg3/youtube-dl',
34     author = 'Ricardo Garcia',
35     maintainer = 'Philipp Hagemeister',
36     maintainer_email = 'phihag@phihag.de',
37     packages = ['youtube_dl'],
38
39     test_suite = 'nose.collector',
40     test_requires = ['nosetest'],
41
42     console = py2exe_console,
43     options = { "py2exe": py2exe_options },
44
45     scripts = ['bin/youtube-dl'],
46     zipfile = None,
47
48     classifiers = [
49         "Topic :: Multimedia :: Video",
50         "Development Status :: 5 - Production/Stable",
51         "Environment :: Console",
52         "License :: Public Domain",
53         "Programming Language :: Python :: 2.6",
54         "Programming Language :: Python :: 2.7",
55         "Programming Language :: Python :: 3",
56         "Programming Language :: Python :: 3.3"
57     ]
58 )