setup.py Python3 fix, PyPi classifiers

This commit is contained in:
Filippo Valsorda 2012-11-29 19:21:19 +01:00
parent cc51a7d4e0
commit 2f1765c4ea

View File

@ -1,3 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from distutils.core import setup from distutils.core import setup
import pkg_resources import pkg_resources
import sys import sys
@ -5,7 +9,7 @@
try: try:
import py2exe import py2exe
except ImportError: except ImportError:
print >> sys.stderr, "Cannot import py2exe" print("Cannot import py2exe", file=sys.stderr)
py2exe_options = { py2exe_options = {
"bundle_files": 1, "bundle_files": 1,
@ -20,7 +24,7 @@
"dest_base": "youtube-dl", "dest_base": "youtube-dl",
}] }]
execfile('youtube_dl/version.py') exec(compile(open('youtube_dl/version.py').read(), 'youtube_dl/version.py', 'exec'))
setup( setup(
name = 'youtube_dl', name = 'youtube_dl',
@ -40,4 +44,15 @@
scripts = ['bin/youtube-dl'], scripts = ['bin/youtube-dl'],
zipfile = None, zipfile = None,
classifiers = [
"Topic :: Multimedia :: Video",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: Public Domain",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3"
]
) )