-
Notifications
You must be signed in to change notification settings - Fork 15
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
1 parent
a853399
commit a059d86
Showing
7 changed files
with
42 additions
and
17 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# minimum needed to build jupytercad. | ||
datamodel-code-generator>=0.23.0 | ||
pydantic==2.4 | ||
pydantic==2.4.2 |
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,24 @@ | ||
import subprocess | ||
from pathlib import Path | ||
|
||
|
||
def execute(cmd: str, cwd=None): | ||
subprocess.run(cmd.split(" "), check=True, cwd=cwd) | ||
|
||
|
||
def build_packages(): | ||
root_path = Path(__file__).parents[1] | ||
requirements_build_path = root_path / "requirements-build.txt" | ||
install_build_deps = f"python -m pip install -r {requirements_build_path}" | ||
|
||
python_package_prefix = "python" | ||
python_packages = ["jupytercad-core", "jupytercad-lab", "jupytercad-app"] | ||
|
||
execute(install_build_deps) | ||
|
||
for py_package in python_packages: | ||
execute("python -m build", cwd=root_path / python_package_prefix / py_package) | ||
|
||
|
||
if __name__ == "__main__": | ||
build_packages() |
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