-
Notifications
You must be signed in to change notification settings - Fork 26
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 #190 from gramaziokohler/compas2.0
Compas2.0
- Loading branch information
Showing
16 changed files
with
62 additions
and
454 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
Binary file not shown.
Binary file not shown.
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,23 +1,15 @@ | ||
attrs >=17.4 | ||
bump2version >=0.5.11 | ||
black | ||
bump2version >=1.0.1 | ||
check-manifest >=0.36 | ||
compas_invocations | ||
doc8 | ||
flake8 | ||
graphviz | ||
importlib_metadata <5.0 | ||
invoke >=0.14 | ||
ipykernel | ||
ipython >=5.8 | ||
isort | ||
m2r | ||
black >=24.0 | ||
nbsphinx | ||
pydocstyle | ||
pytest >=3.2 | ||
pytest-mock | ||
sphinx_compas2_theme | ||
sphinx ==7.1.2 | ||
twine | ||
matplotlib | ||
Rtree | ||
compas_invocations | ||
wheel | ||
-e . |
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 @@ | ||
rtree | ||
compas==2.0.0beta4 | ||
compas >=2.0, <3.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 was deleted.
Oops, something went wrong.
Binary file removed
BIN
-1.52 KB
src/compas_timber/ghpython/ghuser_manual/CT_SelectionList_AttributeName.ghuser
Binary file not shown.
Binary file removed
BIN
-1.43 KB
src/compas_timber/ghpython/ghuser_manual/CT_SelectionList_JointType.ghuser
Binary file not shown.
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,52 @@ | ||
from __future__ import absolute_import | ||
from __future__ import division | ||
from __future__ import print_function | ||
|
||
import glob | ||
import os | ||
|
||
import compas.plugins | ||
from compas_ghpython.components import install_userobjects | ||
from compas_ghpython.components import uninstall_userobjects | ||
|
||
|
||
@compas.plugins.plugin(category="install") | ||
def installable_rhino_packages(): | ||
return ["compas_timber"] | ||
|
||
|
||
@compas.plugins.plugin(category="install") | ||
def after_rhino_install(installed_packages): | ||
if "compas_timber" not in installed_packages: | ||
return [] | ||
|
||
installed_objects = install_userobjects(os.path.join(os.path.dirname(__file__), "components", "ghuser")) | ||
|
||
return [ | ||
( | ||
"compas_timber", | ||
"Installed {} GH User Objects".format(len(installed_objects)), | ||
True, | ||
) | ||
] | ||
|
||
|
||
@compas.plugins.plugin(category="install") | ||
def after_rhino_uninstall(uninstalled_packages): | ||
if "compas_timber" not in uninstalled_packages: | ||
return [] | ||
|
||
srcdir = os.path.join(os.path.dirname(__file__), "components", "ghuser") | ||
userobjects = [os.path.basename(ghuser) for ghuser in glob.glob(os.path.join(srcdir, "*.ghuser"))] | ||
uninstalled_objects = uninstall_userobjects(userobjects) | ||
|
||
uninstall_errors = [uo[0] for uo in uninstalled_objects if not uo[1]] | ||
error_msg = "" if not uninstall_errors else "and {} failed to uninstall".format(len(uninstall_errors)) | ||
|
||
return [ | ||
( | ||
"compas_timber", | ||
"Uninstalled {} GH User Objects {}".format(len(uninstalled_objects), error_msg), | ||
True, | ||
) | ||
] |
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,6 +1,5 @@ | ||
from .compas_extra import intersection_line_line_3D | ||
from .compas_extra import intersection_line_plane | ||
from .helpers import are_objects_identical | ||
from .helpers import close | ||
|
||
|
||
__all__ = ["intersection_line_line_3D", "intersection_line_plane", "close", "are_objects_identical"] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.