forked from BYU-Hydroinformatics/tethysapp-tethys_app_store
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·64 lines (56 loc) · 1.84 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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 = [
"gitpython",
"toml",
"semver",
"pygithub",
"pytest",
"pytest-cov",
"pytest-django",
"pytest-lazy-fixtures",
"pytest-mock",
"pytest-asyncio",
]
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="rohitkhattar11@gmail.com",
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,
)