示例#1
0
def main():
    extra = {}

    try:
        import babel
        extra['message_extractors'] = {
            'tracdragdrop': [
                ('**.py', 'python', None),
                ('**.html', 'genshi', None),
            ],
        }
        from trac.util.dist import get_l10n_js_cmdclass
        extra['cmdclass'] = get_l10n_js_cmdclass()
    except ImportError:
        pass

    setup(
        name='TracDragDrop',
        version='0.12.0.14',
        description='Add drag-and-drop attachments feature to Trac',
        license='BSD',  # the same as Trac
        url='http://trac-hacks.org/wiki/TracDragDropPlugin',
        author='Jun Omae',
        author_email='*****@*****.**',
        install_requires=['Trac'],
        packages=find_packages(exclude=['*.tests*']),
        package_data={
            'tracdragdrop': [
                'htdocs/*.js',
                'htdocs/*.css',
                'htdocs/*.gif',
                'templates/*.html',
                'htdocs/messages/*.js',
                'locale/*/LC_MESSAGES/tracdragdrop.mo',
            ],
        },
        entry_points={
            'trac.plugins': [
                'tracdragdrop.web_ui = tracdragdrop.web_ui',
            ],
        },
        **extra)
示例#2
0
# will be useful, but WITHOUT ANY WARRANTY; without even the implied 
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
# See the GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with the Test Manager plugin for Trac. See the file LICENSE.txt. 
# If not, see <http://www.gnu.org/licenses/>.
#

from setuptools import setup

extra = {} 

try:
    from trac.util.dist import get_l10n_js_cmdclass 
    cmdclass = get_l10n_js_cmdclass() 
    if cmdclass: # OK, Babel is there
        extra['cmdclass'] = cmdclass 
        extractors = [ 
            ('**.py',                'python', None), 
            ('**/templates/**.html', 'genshi', None), 
            ('**/templates/**.txt',  'genshi', { 
                'template_class': 'genshi.template:TextTemplate' 
            }), 
        ] 
        extra['message_extractors'] = { 
            'testmanager': extractors, 
        }
except ImportError: 
    pass
示例#3
0
文件: setup.py 项目: mohsadki/dargest
#   http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing,
#  software distributed under the License is distributed on an
#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
#  KIND, either express or implied.  See the License for the
#  specific language governing permissions and limitations
#  under the License.

from setuptools import setup
import sys

extra = {}
try:
    from trac.util.dist import get_l10n_js_cmdclass
    cmdclass = get_l10n_js_cmdclass()
    if cmdclass:
        extra['cmdclass'] = cmdclass
        extractors = [
            ('**.py', 'trac.dist:extract_python', None),
            ('**/templates/**.html', 'genshi', None),
            ('**/templates/**.txt', 'genshi', {
                'template_class': 'genshi.template:TextTemplate'
            }),
        ]
        extra['message_extractors'] = {
            'bhtheme': extractors,
        }
except ImportError:
    pass
示例#4
0
from setuptools import find_packages, setup

extra = {}
try:
    import babel
    extra['message_extractors'] = {
        'tracworkflowadmin': [
            ('**.py', 'python', None),
            ('**.html', 'genshi', None),
        ],
    }
    from trac.util.dist import get_l10n_js_cmdclass
    extra['cmdclass'] = get_l10n_js_cmdclass()
except ImportError:
    pass

setup(
    name='TracWorkflowAdmin',
    version='0.12.0.2',
    packages=find_packages(exclude=['*.tests*']),
    package_data={
        'tracworkflowadmin': [
            'templates/*.html',
            'htdocs/*.gif',
            'htdocs/css/*.css',
            'htdocs/scripts/*.js',
            'htdocs/scripts/messages/*.js',
            'htdocs/themes/*/*.css',
            'htdocs/themes/*/images/*.png',
            'locale/*.*',
            'locale/*/LC_MESSAGES/*.mo',
示例#5
0
# -*- coding: utf-8 -*-

from setuptools import setup, find_packages

extra = {}

try:
    import babel
    extra['message_extractors'] = {
        'tracdragdrop': [
            ('**.py', 'python', None),
            ('**.html', 'genshi', None),
        ],
    }
    from trac.util.dist import get_l10n_js_cmdclass
    extra['cmdclass'] = get_l10n_js_cmdclass()
except ImportError:
    pass

setup(
    name = 'TracDragDrop',
    version = '0.12.0.10',
    description = 'Add drag-and-drop attachments feature to Trac',
    license = 'BSD', # the same as Trac
    url = 'http://trac-hacks.org/wiki/TracDragDropPlugin',
    author = 'Jun Omae',
    author_email = '*****@*****.**',
    install_requires = ['Trac >= 0.12'],
    packages = find_packages(exclude=['*.tests*']),
    package_data = {
        'tracdragdrop' : [
示例#6
0
            'htdocs/scripts/*.js',
            'htdocs/scripts/messages/*.js',
            'htdocs/themes/*/*.css',
            'htdocs/themes/*/images/*.png',
            'locale/*.*',
            'locale/*/LC_MESSAGES/*.mo',
        ],
    },
    entry_points={
        'trac.plugins': [
            'tracworkflowadmin.web_ui = tracworkflowadmin.web_ui',
        ],
    },
    author='OpenGroove,Inc.',
    author_email='*****@*****.**',
    url='https://trac-hacks.org/wiki/TracWorkflowAdminPlugin',
    description='Web interface for workflow administration of Trac',
    license='BSD',  # the same license as Trac
)

try:
    import babel
    from trac.util.dist import get_l10n_js_cmdclass
except ImportError:
    pass
else:
    kwargs['cmdclass'] = get_l10n_js_cmdclass()

if __name__ == '__main__':
    setup(**kwargs)