##// END OF EJS Templates
setuptools: versioning and licensing updated
ergo -
r29:f648fb29 0.9.0
parent child Browse files
Show More
@@ -0,0 +1,1 b''
1 0.9.0
@@ -19,13 +19,29 b' def parse_req(req):'
19 19
20 20 requires = [_f for _f in map(parse_req, REQUIREMENTS) if _f]
21 21
22 if sys.version_info[:3] < (2, 5, 0):
23 requires.append('pysqlite')
22
23 def _get_meta_var(name, data, callback_handler=None):
24 import re
25 matches = re.compile(r'(?:%s)\s*=\s*(.*)' % name).search(data)
26 if matches:
27 if not callable(callback_handler):
28 callback_handler = lambda v: v
29
30 return callback_handler(eval(matches.groups()[0]))
31
32 with open(os.path.join(here, 'src', 'appenlight', '__init__.py'), 'r') as _meta:
33 _metadata = _meta.read()
34
35 with open(os.path.join('src', 'appenlight', 'VERSION')) as _meta_version:
36 __version__ = _meta_version.read().strip()
37
38 __license__ = _get_meta_var('__license__', _metadata)
39 __author__ = _get_meta_var('__author__', _metadata)
40 __url__ = _get_meta_var('__url__', _metadata)
24 41
25 42 found_packages = find_packages('src')
26 43 found_packages.append('appenlight.migrations.versions')
27 44 setup(name='appenlight',
28 version='0.1',
29 45 description='appenlight',
30 46 long_description=README + '\n\n' + CHANGES,
31 47 classifiers=[
@@ -34,9 +50,10 b" setup(name='appenlight',"
34 50 "Topic :: Internet :: WWW/HTTP",
35 51 "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
36 52 ],
37 author='',
38 author_email='',
39 url='',
53 version=__version__,
54 license=__license__,
55 author=__author__,
56 url=__url__,
40 57 keywords='web wsgi bfg pylons pyramid',
41 58 package_dir={'': 'src'},
42 59 packages=found_packages,
@@ -48,6 +48,10 b' from appenlight.lib import cache_regions'
48 48 from appenlight.lib.ext_json import json
49 49 from appenlight.security import groupfinder, AuthTokenAuthenticationPolicy
50 50
51 __license__ = 'AGPLv3, and Commercial License'
52 __author__ = 'RhodeCode GmbH'
53 __url__ = 'http://rhodecode.com'
54
51 55 json_renderer = JSON(serializer=json.dumps, indent=4)
52 56
53 57 log = logging.getLogger(__name__)
@@ -1795,129 +1795,129 b' return{compile:function(a,b){var c=f(t);return function(a,b,d,f){function j(){N.'
1795 1795 }
1796 1796 };
1797 1797 });
1798 ;//Copyright (C) 2012 Kory Nunn
1799
1800 //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1801
1802 //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1803
1804 //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1805
1806 /*
1807
1808 This code is not formatted for readability, but rather run-speed and to assist compilers.
1809
1810 However, the code's intention should be transparent.
1811
1812 *** IE SUPPORT ***
1813
1814 If you require this library to work in IE7, add the following after declaring crel.
1815
1816 var testDiv = document.createElement('div'),
1817 testLabel = document.createElement('label');
1818
1819 testDiv.setAttribute('class', 'a');
1820 testDiv['className'] !== 'a' ? crel.attrMap['class'] = 'className':undefined;
1821 testDiv.setAttribute('name','a');
1822 testDiv['name'] !== 'a' ? crel.attrMap['name'] = function(element, value){
1823 element.id = value;
1824 }:undefined;
1825
1826
1827 testLabel.setAttribute('for', 'a');
1828 testLabel['htmlFor'] !== 'a' ? crel.attrMap['for'] = 'htmlFor':undefined;
1829
1830
1831
1832 */
1833
1834 (function (root, factory) {
1835 if (typeof exports === 'object') {
1836 if (!root.window) {
1837 var jsdom = require('jsdom').jsdom;
1838 root.window = jsdom().parentWindow;
1839 }
1840 module.exports = factory(root.window);
1841 } else if (typeof define === 'function' && define.amd) {
1842 define(factory.bind(null, window));
1843 } else {
1844 root.crel = factory(root.window);
1845 }
1846 }(this, function (window) {
1847 // based on http://stackoverflow.com/questions/384286/javascript-isdom-how-do-you-check-if-a-javascript-object-is-a-dom-object
1848 var isNode = typeof Node === 'object'
1849 ? function (object) { return object instanceof Node }
1850 : function (object) {
1851 return object
1852 && typeof object === 'object'
1853 && typeof object.nodeType === 'number'
1854 && typeof object.nodeName === 'string';
1855 };
1856
1857 function crel(){
1858 var document = window.document,
1859 args = arguments, //Note: assigned to a variable to assist compilers. Saves about 40 bytes in closure compiler. Has negligable effect on performance.
1860 element = document.createElement(args[0]),
1861 child,
1862 settings = args[1],
1863 childIndex = 2,
1864 argumentsLength = args.length,
1865 attributeMap = crel.attrMap;
1866
1867 // shortcut
1868 if(argumentsLength === 1){
1869 return element;
1870 }
1871
1872 if(typeof settings !== 'object' || isNode(settings)) {
1873 --childIndex;
1874 settings = null;
1875 }
1876
1877 // shortcut if there is only one child that is a string
1878 if((argumentsLength - childIndex) === 1 && typeof args[childIndex] === 'string' && element.textContent !== undefined){
1879 element.textContent = args[childIndex];
1880 }else{
1881 for(; childIndex < argumentsLength; ++childIndex){
1882 child = args[childIndex];
1883
1884 if(child == null){
1885 continue;
1886 }
1887
1888 if(!isNode(child)){
1889 child = document.createTextNode(child);
1890 }
1891
1892 element.appendChild(child);
1893 }
1894 }
1895
1896 for(var key in settings){
1897 if(!attributeMap[key]){
1898 element.setAttribute(key, settings[key]);
1899 }else{
1900 var attr = crel.attrMap[key];
1901 if(typeof attr === 'function'){
1902 attr(element, settings[key]);
1903 }else{
1904 element.setAttribute(attr, settings[key]);
1905 }
1906 }
1907 }
1908
1909 return element;
1910 }
1911
1912 // Used for mapping one kind of attribute to the supported version of that in bad browsers.
1913 // String referenced so that compilers maintain the property name.
1914 crel['attrMap'] = {};
1915
1916 // String referenced so that compilers maintain the property name.
1917 crel["isNode"] = isNode;
1918
1919 return crel;
1920 }));
1798 ;//Copyright (C) 2012 Kory Nunn
1799
1800 //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1801
1802 //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1803
1804 //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1805
1806 /*
1807
1808 This code is not formatted for readability, but rather run-speed and to assist compilers.
1809
1810 However, the code's intention should be transparent.
1811
1812 *** IE SUPPORT ***
1813
1814 If you require this library to work in IE7, add the following after declaring crel.
1815
1816 var testDiv = document.createElement('div'),
1817 testLabel = document.createElement('label');
1818
1819 testDiv.setAttribute('class', 'a');
1820 testDiv['className'] !== 'a' ? crel.attrMap['class'] = 'className':undefined;
1821 testDiv.setAttribute('name','a');
1822 testDiv['name'] !== 'a' ? crel.attrMap['name'] = function(element, value){
1823 element.id = value;
1824 }:undefined;
1825
1826
1827 testLabel.setAttribute('for', 'a');
1828 testLabel['htmlFor'] !== 'a' ? crel.attrMap['for'] = 'htmlFor':undefined;
1829
1830
1831
1832 */
1833
1834 (function (root, factory) {
1835 if (typeof exports === 'object') {
1836 if (!root.window) {
1837 var jsdom = require('jsdom').jsdom;
1838 root.window = jsdom().parentWindow;
1839 }
1840 module.exports = factory(root.window);
1841 } else if (typeof define === 'function' && define.amd) {
1842 define(factory.bind(null, window));
1843 } else {
1844 root.crel = factory(root.window);
1845 }
1846 }(this, function (window) {
1847 // based on http://stackoverflow.com/questions/384286/javascript-isdom-how-do-you-check-if-a-javascript-object-is-a-dom-object
1848 var isNode = typeof Node === 'object'
1849 ? function (object) { return object instanceof Node }
1850 : function (object) {
1851 return object
1852 && typeof object === 'object'
1853 && typeof object.nodeType === 'number'
1854 && typeof object.nodeName === 'string';
1855 };
1856
1857 function crel(){
1858 var document = window.document,
1859 args = arguments, //Note: assigned to a variable to assist compilers. Saves about 40 bytes in closure compiler. Has negligable effect on performance.
1860 element = document.createElement(args[0]),
1861 child,
1862 settings = args[1],
1863 childIndex = 2,
1864 argumentsLength = args.length,
1865 attributeMap = crel.attrMap;
1866
1867 // shortcut
1868 if(argumentsLength === 1){
1869 return element;
1870 }
1871
1872 if(typeof settings !== 'object' || isNode(settings)) {
1873 --childIndex;
1874 settings = null;
1875 }
1876
1877 // shortcut if there is only one child that is a string
1878 if((argumentsLength - childIndex) === 1 && typeof args[childIndex] === 'string' && element.textContent !== undefined){
1879 element.textContent = args[childIndex];
1880 }else{
1881 for(; childIndex < argumentsLength; ++childIndex){
1882 child = args[childIndex];
1883
1884 if(child == null){
1885 continue;
1886 }
1887
1888 if(!isNode(child)){
1889 child = document.createTextNode(child);
1890 }
1891
1892 element.appendChild(child);
1893 }
1894 }
1895
1896 for(var key in settings){
1897 if(!attributeMap[key]){
1898 element.setAttribute(key, settings[key]);
1899 }else{
1900 var attr = crel.attrMap[key];
1901 if(typeof attr === 'function'){
1902 attr(element, settings[key]);
1903 }else{
1904 element.setAttribute(attr, settings[key]);
1905 }
1906 }
1907 }
1908
1909 return element;
1910 }
1911
1912 // Used for mapping one kind of attribute to the supported version of that in bad browsers.
1913 // String referenced so that compilers maintain the property name.
1914 crel['attrMap'] = {};
1915
1916 // String referenced so that compilers maintain the property name.
1917 crel["isNode"] = isNode;
1918
1919 return crel;
1920 }));
1921 1921
1922 1922 ;/*globals define, module, require, document*/
1923 1923 (function (root, factory) {
@@ -10994,6 +10994,7 b" angular.module('appenlight.directives.appVersion', [])."
10994 10994 elm.text(version);
10995 10995 };
10996 10996 }])
10997
10997 10998 ;// # Copyright (C) 2010-2016 RhodeCode GmbH
10998 10999 // #
10999 11000 // # This program is free software: you can redistribute it and/or modify
@@ -11158,6 +11159,7 b" directive('confirmValidate', [function () {"
11158 11159 }
11159 11160 }
11160 11161 }])
11162
11161 11163 ;// # Copyright (C) 2010-2016 RhodeCode GmbH
11162 11164 // #
11163 11165 // # This program is free software: you can redistribute it and/or modify
@@ -11184,6 +11186,7 b" angular.module('appenlight.directives.focus', []).directive('focus', function ()"
11184 11186 });
11185 11187 }
11186 11188 });
11189
11187 11190 ;// # Copyright (C) 2010-2016 RhodeCode GmbH
11188 11191 // #
11189 11192 // # This program is free software: you can redistribute it and/or modify
@@ -11284,6 +11287,7 b" directive('isoToRelativeTime', function () {"
11284 11287 }
11285 11288 }
11286 11289 })
11290
11287 11291 ;// # Copyright (C) 2010-2016 RhodeCode GmbH
11288 11292 // #
11289 11293 // # This program is free software: you can redistribute it and/or modify
@@ -11981,6 +11985,7 b" directive('smallReportGroupList', [function () {"
11981 11985 templateUrl: 'templates/reports/small_report_group_list.html'
11982 11986 }
11983 11987 }])
11988
11984 11989 ;// # Copyright (C) 2010-2016 RhodeCode GmbH
11985 11990 // #
11986 11991 // # This program is free software: you can redistribute it and/or modify
@@ -12011,6 +12016,7 b" angular.module('appenlight.directives.smallReportList', [])."
12011 12016 templateUrl: 'templates/reports/small_report_list.html'
12012 12017 }
12013 12018 }])
12019
12014 12020 ;// # Copyright (C) 2010-2016 RhodeCode GmbH
12015 12021 // #
12016 12022 // # This program is free software: you can redistribute it and/or modify
@@ -12841,6 +12847,7 b" angular.module('appenlight.services.UUIDProvider', []).factory('UUIDProvider', f"
12841 12847 };
12842 12848 return provider;
12843 12849 });
12850
12844 12851 ;// # Copyright (C) 2010-2016 RhodeCode GmbH
12845 12852 // #
12846 12853 // # This program is free software: you can redistribute it and/or modify
General Comments 0
You need to be logged in to leave comments. Login now