def test_custom_install_command(self): app_package = 'tethys_apps' app_package_dir = '/test_app/' dependencies = 'foo' ret = tethys_app_installation.custom_install_command(app_package, app_package_dir, dependencies) self.assertEquals('tethys_apps', ret.app_package) self.assertEquals('/test_app/', ret.app_package_dir) self.assertEquals('foo', ret.dependencies) self.assertEquals('tethys_apps.app_installation', ret.__module__)
### 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='*****@*****.**', 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) } )
### Python Dependencies ### dependencies = [ 'numpy', 'scipy', 'pandas', 'geopandas', 'xarray', 'rasterio', 'shapely', 'requests', 'georaster', 'netcdf4', 'gdal' ] setup( name=release_package, version='0.0.1', tags='', description= 'An application that accepts shapefiles and DEM data for a watershed and prepares a SWAT model', long_description='', keywords='SWAT', author='Spencer McDonald, Riley Hales', author_email='', url='', license='', 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) })
long_description='', keywords='ECMWF, RAPID, Streamflow Prediction, Forecast', author='Alan D. Snow', author_email='*****@*****.**', url='https://github.com/erdc/tethysapp-streamflow_prediction_tool', license='BSD 3-Clause', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), namespace_packages=['tethysapp', 'tethysapp.' + APP_PACKAGE], include_package_data=True, extras_require={ 'tests': [ 'flake8', 'pylint', ], 'docs': [ 'sphinx', 'sphinx_rtd_theme', 'sphinxcontrib-napoleon', ] }, 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), 'cron': SetupCrontabCommand, })