|
| 1 | + |
| 2 | +[project] |
| 3 | +name = "ampl" |
| 4 | +version = "1.0" |
| 5 | + |
| 6 | +# NOTE: |
| 7 | +# * deepchem only works with python <= 3.10 (and possibly 3.11) |
| 8 | +# - seems to install in python 3.11 but website says suports only |
| 9 | +# python <= 3.10 |
| 10 | +# - does not work with python 3.12+ due to tensorflow-addons dependency |
| 11 | +# which is no longer supported and only has support up to python 3.11 |
| 12 | +# * ampl only works with python 3.9, 3.10, 3.11 (due to deepchem) |
| 13 | +# - encoders / decoders need python 3.9 |
| 14 | +# - everthing else works with python 3.9 and 3.10 (and possibly 3.11) |
| 15 | +# * this will install on python 3.12 but won't have deepchem |
| 16 | +requires-python = ">=3.9,<3.13" |
| 17 | + |
| 18 | +# Dependencies for all Python versions |
| 19 | +dependencies = [ |
| 20 | + "setuptools", |
| 21 | + "pip", |
| 22 | + |
| 23 | + # core dependencies |
| 24 | + "torch_cluster", |
| 25 | + "torch_scatter", |
| 26 | + "torch_sparse", |
| 27 | + "torch_spline_conv", |
| 28 | + "torch-geometric", |
| 29 | + |
| 30 | + # deepchem 2.8.0 deps [NOTE: may not work on python >= 3.11] |
| 31 | + "deepchem[torch,tensorflow]==2.8.0; python_version >= '3.10' and python_version < '3.12'", |
| 32 | + |
| 33 | + # deepchem[tensorflow] deps |
| 34 | + "tensorflow-cpu==2.14.0; python_version >= '3.10' and python_version < '3.12'", |
| 35 | + |
| 36 | + # atomsci-ampl deps [need to be added to atomsci-ampl] |
| 37 | + "molvs", |
| 38 | + "xgboost", |
| 39 | + "umap-learn", |
| 40 | + "imbalanced-learn", |
| 41 | + "ipykernel", |
| 42 | + "ipython", |
| 43 | + "pytest", |
| 44 | + "seaborn", |
| 45 | + "matplotcheck", |
| 46 | + |
| 47 | + # code repos |
| 48 | + "atomsci-ampl; python_version >= '3.10' and python_version < '3.12'", |
| 49 | + "atomsci-clients", |
| 50 | + |
| 51 | + # rdkit |
| 52 | + "rdkit>=2024.3.5; python_version >= '3.10'", |
| 53 | + |
| 54 | + "numpy<2", |
| 55 | + |
| 56 | + # python specific versions [dgl / pyg dependent] |
| 57 | + "dgl==2.1.0; python_version >= '3.10'", |
| 58 | + |
| 59 | + "pyg_lib==0.3.1; python_version >= '3.10' and python_version < '3.12'", |
| 60 | + "pyg_lib==0.4.0; python_version >= '3.12'", |
| 61 | + |
| 62 | + "torch==2.1.2+cpu; python_version >= '3.10' and python_version < '3.12'", |
| 63 | + "torch==2.3.1+cpu; python_version >= '3.12'" |
| 64 | +] |
| 65 | + |
| 66 | + |
| 67 | +[tool.uv] |
| 68 | +allow-insecure-host = [ |
| 69 | + "download.pytorch.org", |
| 70 | + "data.dgl.ai", |
| 71 | + "data.pyg.org" |
| 72 | +] |
| 73 | + |
| 74 | +[[tool.uv.index]] |
| 75 | +name = "pytorch" |
| 76 | +url = "https://download.pytorch.org/whl/cpu/torch_stable.html" |
| 77 | +format = "flat" |
| 78 | + |
| 79 | +[[tool.uv.index]] |
| 80 | +name = "dgl" |
| 81 | +url = "https://data.dgl.ai/wheels/repo.html" |
| 82 | +format = "flat" |
| 83 | + |
| 84 | +[[tool.uv.index]] |
| 85 | +# NOTE: pyg libraries for torch >= 2.2 seem to have GLIBC incompatibilities on LC |
| 86 | +name = "pyg_lib_py312" |
| 87 | +url = "https://data.pyg.org/whl/torch-2.3.1+cpu.html" |
| 88 | +format = "flat" |
| 89 | + |
| 90 | +[[tool.uv.index]] |
| 91 | +name = "pyg_lib_py310" |
| 92 | +url = "https://data.pyg.org/whl/torch-2.1.2+cpu.html" |
| 93 | +format = "flat" |
| 94 | + |
| 95 | +[tool.uv.sources] |
| 96 | +# code repos |
| 97 | +atomsci-ampl = [ |
| 98 | + { git = "https://github.com/ATOMScience-org/AMPL.git", rev = "py310", marker = "python_version >= '3.10'"} |
| 99 | +] |
| 100 | +atomsci-clients = { git = "ssh://git@czgitlab.llnl.gov:7999/atom/clients.git", rev = "master" } |
| 101 | + |
| 102 | +# dgl |
| 103 | +dgl = { index = "dgl" } |
| 104 | + |
| 105 | +# torch |
| 106 | +torch = { index = "pytorch" } |
| 107 | +pyg_lib = [ |
| 108 | + { index = "pyg_lib_py310", marker = "python_version >= '3.10' and python_version < '3.12'" }, |
| 109 | + { index = "pyg_lib_py312", marker = "python_version >= '3.12'" }, |
| 110 | +] |
| 111 | +torch_cluster = [ |
| 112 | + { index = "pyg_lib_py310", marker = "python_version >= '3.10' and python_version < '3.12'" }, |
| 113 | + { index = "pyg_lib_py312", marker = "python_version >= '3.12'" }, |
| 114 | +] |
| 115 | +torch_scatter = [ |
| 116 | + { index = "pyg_lib_py310", marker = "python_version >= '3.10' and python_version < '3.12'" }, |
| 117 | + { index = "pyg_lib_py312", marker = "python_version >= '3.12'" }, |
| 118 | +] |
| 119 | +torch_sparse = [ |
| 120 | + { index = "pyg_lib_py310", marker = "python_version >= '3.10' and python_version < '3.12'" }, |
| 121 | + { index = "pyg_lib_py312", marker = "python_version >= '3.12'" }, |
| 122 | +] |
| 123 | +torch_spline_conv = [ |
| 124 | + { index = "pyg_lib_py310", marker = "python_version >= '3.10' and python_version < '3.12'" }, |
| 125 | + { index = "pyg_lib_py312", marker = "python_version >= '3.12'" }, |
| 126 | +] |
| 127 | + |
0 commit comments