Skip to content

Commit

Permalink
update default versions everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvanmele committed Dec 10, 2021
1 parent d04edc9 commit de039a7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/compas_ghpython/components/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from compas._os import remove_symlinks
from compas_ghpython import get_grasshopper_userobjects_path
from compas_rhino import _check_rhino_version
import compas_rhino


def coerce_frame(plane):
Expand All @@ -46,7 +47,7 @@ def coerce_frame(plane):

def get_version_from_args():
parser = argparse.ArgumentParser()
parser.add_argument('-v', '--version', choices=['5.0', '6.0', '7.0'], default='6.0')
parser.add_argument('-v', '--version', choices=compas_rhino.SUPPORTED_VERSIONS, default=compas_rhino.DEFAULT_VERSION)
args = parser.parse_args()
return _check_rhino_version(args.version)

Expand Down
2 changes: 1 addition & 1 deletion src/compas_rhino/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def _get_app_folder(version):
'5': ['/', 'Applications', 'Rhinoceros.app'],
'6': ['/', 'Applications', 'Rhinoceros.app'],
'7': ['/', 'Applications', 'Rhino 7.app', ],
'8': ['/', 'Applications', 'Rhino 8.app', ]
'8': ['/', 'Applications', 'RhinoWIP.app', ]
}
app = os.path.join(*paths[version])

Expand Down
6 changes: 3 additions & 3 deletions src/compas_rhino/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def install(version=None, packages=None, clean=False):
----------
version : {'5.0', '6.0', '7.0', '8.0'}, optional
The version number of Rhino.
Default is ``'6.0'``.
Default is ``'7.0'``.
packages : list of str, optional
List of packages to install or None to use default package list.
Default is the result of ``installable_rhino_packages``,
Expand All @@ -40,11 +40,11 @@ def install(version=None, packages=None, clean=False):
.. code-block:: python
import compas_rhino.install
compas_rhino.install.install('6.0')
compas_rhino.install.install()
.. code-block:: bash
python -m compas_rhino.install -v 6.0
python -m compas_rhino.install
"""
version = compas_rhino._check_rhino_version(version)
Expand Down
6 changes: 3 additions & 3 deletions src/compas_rhino/uninstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def uninstall(version=None, packages=None):
----------
version : {'5.0', '6.0', '7.0', '8.0'}, optional
The version number of Rhino.
Default is ``'6.0'``.
Default is ``'7.0'``.
packages : list of str, optional
List of packages to uninstall.
Default is to uninstall all packages installed by the COMPAS installer.
Expand All @@ -35,11 +35,11 @@ def uninstall(version=None, packages=None):
.. code-block:: python
import compas_rhino
compas_rhino.uninstall('6.0')
compas_rhino.uninstall()
.. code-block:: bash
python -m compas_rhino.uninstall -v 6.0
python -m compas_rhino.uninstall
"""
version = compas_rhino._check_rhino_version(version)
Expand Down
2 changes: 1 addition & 1 deletion src/compas_rhino/uninstall_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def uninstall_plugin(plugin, version=None):
The name of the plugin.
version : {'5.0', '6.0', '7.0', '8.0'}, optional
The version of Rhino for which the plugin should be uninstalled.
Default is ``'6.0'``.
Default is ``'7.0'``.
Notes
-----
Expand Down

0 comments on commit de039a7

Please sign in to comment.