当前位置: 首页>>代码示例>>Python>>正文


Python finddata.find_package_data函数代码示例

本文整理汇总了Python中turbogears.finddata.find_package_data函数的典型用法代码示例。如果您正苦于以下问题:Python find_package_data函数的具体用法?Python find_package_data怎么用?Python find_package_data使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了find_package_data函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: find_package_data

 
 # uncomment the following lines if you fill them out in release.py
 #description=description,
 #author=author,
 #author_email=email,
 #url=url,
 #download_url=download_url,
 #license=license,
 
 install_requires = [
     "TurboGears >= 1.0.1",
 ],
 scripts = ["start-st.py"],
 zip_safe=False,
 packages=find_packages(),
 package_data = find_package_data(where='st',
                                  package='st'),
 keywords = [
     # Use keywords if you'll be adding your package to the
     # Python Cheeseshop
     
     # if this has widgets, uncomment the next line
     # 'turbogears.widgets',
     
     # if this has a tg-admin command, uncomment the next line
     # 'turbogears.command',
     
     # if this has identity providers, uncomment the next line
     # 'turbogears.identity.provider',
 
     # If this is a template plugin, uncomment the next line
     # 'python.templating.engines',
开发者ID:cdent,项目名称:st-clients,代码行数:31,代码来源:setup.py

示例2: execfile

# -*- coding: utf-8 -*-

from setuptools import setup, find_packages
from turbogears.finddata import find_package_data

import os
execfile(os.path.join("techventory2", "release.py"))

packages=find_packages()
package_data = find_package_data(where='techventory2',
    package='techventory2')
if os.path.isdir('locales'):
    packages.append('locales')
    package_data.update(find_package_data(where='locales',
        exclude=('*.po',), only_in_packages=False))

setup(
    name="techventory2",
    version=version,
    # uncomment the following lines if you fill them out in release.py
    #description=description,
    #author=author,
    #author_email=email,
    #url=url,
    #download_url=download_url,
    #license=license,

    install_requires=[
        "TurboGears >= 1.0.5",
        "SQLAlchemy>=0.3.10",
    ],
开发者ID:glassbeat,项目名称:techventory2,代码行数:31,代码来源:setup.py

示例3: execfile

# -*- coding: utf-8 -*-

from setuptools import setup, find_packages
from turbogears.finddata import find_package_data

import os
execfile(os.path.join("dragonfly", "release.py"))

packages=find_packages()
package_data = find_package_data(where='dragonfly',
    package='dragonfly')
if os.path.isdir('locales'):
    packages.append('locales')
    package_data.update(find_package_data(where='locales',
        exclude=('*.po',), only_in_packages=False))

setup(
    name="Dragonfly",
    version=version,
    # uncomment the following lines if you fill them out in release.py
    #description=description,
    #author=author,
    #author_email=email,
    #url=url,
    #download_url=download_url,
    #license=license,

    install_requires=[
        "TurboGears >= 1.0.4.4",
        "SQLAlchemy>=0.3.10",
        "Elixir>=0.4.0",
开发者ID:idiles,项目名称:dragonfly,代码行数:31,代码来源:setup.py

示例4: execfile

# Copyright L.P.Klyne 2013
# Licenced under 3 clause BSD licence

from setuptools import setup, find_packages
from turbogears.finddata import find_package_data

import os

# execfile(os.path.join("WebBrickConfig", "release.py"))

wb_packages = find_packages() + ["resources"]

## + ["resources/wbconf/"+d for d in ["Example-1","Example-2","Example-3","Thirtover"] ]

wb_package_data = find_package_data(where="WebBrickConfig", package="WebBrickConfig")
wb_resource_data = find_package_data(
    where="resources", package="resources", exclude=["*.zip"], exclude_directories=[".*", "Thirtover1"]
)
wb_package_data.update(wb_resource_data)


# wb_package_data.update({'log': []})
# wb_package_data.update({'': ["prod.cfg"]})

# ["wbconf/"+d+"/*.xml" for d in ["Example-1","Example-2","Example-3","Thirtover"] ]

setup(
    name="WebBrickConfig",
    version="2.0",
    description="WebBrick Configuration Server",
    author="Graham Klyne",
开发者ID:LawrenceK,项目名称:wb_gateway,代码行数:31,代码来源:setup.py

示例5: find_package_data

                [console_scripts]
                mirrormanager-start = mirrormanager.commands:start
 """,
 install_requires = [
     "TurboGears >= 1.0b1",
     "IPy",
     "dnspython",
     "pygeoip",
     "SQLObject",
     "python_fedora >= 0.3.14",
     "radix",
 ],
 scripts = ["start-mirrormanager.py"],
 zip_safe=False,
 packages=find_packages(),
 package_data = find_package_data(where='mirrormanager',
                                  package='mirrormanager'),
 keywords = [
     # Use keywords if you'll be adding your package to the
     # Python Cheeseshop
     
     # if this has widgets, uncomment the next line
     # 'turbogears.widgets',
     
     # if this has a tg-admin command, uncomment the next line
     # 'turbogears.command',
     
     # if this has identity providers, uncomment the next line
     # 'turbogears.identity.provider',
 
     # If this is a template plugin, uncomment the next line
     # 'python.templating.engines',
开发者ID:docent-net,项目名称:mirrormanager,代码行数:32,代码来源:setup.py

示例6: find_package_data

 #description=description,
 #author=author,
 #author_email=email,
 #url=url,
 #download_url=download_url,
 #license=license,
 
 install_requires = [
     "TurboGears >= 1.0b1",
     "SQLAlchemy",
     #"SilverCity" #CURRENTLY BROKEN
 ],
 scripts = ["start-stickum.py"],
 zip_safe=False,
 packages=find_packages(),
 package_data = find_package_data(where='stickum',
                                  package='stickum'),
 keywords = [
     # Use keywords if you'll be adding your package to the
     # Python Cheeseshop
     
     # if this has widgets, uncomment the next line
     # 'turbogears.widgets',
     
     # if this has a tg-admin command, uncomment the next line
     # 'turbogears.command',
     
     # if this has identity providers, uncomment the next line
     # 'turbogears.identity.provider',
 
     # If this is a template plugin, uncomment the next line
     # 'python.templating.engines',
开发者ID:chikatambun,项目名称:stickum,代码行数:32,代码来源:setup.py

示例7: find_package_data

 # uncomment the following lines if you fill them out in release.py
 #description=description,
 author=author,
 author_email=email,
 copyright=copyright
 #url=url,
 #download_url=download_url,
 #license=license,
 
 install_requires = [
     "TurboGears >= 1.0.2.2",
 ],
 scripts = ["start-validator.py"],
 zip_safe=False,
 packages=find_packages(),
 package_data = find_package_data(where='validator',
                                  package='validator'),
 keywords = [
     # Use keywords if you'll be adding your package to the
     # Python Cheeseshop
     
     # if this has widgets, uncomment the next line
     # 'turbogears.widgets',
     
     # if this has a tg-admin command, uncomment the next line
     # 'turbogears.command',
     
     # if this has identity providers, uncomment the next line
     # 'turbogears.identity.provider',
 
     # If this is a template plugin, uncomment the next line
     # 'python.templating.engines',
开发者ID:DirkHaehnel,项目名称:openmicroscopy,代码行数:32,代码来源:setup.py

示例8: find_package_data

        download_url=DOWNLOAD_URL,
        license=LICENSE,
        install_requires = [
            'TurboGears[future] >= 1.0',
            'TurboMail',
            'python_fedora >= 0.3.12',
            'SQLAlchemy >= 0.5.5, < 0.7',
            # Doesn't use setuptools so not on RHEL5
            #'python_bugzilla >= 0.5',
        ],
        scripts = ['start-pkgdb', 'pkgdb.wsgi', 'clients/pkgdb-client',
            'server-scripts/pkgdb-sync-yum',
            'server-scripts/pkgdb-sync-bugzilla'],
        zip_safe=False,
        packages=find_packages(),
        package_data = find_package_data(where='pkgdb',
            package='pkgdb'),
        keywords = [
            # Use keywords if you'll be adding your package to the
            # Python Cheeseshop

            # if this has widgets, uncomment the next line
            # 'turbogears.widgets',
            # if this has a tg-admin command, uncomment the next line
            # 'turbogears.command',
            'turbogears.app',
        ],
        message_extractors = {
            'pkgdb': [('**.py', 'python', None),
                ('templates/**.html', 'genshi', None),],
            },
        classifiers = [
开发者ID:fedora-infra,项目名称:packagedb,代码行数:32,代码来源:pavement.py

示例9: find_package_data

    # uncomment the following lines if you fill them out in release.py
    #description=description,
    #author=author,
    #author_email=email,
    #url=url,
    #download_url=download_url,
    #license=license,

    install_requires = [
        "TurboGears >= 1.0",
        "SQLAlchemy",
    ],
    scripts = ["start-videostore.py"],
    zip_safe=False,
    packages=find_packages(),
    package_data = find_package_data(where='videostore',
                                     package='videostore'),
    keywords = [
        # Use keywords if you'll be adding your package to the
        # Python Cheeseshop

        # if this has widgets, uncomment the next line
        # 'turbogears.widgets',

        # if this has a tg-admin command, uncomment the next line
        # 'turbogears.command',

        # if this has identity providers, uncomment the next line
        # 'turbogears.identity.provider',

        # If this is a template plugin, uncomment the next line
        # 'python.templating.engines',
开发者ID:daqing15,项目名称:elixir,代码行数:32,代码来源:setup.py

示例10: execfile

# -*- coding: utf-8 -*-

from setuptools import setup, find_packages
from setuptools.command.build_py import build_py
from turbogears.finddata import find_package_data

import os

execfile(os.path.join("rmidb2", "release.py"))

packages = find_packages()
package_data = find_package_data(where="rmidb2", package="rmidb2")
if os.path.isdir("locales"):
    packages.append("locales")
    package_data.update(find_package_data(where="locales", exclude=("*.po",), only_in_packages=False))


class build_py_and_kid(build_py):
    """Build pure Python modules and Kid templates."""

    def byte_compile(self, files):
        """Byte-compile all Python modules and all Kid templates."""
        build_py.byte_compile(self, files)
        kid_files = [f for f in files if f.endswith(".kid")]
        if not kid_files:
            return
        from distutils import log

        try:
            from kid.compiler import compile_file
        except ImportError:
开发者ID:jinmingda,项目名称:rmidb2,代码行数:31,代码来源:setup.py

示例11: find_packages

# Copyright L.P.Klyne 2013 
# Licenced under 3 clause BSD licence 

from setuptools import setup, find_packages
from turbogears.finddata import find_package_data, standard_exclude

#subpackages = ["events", "wbcnf", "WebBrick", "images"]
subpackages = ["events", "Gateway", "wbcnf", "WebBrick", "Images", "eventinterfaces", "css", "samples", "AppNotes"]

#wb_packages = find_packages()
wb_packages = find_packages() + subpackages

my_exclude = ('*.py', '*.pyc', '*~', '.*', '*.bak', '*.xhtml', '*.lore', '*.tex', '*.doc' )

wb_package_data = find_package_data(where='WebBrickDoc', package='WebBrickDoc', exclude=my_exclude)
#wb_resource_data = find_package_data(where="Gateway", package="Gateway", exclude=my_exclude )
#wb_package_data.update(wb_resource_data)

for sp in subpackages:
    wb_resource_data = find_package_data(where=sp, package=sp, exclude=my_exclude )
    wb_package_data.update(wb_resource_data)

print "wb_packages %s" % (wb_packages)
print "wb_package_data %s" % (wb_package_data)

setup(
    name="WebBrickDoc",
    version="2.0",
    
    description="Webbrick Documentation",
    long_description="""This egg contains documentation resources.""",
开发者ID:AndyThirtover,项目名称:wb_gateway,代码行数:31,代码来源:setup.py

示例12: execfile

# -*- coding: utf-8 -*-

from setuptools import setup, find_packages
from setuptools.command.build_py import build_py
from turbogears.finddata import find_package_data

import os

execfile(os.path.join("miniascaper2", "release.py"))

packages = find_packages()
package_data = find_package_data(where='miniascaper2',
    package='miniascaper2')
if os.path.isdir('locales'):
    packages.append('locales')
    package_data.update(find_package_data(where='locales',
        exclude=('*.po',), only_in_packages=False))

class build_py_and_kid(build_py):
    """Build pure Python modules and Kid templates."""

    def byte_compile(self, files):
        """Byte-compile all Python modules and all Kid templates."""
        build_py.byte_compile(self, files)
        kid_files = [f for f in files if f.endswith('.kid')]
        if not kid_files:
            return
        from distutils import log
        try:
            from kid.compiler import compile_file
        except ImportError:
开发者ID:xenyou,项目名称:tg-blog,代码行数:31,代码来源:setup.py

示例13: setup

from setuptools import setup, find_packages
from turbogears.finddata import find_package_data

setup(
    name="albumweb",
    version="1.0",
    #description="",
    #author="",
    #author_email="",
    #url="",
    install_requires = ["TurboGears >= 0.8a6"],
    scripts = ["albumweb-start.py"],
    zip_safe=False,
    packages=find_packages(),
    package_data = find_package_data(where='albumweb',
                                     package='albumweb'),
    )
    
开发者ID:agoodno,项目名称:python,代码行数:17,代码来源:setup.py

示例14: filter

# fas/static => /usr/share/fas/static
data_files = [('fas/static', filter(os.path.isfile, glob.glob('fas/static/*'))),
    ('fas/static/css', filter(os.path.isfile, glob.glob('fas/static/css/*'))),
    ('fas/static/images', filter(os.path.isfile, glob.glob('fas/static/images/*'))),
    ('fas/static/images/balloons', filter(os.path.isfile, glob.glob('fas/static/images/balloons/*'))),
    ('fas/static/js', filter(os.path.isfile, glob.glob('fas/static/js/*'))),
    ('fas/static/theme', filter(os.path.isfile, glob.glob('fas/static/theme/*'))),
    ('fas/static/theme/fas', filter(os.path.isfile, glob.glob('fas/static/theme/fas/*'))),
    ('fas/static/theme/fas/css', filter(os.path.isfile, glob.glob('fas/static/theme/fas/css/*'))),
    ('fas/static/theme/fas/images', filter(os.path.isfile, glob.glob('fas/static/theme/fas/images/*'))),
]
for langfile in filter(os.path.isfile, glob.glob('locale/*/*/*')):
    data_files.append((os.path.dirname(langfile), [langfile]))

package_data = find_package_data(where='fas', package='fas', exclude=excludeFiles, exclude_directories=excludeDataDirs,)
# Even if it doesn't exist yet, has to be in the list to be included in the build.
package_data['fas.config'].append('app.cfg')

setup(
    name=NAME,
    version=VERSION,

    description=DESCRIPTION,
    author=AUTHOR,
    author_email=EMAIL,
    url=URL,
    download_url=DOWNLOAD_URL,
    license=LICENSE,

    cmdclass={
开发者ID:ccoss,项目名称:fas,代码行数:30,代码来源:setup.py

示例15: execfile

# Copyright L.P.Klyne 2013
# Licenced under 3 clause BSD licence

from setuptools import setup, find_packages
from turbogears.finddata import find_package_data

import os

execfile(os.path.join("testserver", "release.py"))

packages = find_packages()
package_data = find_package_data(where="testserver", package="testserver")
if os.path.isdir("locales"):
    packages.append("locales")
    package_data.update(find_package_data(where="locales", exclude=("*.po",), only_in_packages=False))

setup(
    name="TestServer",
    version=version,
    # uncomment the following lines if you fill them out in release.py
    # description=description,
    # author=author,
    # author_email=email,
    # url=url,
    # download_url=download_url,
    # license=license,
    install_requires=["TurboGears >= 1.0.3.2"],
    scripts=["start-testserver.py"],
    zip_safe=False,
    packages=packages,
    package_data=package_data,
开发者ID:LawrenceK,项目名称:wb_gateway,代码行数:31,代码来源:setup.py


注:本文中的turbogears.finddata.find_package_data函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。