-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
53 lines (48 loc) · 1.41 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup, find_packages
has_setuptools = True
except ImportError:
from distutils.core import setup
def find_packages():
return [downpy]
has_setuptools = False
try:
from distutils.command.build_py import build_py_2to3 as build_py
except ImportError:
from distutils.command.build_py import build_py
if has_setuptools:
add_keywords = dict(
entry_points = { 'console_scripts': ['down = downpy.cmdline:main'], }
)
else:
add_keywords = dict(
scripts = ['down']
)
setup (
name = 'Downpy',
version = '1.2',
url = 'http://github.com/rogeriopvl/Downpy',
license = 'BSD License',
author = 'Rogerio Vicente',
author_email = 'rogeriopvl@gmail.com',
description = 'Downpy is a command line tool that downloads all files of a certain media type in a webpage.',
long_description = '',
keywords = 'download files',
packages = find_packages(),
platforms = 'any',
zip_safe = False,
include_package_data = True,
classifiers = [
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Operating System :: OS Independent',
],
cmdclass = {'build_py': build_py},
**add_keywords
)