-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (45 loc) · 1.21 KB
/
setup.py
File metadata and controls
53 lines (45 loc) · 1.21 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
import os
#from distutils.core import setup
from setuptools import setup
PACKAGES = [
'wsgilite',
'wsgilite/apps',
'wsgilite/config',
'wsgilite/extras',
'wsgilite/framework',
]
PACKAGE_DATA = {'wsgilite/extras': ['templates/*.rst']}
def walkfunc(arg, dir, files):
if '__init__.py' in files:
arg.add(dir)
if os.path.isdir('.git'):
foundpackages = set()
os.path.walk('wsgilite', walkfunc, foundpackages)
if foundpackages != set(PACKAGES):
print "Expected"
print sorted(list(set(PACKAGES)))
print "Found"
print sorted(list(foundpackages))
print "This looks funny!"
setup(
name='wsgilite',
version='0.1.0',
author='dan bornside',
author_email='dan.bornside@gmail.com',
description='a grab-bag of web app utilities for developer convenience',
long_description=open('README.rst').read(),
url='https://github.com/danbornside/wsgilite',
packages=PACKAGES,
package_data=PACKAGE_DATA,
entry_points={
'console_scripts': [
'wsgilite = wsgilite.wsgilite:main'
]},
install_requires=[
'Jinja2',
'Pygments',
'WebOb',
'docutils',
'texttable',
]
)