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


Python app_installation.custom_develop_command函数代码示例

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


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

示例1: test_custom_develop_command

    def test_custom_develop_command(self):
        app_package = 'tethys_apps1'
        app_package_dir = '/test_app/'
        dependencies = 'foo'

        ret = tethys_app_installation.custom_develop_command(app_package, app_package_dir, dependencies)

        self.assertEquals('tethys_apps1', ret.app_package)
        self.assertEquals('/test_app/', ret.app_package_dir)
        self.assertEquals('foo', ret.dependencies)
        self.assertEquals('tethys_apps.app_installation', ret.__module__)
开发者ID:SarvaPulla,项目名称:tethys,代码行数:11,代码来源:test_app_installation.py

示例2: setup

### Apps Definition ###
app_package = 'hydroshare_shapefile_viewer'
release_package = 'tethysapp-' + app_package
app_class = 'hydroshare_shapefile_viewer.app:HydroshareShapefileViewer'
app_package_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tethysapp', app_package)

### Python Dependencies ###
dependencies = []

setup(
    name=release_package,
    version='1.0.0',
    description='View shapefiles from hydroshare.org',
    long_description='',
    keywords='',
    author='Sarva Pulla',
    author_email='[email protected]',
    url='www.hydroshare.org',
    license='MIT',
    packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
    namespace_packages=['tethysapp', 'tethysapp.' + app_package],
    include_package_data=True,
    zip_safe=False,
    install_requires=dependencies,
    cmdclass={
        'install': custom_install_command(app_package, app_package_dir, dependencies),
        'develop': custom_develop_command(app_package, app_package_dir, dependencies)
    }
)
开发者ID:shawncrawley,项目名称:tethys-viewer,代码行数:29,代码来源:setup.py


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