-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
102 additions
and
19 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# graph-diffusers | ||
Diffusion patterns for graph machine learning | ||
Diffusion patterns for graph machine learning based on GraphBLAS. |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = "0.0.0" |
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 |
---|---|---|
@@ -1,10 +1,28 @@ | ||
[tool.poetry] | ||
name = "graph-diffusers" | ||
version = "0.1.0-dev" | ||
description = "Diffusion operators for graph machine learning" | ||
version = "0.0.0" | ||
description = "Diffusion operators for graph machine learning based on GraphBLAS" | ||
authors = ["Aaron Zolnai-Lucas <[email protected]>"] | ||
license = "MIT" | ||
readme = "README.md" | ||
classifiers = [ | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Mathematics", | ||
"Topic :: Scientific/Engineering :: Artificial Intelligence", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"Intended Audience :: Education", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12" | ||
|
||
] | ||
urls = { Homepage = "https://github.com/aaronzo/graph-diffusers" } | ||
|
||
[[tool.poetry.source]] | ||
name = "pytorch-cpu" | ||
|
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
repository="$1" | ||
version="$2" | ||
|
||
cwd=$(pwd) | ||
cd `dirname $0` | ||
|
||
if [ -z "$repository" ]; then | ||
echo "Usage: $0 <repository> <version>" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$version" ]; then | ||
echo "Usage: $0 <repository> <version>" | ||
exit 1 | ||
fi | ||
|
||
echo "Running poetry lock and install ..." | ||
poetry lock --no-update | ||
poetry install | ||
|
||
echo "Setting package version ..." | ||
poetry version $2 | ||
echo "__version__ = \"$2\"" > graph_diffusers/_version.py | ||
|
||
echo "Running tests ..." | ||
poetry run pytest tests/ | ||
|
||
echo "Running tests without torch_sparse ..." | ||
poetry run pip uninstall -y torch_sparse | ||
poetry run pytest tests/ | ||
|
||
echo "Running tests without torch ..." | ||
poetry run pip uninstall -y torch | ||
poetry run pytest tests/ | ||
|
||
echo "Restoring environment ..." | ||
poetry install | ||
|
||
echo "Cleaning up dist/ ..." | ||
rm -rf dist/ | ||
|
||
echo "Publishing to $repository ..." | ||
poetry publish \ | ||
--repository $repository \ | ||
--build \ | ||
--no-interaction | ||
|
||
git tag -m "Release $version" $version | ||
git push origin $version | ||
|
||
echo "Done!" | ||
|
||
cd $cwd |