forked from MiraGeoscience/geoapps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
124 lines (111 loc) · 4.65 KB
/
pyproject.toml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[tool.poetry]
name = "geoapps"
version = "0.9.2"
description = "Open-sourced Applications in Geoscience"
authors = ["Mira Geoscience <[email protected]>"]
repository = "https://github.com/MiraGeoscience/geoapps"
documentation = "https://geoapps.readthedocs.io/en/latest/"
homepage = "https://mirageoscience.com"
readme = "README.md"
keywords = ["geology", "geophysics", "earth sciences"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Physics",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"Natural Language :: English",
]
[tool.poetry.dependencies]
python = "^3.9, < 3.11"
dask = {version = "2022.10.0", extras = ["distributed"]}
distributed = "2022.10.0"
discretize = "~0.7.4" # also in simpeg
fsspec = "2022.*" # also in simpeg
matplotlib = "^3.5.1" # also in simpeg and geoana
numpy = "!=1.19.4, ^1.21.5" # also in simpeg and geoana
pandas = "^1.3.5" # also in simpeg
scikit-learn = "^1.0.2" # also in simpeg
scipy = "^1.7.3" # also in simpeg and geoana
tqdm = "^4.64.0"
## "soft" dependencies
fiona = {version = "^1.8.21", optional = true}
gdal = {version = "^3.5.1", optional = true}
ipyfilechooser = {version = "~0.6.0", optional = true}
ipywidgets = {version = "^7.6.5", optional = true}
plotly = {version = "^5.8.0", optional = true}
scikit-image = {version = "~0.19.2", optional = true}
jupyter-dash = {version = "^0.4.2", optional = true}
dash-daq = {version = "^0.5.0", optional = true}
## indirect dependencies, forcing them here for installation through Conda not pip
empymod = "^2.1.3" # from simpeg and geoana
geoana = "~0.0.6" # from simpeg
h5py = "^3.2.1" # from geoh5py
mkl = "2022.*" # from simpeg
properties = "~0.6.1" # from simpeg and geoana
pydiso = "~0.0.3" # from simpeg
pymatsolver = "~0.2.0" # from simpeg
utm = "~0.7.0"
zarr = "^2.8.1" # from simpgeg using Dask
## pip dependencies
# to be specified to work with conda-lock
# - from PyPI: my_package = { version = "1.2.3", source = "pypi" }
# - from URL:
# - for a tags: my_package = { url = "https://github.com/ORGANISATION/REPO/archive/refs/tags/VERSION_TAG.zip#sha256=None" }
# - for a branch: my_package = { url = "https://github.com/ORGANISATION/REPO/archive/refs/heads/BRANCH.zip#sha256=None" }
# Note - conda-lock does not support the syntax: my_package = { git = ... }
# while poetry2conda supports only { git = "...", tag = "..." }, and not { url = ... }
geoh5py = { version = "0.5.0", source = "pypi" }
simpeg_archive = {version = "0.9.1.dev5", source = "pypi"}
mira-simpeg = {version = "0.15.1dev7", source = "pypi"}
#mira-simpeg = {url = "https://github.com/MiraGeoscience/simpeg/archive/refs/heads/release/v0.15.1.dev7+geoapps.0.9.1.zip#sha256=None"}
param-sweeps = {version = "0.1.3", source = "pypi"}
[tool.poetry.dev-dependencies]
pylint = "^2.14.4"
pytest = "^7.1.2"
pytest-cov = "^3.0.0"
requests = "^2.27.1" # for tests only
toml = "*" # for tests only
[tool.poetry.extras]
full = [
"fiona",
"gdal",
"ipyfilechooser",
"ipywidgets",
"plotly",
"scikit-image",
"jupyter-dash",
"dash-daq"
]
[tool.conda-lock]
platforms = ['win-64', 'osx-64', 'linux-64']
channels = ['conda-forge', 'defaults']
[tool.conda-lock.dependencies]
libblas = "*=*mkl"
[tool.isort]
# settings for compatibility between ``isort`` and ``black`` formatting
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 88
# auto-updated by seed-isort-config
known_third_party = ["Add2Build", "SimPEG", "StringIO", "add_url_tag_sha256", "autodoc", "dash", "dash_daq", "dask", "discretize", "edit_on_github", "environmentSetup", "flask", "geoh5py", "ipywidgets", "jupyter_dash", "matplotlib", "numpy", "osgeo", "pandas", "param_sweeps", "plotly", "pymatsolver", "pytest", "requests", "run_conda_lock", "scipy", "simpeg_archive", "skimage", "sklearn", "toml", "tqdm", "traitlets", "urllib2"]
[tool.black]
# defaults are just fine
[tool.poetry2conda]
name = "geoapps"
## usage of poetry2conda
# As poetry2conda does not support url sources for pip dependencies,
# temporarily edit this file and use git sources instead, with 'tag=' indifferently whether it is actually a branch or rev.
#> poetry2conda pyproject.toml -E full environment.yml
#> poetry2conda pyproject.toml -E full --dev environment-dev.yml
[build-system]
requires = ["poetry-core>=1.0.0", "setuptools"]
build-backend = "poetry.core.masonry.api"