-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
91 lines (82 loc) · 2.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import os
import glob
import fnmatch
from setuptools import setup
def opj(*args):
path = os.path.join(*args)
return os.path.normpath(path)
badnames = [".pyc", ".py", "~", "no_"]
def find_data_files(srcdir, *wildcards, **kw):
# get a list of all files under the srcdir matching wildcards,
# returned in a format to be used for install_data
def walk_helper(arg, dirname, files):
if '.svn' in dirname:
return
names = []
lst, wildcards = arg
for wc in wildcards:
wc_name = opj(dirname, wc)
for f in files:
filename = opj(dirname, f)
if not any(bad in filename for bad in badnames):
if fnmatch.fnmatch(filename, wc_name)\
and not os.path.isdir(filename):
names.append(filename)
if names:
lst.append((dirname, names))
file_list = []
recursive = kw.get('recursive', True)
if recursive:
os.path.walk(srcdir, walk_helper, (file_list, wildcards))
else:
walk_helper((file_list, wildcards),
srcdir,
[os.path.basename(f) for f in glob.glob(opj(srcdir, '*'))])
return file_list
files = find_data_files('pyramid_debugtoolbar_sadisplay/', '*.*')
print 'files', files
setup(
name='pyramid_debugtoolbar_sadisplay',
version='0.0.1',
url='http://github.com/uralbash/pyramid_debugtoolbar_sadisplay/',
author='Svintsov Dmitry',
author_email='[email protected]',
packages=['pyramid_debugtoolbar_sadisplay'],
data_files=files,
include_package_data=True,
zip_safe=False,
test_suite="pyramid_debugtoolbar_sadisplay.tests",
license="GPL",
package_dir={'pyramid_debugtoolbar_sadisplay': 'pyramid_debugtoolbar_sadisplay'},
package_data={
'pyramid_debugtoolbar_sadisplay': ['templates/*.dbtmako', ],
},
description='Pyramid debug toolbar sadisplay. Models sa svg.',
long_description=open('README.md').read(),
install_requires=[
"sqlalchemy",
"transaction",
'zope.sqlalchemy',
'pydot',
'sadisplay',
'webtest',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Natural Language :: English',
'Natural Language :: Russian',
'Operating System :: OS Independent',
'Programming Language :: Python',
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Database",
"License :: Repoze Public License",
],
)