generated from njzjz/python-template
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
breaking: rename package to deepmd_gnn (#17)
Signed-off-by: Jinzhe Zeng <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
e8fab7a
commit 73085aa
Showing
16 changed files
with
78 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,4 +162,4 @@ cython_debug/ | |
#.idea/ | ||
.ruff_cache/ | ||
node_modules/ | ||
deepmd_mace/_version.py | ||
deepmd_gnn/_version.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
file(GLOB OP_SRC mace.cc) | ||
|
||
add_library(deepmd_mace MODULE ${OP_SRC}) | ||
add_library(deepmd_gnn MODULE ${OP_SRC}) | ||
# link: libdeepmd libtorch | ||
target_link_libraries(deepmd_mace PRIVATE ${TORCH_LIBRARIES}) | ||
target_link_libraries(deepmd_gnn PRIVATE ${TORCH_LIBRARIES}) | ||
target_compile_definitions( | ||
deepmd_mace | ||
deepmd_gnn | ||
PUBLIC "$<$<COMPILE_LANGUAGE:CXX>:_GLIBCXX_USE_CXX11_ABI=${OP_CXX_ABI_PT}>") | ||
if(APPLE) | ||
set_target_properties(deepmd_mace PROPERTIES INSTALL_RPATH "@loader_path") | ||
set_target_properties(deepmd_gnn PROPERTIES INSTALL_RPATH "@loader_path") | ||
else() | ||
set_target_properties(deepmd_mace PROPERTIES INSTALL_RPATH "$ORIGIN") | ||
set_target_properties(deepmd_gnn PROPERTIES INSTALL_RPATH "$ORIGIN") | ||
endif() | ||
|
||
if(BUILD_PY_IF) | ||
install(TARGETS deepmd_mace DESTINATION deepmd_mace/lib/) | ||
install(TARGETS deepmd_gnn DESTINATION deepmd_gnn/lib/) | ||
file(TOUCH ${CMAKE_CURRENT_BINARY_DIR}/__init__.py) | ||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/__init__.py | ||
DESTINATION deepmd_mace/lib) | ||
DESTINATION deepmd_gnn/lib) | ||
else(BUILD_PY_IF) | ||
install(TARGETS deepmd_mace DESTINATION lib/) | ||
install(TARGETS deepmd_gnn DESTINATION lib/) | ||
endif(BUILD_PY_IF) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,9 @@ requires = [ | |
build-backend = "scikit_build_core.build" | ||
|
||
[project] | ||
name = "deepmd-mace" | ||
name = "deepmd-gnn" | ||
dynamic = ["version"] | ||
description = "MACE plugin for DeePMD-kit." | ||
description = "DeePMD-kit plugin for graph neural network models." | ||
authors = [ | ||
{ name = "Jinzhe Zeng", email = "[email protected]"}, | ||
] | ||
|
@@ -38,11 +38,11 @@ keywords = [ | |
[project.scripts] | ||
|
||
[project.entry-points."deepmd.pt"] | ||
mace = "deepmd_mace.mace:MaceModel" | ||
nequip = "deepmd_mace.nequip:NequipModel" | ||
mace = "deepmd_gnn.mace:MaceModel" | ||
nequip = "deepmd_gnn.nequip:NequipModel" | ||
|
||
[project.urls] | ||
repository = "https://github.com/njzjz/deepmd_mace" | ||
repository = "https://github.com/njzjz/deepmd-gnn" | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
|
@@ -55,15 +55,15 @@ test = [ | |
wheel.py-api = "py2.py3" | ||
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm" | ||
sdist.include = [ | ||
"/deepmd_mace/_version.py", | ||
"/deepmd_gnn/_version.py", | ||
] | ||
|
||
[tool.scikit-build.cmake.define] | ||
BUILD_PY_IF = true | ||
BUILD_CPP_IF = false | ||
|
||
[tool.setuptools_scm] | ||
version_file = "deepmd_mace/_version.py" | ||
version_file = "deepmd_gnn/_version.py" | ||
|
||
[tool.ruff.lint] | ||
select = [ | ||
|
@@ -97,4 +97,4 @@ convention = "numpy" | |
] | ||
|
||
[tool.coverage.report] | ||
include = ["deepmd_mace/*"] | ||
include = ["deepmd_gnn/*"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters