-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·45 lines (37 loc) · 1.64 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
from setuptools import setup, find_namespace_packages
import os
def find_resource_files(directory, relative_to=None):
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
if relative_to is not None:
paths.append(os.path.join(os.path.relpath(path, relative_to), filename))
else:
paths.append(os.path.join('..', path, filename))
return paths
# -- Apps Definition -- #
app_package = 'app_store'
release_package = 'tethysapp-' + app_package
# -- Get Resource File -- #
resource_files = find_resource_files('tethysapp/' + app_package + '/templates', 'tethysapp/' + app_package)
resource_files += find_resource_files('tethysapp/' + app_package + '/public', 'tethysapp/' + app_package)
resource_files += find_resource_files('tethysapp/' + app_package + '/scripts', 'tethysapp/' + app_package)
resource_files += find_resource_files('tethysapp/' + app_package + '/application_files', 'tethysapp/' + app_package)
# -- Python Dependencies -- #
dependencies = []
setup(
name=release_package,
version='1.0.13',
description='Tethys App Store',
long_description='This application allows you to discover, install, manage and configure Tethys Applications.',
keywords='Tethys, Warehouse, Conda',
author='Rohit Khattar',
author_email='[email protected]',
url='https://github.com/BYU-Hydroinformatics/tethysapp-tethys_app_store',
license='BSD 3-Clause License',
packages=find_namespace_packages(),
package_data={'': resource_files},
include_package_data=True,
zip_safe=False,
install_requires=dependencies,
)