-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
79 lines (69 loc) · 2.1 KB
/
setup.py
File metadata and controls
79 lines (69 loc) · 2.1 KB
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
71
72
73
74
75
76
77
78
79
#!/usr/bin/python
##
# pyunv - Parse SAP BusinessObjects universe (.unv) files
#
# To upload to PyPi:
# python setup.py register sdist upload
# To build Windows executable:
# python setup.py py2exe
#
# Copyright (c) 2009 David Peckham
#
from pyunv import __version__ as pyunv_version
import glob
import os
import string
import sys
from setuptools import setup, find_packages
from distutils.errors import *
if sys.version_info < (2, 6):
raise DistutilsError, "This package requires Python 2.6 or later"
if sys.platform[:3] == "win":
import py2exe
CLASSIFIERS = [
'Development Status :: 2 - Pre-Alpha',
'Environment :: Other Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
]
description = open("README.txt", "U").read().strip()
changes = open("CHANGES.txt", "U").read().strip()
LONG_DESCRIPTION = description + '\n\n' + changes
OPTIONS = {
"py2exe": {
"compressed": 1,
"optimize": 2,
"bundle_files": 1,
"packages": ["pyunv", "mako.cache"],
"excludes": ["Tkinter"]
# "dll_excludes": ["MSVCP90.dll",]
}
}
setup(
name = 'pyunv',
version = pyunv_version,
author = 'David Peckham',
author_email = 'dave.peckham@me.com',
classifiers = CLASSIFIERS,
data_files = [('', glob.glob('*.mako'))],
description = 'Parse SAP BusinessObjects universe (*.unv) files',
download_url = 'http://code.google.com/p/pyunv/downloads/list',
include_package_data = True,
install_requires = ['Mako'],
keywords = ['BusinessObjects', 'SAP', 'universe', 'unv'],
license = 'LGPL',
long_description = LONG_DESCRIPTION,
packages = ['pyunv'],
platforms = ['Many'],
provides = ['pyunv'],
test_suite = 'tests',
url = 'http://code.google.com/p/pyunv/',
zip_safe = False,
options = OPTIONS,
console = ['docunv.py'],
zipfile = None,
)