/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
paste
/
util
/
/opt/alt/python37/lib/python3.7/site-packages/paste/util
mkdir
upload
Name
Size
Mode
Actions
looper/
-
0755
rm
template/
-
0755
rm
__pycache__/
-
0755
rm
classinit.py
1849
0644
edit
dl
rm
classinit.pyc
1931
0644
edit
dl
rm
classinit.pyo
1931
0644
edit
dl
rm
classinstance.py
1373
0644
edit
dl
rm
classinstance.pyc
2323
0644
edit
dl
rm
classinstance.pyo
2161
0644
edit
dl
rm
converters.py
863
0644
edit
dl
rm
converters.pyc
1174
0644
edit
dl
rm
converters.pyo
1174
0644
edit
dl
rm
dateinterval.py
2414
0644
edit
dl
rm
dateinterval.pyc
3150
0644
edit
dl
rm
dateinterval.pyo
3150
0644
edit
dl
rm
datetimeutil.py
11170
0644
edit
dl
rm
datetimeutil.pyc
10253
0644
edit
dl
rm
datetimeutil.pyo
10253
0644
edit
dl
rm
doctest24.py
99418
0644
edit
dl
rm
doctest24.pyc
84403
0644
edit
dl
rm
doctest24.pyo
84115
0644
edit
dl
rm
filemixin.py
1431
0644
edit
dl
rm
filemixin.pyc
2062
0644
edit
dl
rm
filemixin.pyo
2062
0644
edit
dl
rm
finddata.py
3841
0644
edit
dl
rm
finddata.pyc
2956
0644
edit
dl
rm
finddata.pyo
2956
0644
edit
dl
rm
findpackage.py
786
0644
edit
dl
rm
findpackage.pyc
914
0644
edit
dl
rm
findpackage.pyo
914
0644
edit
dl
rm
import_string.py
3110
0644
edit
dl
rm
import_string.pyc
3345
0644
edit
dl
rm
import_string.pyo
3345
0644
edit
dl
rm
intset.py
19131
0644
edit
dl
rm
intset.pyc
19532
0644
edit
dl
rm
intset.pyo
19532
0644
edit
dl
rm
ip4.py
9271
0644
edit
dl
rm
ip4.pyc
9243
0644
edit
dl
rm
ip4.pyo
9243
0644
edit
dl
rm
killthread.py
1229
0644
edit
dl
rm
killthread.pyc
1431
0644
edit
dl
rm
killthread.pyo
1431
0644
edit
dl
rm
looper.py.tmpta
3969
0644
edit
dl
rm
mimeparse.py
6592
0644
edit
dl
rm
mimeparse.pyc
7158
0644
edit
dl
rm
mimeparse.pyo
7158
0644
edit
dl
rm
multidict.py
11409
0644
edit
dl
rm
multidict.pyc
16720
0644
edit
dl
rm
multidict.pyo
16720
0644
edit
dl
rm
PySourceColor.py
85865
0644
edit
dl
rm
PySourceColor.pyc
55616
0644
edit
dl
rm
PySourceColor.pyo
55616
0644
edit
dl
rm
quoting.py
2476
0644
edit
dl
rm
quoting.pyc
3014
0644
edit
dl
rm
quoting.pyo
3014
0644
edit
dl
rm
scgiserver.py
5636
0644
edit
dl
rm
scgiserver.pyc
6126
0644
edit
dl
rm
scgiserver.pyo
6015
0644
edit
dl
rm
string24.py
16743
0644
edit
dl
rm
string24.pyc
18685
0644
edit
dl
rm
string24.pyo
18685
0644
edit
dl
rm
template.py.tmpta
24295
0644
edit
dl
rm
threadedprint.py
8211
0644
edit
dl
rm
threadedprint.pyc
10398
0644
edit
dl
rm
threadedprint.pyo
9051
0644
edit
dl
rm
threadinglocal.py
1484
0644
edit
dl
rm
threadinglocal.pyc
2058
0644
edit
dl
rm
threadinglocal.pyo
2058
0644
edit
dl
rm
UserDict24.py
5516
0644
edit
dl
rm
UserDict24.pyc
10513
0644
edit
dl
rm
UserDict24.pyo
10513
0644
edit
dl
rm
__init__.py
86
0644
edit
dl
rm
__init__.pyc
257
0644
edit
dl
rm
__init__.pyo
257
0644
edit
dl
rm
Edit:
/opt/alt/python37/lib/python3.7/site-packages/paste/util/finddata.py
(3841B)
# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php # Note: you may want to copy this into your setup.py file verbatim, as # you can't import this from another package, when you don't know if # that package is installed yet. import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path # Provided as an attribute, so you can append to these instead # of replicating them: standard_exclude = ('*.py', '*.pyc', '*$py.class', '*~', '.*', '*.bak') standard_exclude_directories = ('.*', 'CVS', '_darcs', './build', './dist', 'EGG-INFO', '*.egg-info') def find_package_data( where='.', package='', exclude=standard_exclude, exclude_directories=standard_exclude_directories, only_in_packages=True, show_ignored=False): """ Return a dictionary suitable for use in ``package_data`` in a distutils ``setup.py`` file. The dictionary looks like:: {'package': [files]} Where ``files`` is a list of all the files in that package that don't match anything in ``exclude``. If ``only_in_packages`` is true, then top-level directories that are not packages won't be included (but directories under packages will). Directories matching any pattern in ``exclude_directories`` will be ignored; by default directories with leading ``.``, ``CVS``, and ``_darcs`` will be ignored. If ``show_ignored`` is true, then all the files that aren't included in package data are shown on stderr (for debugging purposes). Note patterns use wildcards, or can be exact paths (including leading ``./``), and all searching is case-insensitive. """ out = {} stack = [(convert_path(where), '', package, only_in_packages)] while stack: where, prefix, package, only_in_packages = stack.pop(0) for name in os.listdir(where): fn = os.path.join(where, name) if os.path.isdir(fn): bad_name = False for pattern in exclude_directories: if (fnmatchcase(name, pattern) or fn.lower() == pattern.lower()): bad_name = True if show_ignored: print >> sys.stderr, ( "Directory %s ignored by pattern %s" % (fn, pattern)) break if bad_name: continue if (os.path.isfile(os.path.join(fn, '__init__.py')) and not prefix): if not package: new_package = name else: new_package = package + '.' + name stack.append((fn, '', new_package, False)) else: stack.append((fn, prefix + name + '/', package, only_in_packages)) elif package or not only_in_packages: # is a file bad_name = False for pattern in exclude: if (fnmatchcase(name, pattern) or fn.lower() == pattern.lower()): bad_name = True if show_ignored: print >> sys.stderr, ( "File %s ignored by pattern %s" % (fn, pattern)) break if bad_name: continue out.setdefault(package, []).append(prefix+name) return out if __name__ == '__main__': import pprint pprint.pprint( find_package_data(show_ignored=True))
Save
cmd:
run