##// END OF EJS Templates
Harden whitespace in log messages to show newlines, tabs, and spaces....
Harden whitespace in log messages to show newlines, tabs, and spaces. Due to the additional and inconsistent height of log messages, the other columns are vertically aligned to the top rather than the middle.

File last commit:

r29:f648fb29 0.9.0
r45:5967ee78
Show More
setup.py
77 lines | 2.5 KiB | text/x-python | PythonLexer
project: initial commit
r0 import os
import sys
import re
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
REQUIREMENTS = open(os.path.join(here, 'requirements.txt')).readlines()
compiled = re.compile('([^=><]*).*')
def parse_req(req):
return compiled.search(req).group(1).strip()
requires = [_f for _f in map(parse_req, REQUIREMENTS) if _f]
setuptools: versioning and licensing updated
r29
def _get_meta_var(name, data, callback_handler=None):
import re
matches = re.compile(r'(?:%s)\s*=\s*(.*)' % name).search(data)
if matches:
if not callable(callback_handler):
callback_handler = lambda v: v
return callback_handler(eval(matches.groups()[0]))
with open(os.path.join(here, 'src', 'appenlight', '__init__.py'), 'r') as _meta:
_metadata = _meta.read()
with open(os.path.join('src', 'appenlight', 'VERSION')) as _meta_version:
__version__ = _meta_version.read().strip()
__license__ = _get_meta_var('__license__', _metadata)
__author__ = _get_meta_var('__author__', _metadata)
__url__ = _get_meta_var('__url__', _metadata)
project: initial commit
r0
found_packages = find_packages('src')
found_packages.append('appenlight.migrations.versions')
setup(name='appenlight',
description='appenlight',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"Programming Language :: Python",
"Framework :: Pylons",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
setuptools: versioning and licensing updated
r29 version=__version__,
license=__license__,
author=__author__,
url=__url__,
project: initial commit
r0 keywords='web wsgi bfg pylons pyramid',
package_dir={'': 'src'},
packages=found_packages,
include_package_data=True,
zip_safe=False,
test_suite='appenlight',
install_requires=requires,
entry_points={
'paste.app_factory': [
'main = appenlight:main'
],
'console_scripts': [
'appenlight-cleanup = appenlight.scripts.cleanup:main',
'appenlight-initializedb = appenlight.scripts.initialize_db:main',
'appenlight-migratedb = appenlight.scripts.migratedb:main',
'appenlight-reindex-elasticsearch = appenlight.scripts.reindex_elasticsearch:main',
'appenlight-static = appenlight.scripts.static:main',
'appenlight-make-config = appenlight.scripts.make_config:main',
]
}
)