forked from instructed-glacier-model/igm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·58 lines (52 loc) · 1.47 KB
/
setup.py
File metadata and controls
executable file
·58 lines (52 loc) · 1.47 KB
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
#!/usr/bin/env python
# Copyright (C) 2021-2022 Guillaume Jouvet <guillaume.jouvet@unil.ch>
# Published under the GNU GPL (Version 3)
from setuptools import setup, find_packages
import os
def package_files(directory):
paths = []
for path, __, filenames in os.walk(directory):
for filename in filenames:
paths.append(os.path.join("..", path, filename))
return paths
with open("README.md", "r") as f:
readme = f.read()
setup(
name="igm-model",
version="3.1.1",
author="Guillaume Jouvet",
author_email="guillaume.jouvet@unil.ch",
url="https://github.com/jouvetg/igm",
license="gpl-3.0",
packages=find_packages(include=["igm", "igm.*"]),
include_package_data=True,
package_data={"igm": package_files("igm/emulators")},
entry_points={"console_scripts": ["igm_run = igm.igm_run:main"]},
description="IGM - a glacier evolution model",
long_description=readme,
long_description_content_type="text/markdown",
install_requires=[
"tensorflow[and-cuda]==2.15.1",
"tensorflow-probability==0.23.0",
"matplotlib",
"scipy",
"netcdf4>=1.7",
"xarray",
"rasterio",
"pyproj",
"geopandas",
"oggm",
"salem",
"pyyaml",
"importlib_resources",
"tqdm",
"hydra-core",
"omegaconf",
"nvtx",
"typeguard",
"rich",
],
extras_require={
"optuna": ["optuna>=3.0"],
},
)