Ejemplo n.º 1
0
        # skip to next iteration if comment or empty line
        if line.startswith('#') or line == '':
            continue

        if line.startswith('http'):
            continue

        # add line to requirements
        requirements.append(line)

    return requirements


setup(
    name='nodeshot',
    version=get_version(),
    description="Extensible Django web application for management of community-led georeferenced data.",
    long_description=open('README.rst').read(),
    author='Federico Capoano',
    author_email='*****@*****.**',
    license='GPL3',
    url='https://github.com/ninuxorg/nodeshot',
    download_url='https://github.com/ninuxorg/nodeshot/releases',
    packages=find_packages(exclude=['docs', 'docs.*']),
    include_package_data=True,
    zip_safe=False,
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: GPL3 License',
Ejemplo n.º 2
0
    for line in open('requirements.txt').readlines():
        # skip to next iteration if comment or empty line
        if line.startswith('#') or line == '' or line.startswith(
                'http') or line.startswith('git'):
            continue

        # add line to requirements
        requirements.append(line)

    return requirements


setup(
    name='nodeshot',
    version=get_version(),
    description=
    "Extensible Django web application for management of community-led georeferenced data.",
    long_description=open('README.rst').read(),
    author='Federico Capoano',
    author_email='*****@*****.**',
    license='GPL3',
    url='https://github.com/ninuxorg/nodeshot',
    download_url='https://github.com/ninuxorg/nodeshot/releases',
    packages=find_packages(exclude=['docs', 'docs.*']),
    include_package_data=True,
    zip_safe=False,
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
Ejemplo n.º 3
0
from django.utils import timezone
from django.views.decorators.http import last_modified
from django.views.i18n import javascript_catalog
from django.views.decorators.cache import cache_page
from nodeshot import get_version

last_modified_date = timezone.now()

# The value returned by get_version() must change when translations change.
@cache_page(86400, key_prefix='js18n-%s' % get_version())
@last_modified(lambda req, **kw: last_modified_date)
def jsi18n(request, domain='djangojs', packages=None):
    return javascript_catalog(request, domain, packages)