File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,10 +34,7 @@ changelog = "https://docs.metatensor.org/metatomic/latest/torch/CHANGELOG.html"
3434# ## ======================================================================== ###
3535
3636[build-system ]
37- requires = [
38- " setuptools >=77" ,
39- " packaging >=23" ,
40- ]
37+ requires = [" setuptools >=77" ]
4138build-backend = " setuptools.build_meta"
4239
4340[tool .setuptools ]
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ changelog = "https://docs.metatensor.org/metatomic/latest/torch/CHANGELOG.html"
3434[build-system ]
3535requires = [
3636 " setuptools >=77" ,
37- " packaging >=23 " ,
37+ " packaging >=26 " ,
3838 " cmake" ,
3939 " metatensor-torch >=0.8.0,<0.9.0" ,
4040 # we also add torch to this list in the build backend below
Original file line number Diff line number Diff line change @@ -229,13 +229,12 @@ def create_version_number(version):
229229 release = (major , minor + 1 , 0 )
230230 pre = None
231231
232- # this is using a private API which is intended to become public soon:
233- # https://github.com/pypa/packaging/pull/698. In the mean time we'll
234- # use this
235- version ._version = version ._version ._replace (release = release )
236- version ._version = version ._version ._replace (pre = pre )
237- version ._version = version ._version ._replace (dev = ("dev" , n_commits ))
238- version ._version = version ._version ._replace (local = (git_hash ,))
232+ version = version .__replace__ (
233+ release = release ,
234+ pre = pre ,
235+ dev = n_commits ,
236+ local = git_hash ,
237+ )
239238
240239 return str (version )
241240
Original file line number Diff line number Diff line change @@ -13,3 +13,8 @@ follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1313
1414### Removed
1515-->
16+
17+ ## [ Unreleased] ( https://github.com/metatensor/metatomic/ )
18+
19+ - ` metatomic-torchsim ` is now a standalone package, containing the TorchSim
20+ integration for metatomic models.
Original file line number Diff line number Diff line change 1+ ../../LICENSE
Original file line number Diff line number Diff line change 11include AUTHORS
2+ include LICENSE
23include git_version_info
Original file line number Diff line number Diff line change 11# metatomic-torchsim
22
3- TorchSim integration for metatomic atomistic models.
3+ TorchSim integration for metatomic models.
44
5- Wraps metatomic models as TorchSim ` ModelInterface ` instances, enabling their
6- use in TorchSim molecular dynamics and other simulation workflows.
5+ This package allows you to wrap metatomic models as TorchSim ` ModelInterface `
6+ instances, enabling their use in TorchSim molecular dynamics and other
7+ simulation workflows.
78
89## Installation
910
1011``` bash
1112pip install metatomic-torchsim
1213```
1314
14- For universal potential models, see
15- [ upet] ( https://github.com/lab-cosmo/upet ) .
16-
1715## Usage
1816
1917``` python
@@ -29,5 +27,6 @@ forces = output["forces"]
2927stress = output[" stress" ]
3028```
3129
32- For full documentation, see the
33- [ torch-sim engine page] ( https://docs.metatensor.org/metatomic/latest/engines/torch-sim.html ) .
30+ For full documentation, see the [ torch-sim engine
31+ page] ( https://docs.metatensor.org/metatomic/latest/engines/torch-sim.html ) in
32+ metatomic documentation.
Original file line number Diff line number Diff line change @@ -32,13 +32,14 @@ dependencies = [
3232homepage = " https://docs.metatensor.org/metatomic/latest/engines/torch-sim.html"
3333documentation = " https://docs.metatensor.org/metatomic/latest/engines/torch-sim.html"
3434repository = " https://github.com/metatensor/metatomic/tree/main/python/metatomic_torchsim"
35+ changelog = " https://github.com/metatensor/metatomic/blob/main/python/metatomic_torchsim/CHANGELOG.md"
3536
3637# ## ======================================================================== ###
3738
3839[build-system ]
3940requires = [
4041 " setuptools >=77" ,
41- " packaging >=23 " ,
42+ " packaging >=26 " ,
4243]
4344build-backend = " setuptools.build_meta"
4445
Original file line number Diff line number Diff line change @@ -90,13 +90,12 @@ def create_version_number(version):
9090 release = (major , minor + 1 , 0 )
9191 pre = None
9292
93- # this is using a private API which is intended to become public soon:
94- # https://github.com/pypa/packaging/pull/698. In the mean time we'll
95- # use this
96- version ._version = version ._version ._replace (release = release )
97- version ._version = version ._version ._replace (pre = pre )
98- version ._version = version ._version ._replace (dev = ("dev" , n_commits ))
99- version ._version = version ._version ._replace (local = (git_hash ,))
93+ version = version .__replace__ (
94+ release = release ,
95+ pre = pre ,
96+ dev = n_commits ,
97+ local = git_hash ,
98+ )
10099
101100 return str (version )
102101
Original file line number Diff line number Diff line change 55
66ROOT = os .path .realpath (os .path .dirname (__file__ ))
77METATOMIC_TORCH = os .path .join (ROOT , "python" , "metatomic_torch" )
8+ METATOMIC_TORCHSIM = os .path .join (ROOT , "python" , "metatomic_torchsim" )
89
910
1011if __name__ == "__main__" :
1314 # when packaging a sdist for release, we should never use local dependencies
1415 METATOMIC_NO_LOCAL_DEPS = os .environ .get ("METATOMIC_NO_LOCAL_DEPS" , "0" ) == "1"
1516
16- METATOMIC_TORCHSIM = os .path .join (ROOT , "python" , "metatomic_torchsim" )
17-
1817 if not METATOMIC_NO_LOCAL_DEPS and os .path .exists (METATOMIC_TORCH ):
1918 # we are building from a git checkout
2019 extras_require ["torch" ] = f"metatomic-torch @ file://{ METATOMIC_TORCH } "
You can’t perform that action at this time.
0 commit comments