-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from cryoem-uoft/release-v4.2
Release v4.2.0
- Loading branch information
Showing
13 changed files
with
112 additions
and
35 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 |
---|---|---|
|
@@ -64,5 +64,7 @@ ipython_config.py | |
|
||
# Other | ||
.ruff_cache | ||
.vercel | ||
cryosparc/core.c | ||
*.dSYM | ||
Python-* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,68 @@ | ||
# Actual target is a .so file with a dynamically-determined name, but this is | ||
# close enough | ||
TARGET=cryosparc/core.c | ||
PYTHON=python3.9 | ||
PYTHON_VERSION=3.9.16 | ||
|
||
all: $(TARGET) | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Primary build target | ||
# ----------------------------------------------------------------------------- | ||
|
||
$(TARGET): cryosparc/include/cryosparc-tools/*.h cryosparc/dataset.c cryosparc/*.pyx cryosparc/*.pxd setup.py pyproject.toml | ||
python -m setup build_ext -i | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Vercel deployment-related targets | ||
# ----------------------------------------------------------------------------- | ||
|
||
Python-$(PYTHON_VERSION).tgz: | ||
curl -L https://www.python.org/ftp/python/$(PYTHON_VERSION)/Python-$(PYTHON_VERSION).tgz -o Python-$(PYTHON_VERSION).tgz | ||
|
||
Python-$(PYTHON_VERSION): Python-$(PYTHON_VERSION).tgz | ||
tar -xzf Python-${PYTHON_VERSION}.tgz | ||
|
||
python: Python-$(PYTHON_VERSION) | ||
cd Python-$(PYTHON_VERSION) && ./configure && cd .. || cd .. | ||
make -C Python-$(PYTHON_VERSION) | ||
make -C Python-$(PYTHON_VERSION) altinstall | ||
|
||
.venv/bin/python: | ||
$(PYTHON) -m venv .venv | ||
|
||
.venv/bin/pip: .venv/bin/python | ||
.venv/bin/python -m pip install -U pip | ||
|
||
.venv/bin/jupyter-book: .venv/bin/pip | ||
.venv/bin/pip install -e ".[build]" | ||
|
||
.vercel/output/config.json: | ||
mkdir -p .vercel/output | ||
echo '{"version":3,"cache":[".venv/**","build/**","docs/_build/**","Python-*.tgz","Python-*/**"]}' > .vercel/output/config.json | ||
|
||
verceldeps: | ||
yum update -y | ||
yum install bzip2-devel libffi-devel openssl-devel sqlite-devel -y | ||
|
||
vercelinstall: verceldeps python .venv/bin/python | ||
echo "Install complete" | ||
|
||
vercelbuild: .vercel/output/config.json .venv/bin/jupyter-book | ||
.venv/bin/jupyter-book build docs | ||
rm -rf .vercel/output/static && cp -R docs/_build/html .vercel/output/static | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Cleanup | ||
# ----------------------------------------------------------------------------- | ||
|
||
clean: | ||
rm -f $(TARGET) | ||
rm -f *.tgz *.tar.gz | ||
rm -f cryosparc/*.so | ||
rm -f cryosparc/core.c | ||
rm -rf build | ||
rm -rf dist | ||
rm -rf *.egg-info | ||
rm -rf Python-$(PYTHON_VERSION) | ||
|
||
.PHONY: clean all | ||
.PHONY: clean all python verceldeps vercelinstall vercelbuild |
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,4 +1,4 @@ | ||
__version__ = "4.1.3" | ||
__version__ = "4.2.0" | ||
|
||
|
||
def get_include(): | ||
|
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
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
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
{ | ||
"framework": null, | ||
"installCommand": "make vercelinstall", | ||
"buildCommand": "make vercelbuild", | ||
"outputDirectory": "docs/_build/html" | ||
} |
cf03e4d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
cryosparc-tools – ./
cryosparc-tools-git-main-structurabio.vercel.app
cryosparc-tools.vercel.app
cryosparc-tools-structurabio.vercel.app
tools.cryosparc.com