Skip to content

Commit de039a7

Browse files
committed
update default versions everywhere
1 parent d04edc9 commit de039a7

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

src/compas_ghpython/components/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
from compas._os import remove_symlinks
3232
from compas_ghpython import get_grasshopper_userobjects_path
3333
from compas_rhino import _check_rhino_version
34+
import compas_rhino
3435

3536

3637
def coerce_frame(plane):
@@ -46,7 +47,7 @@ def coerce_frame(plane):
4647

4748
def get_version_from_args():
4849
parser = argparse.ArgumentParser()
49-
parser.add_argument('-v', '--version', choices=['5.0', '6.0', '7.0'], default='6.0')
50+
parser.add_argument('-v', '--version', choices=compas_rhino.SUPPORTED_VERSIONS, default=compas_rhino.DEFAULT_VERSION)
5051
args = parser.parse_args()
5152
return _check_rhino_version(args.version)
5253

src/compas_rhino/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def _get_app_folder(version):
147147
'5': ['/', 'Applications', 'Rhinoceros.app'],
148148
'6': ['/', 'Applications', 'Rhinoceros.app'],
149149
'7': ['/', 'Applications', 'Rhino 7.app', ],
150-
'8': ['/', 'Applications', 'Rhino 8.app', ]
150+
'8': ['/', 'Applications', 'RhinoWIP.app', ]
151151
}
152152
app = os.path.join(*paths[version])
153153

src/compas_rhino/install.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def install(version=None, packages=None, clean=False):
2626
----------
2727
version : {'5.0', '6.0', '7.0', '8.0'}, optional
2828
The version number of Rhino.
29-
Default is ``'6.0'``.
29+
Default is ``'7.0'``.
3030
packages : list of str, optional
3131
List of packages to install or None to use default package list.
3232
Default is the result of ``installable_rhino_packages``,
@@ -40,11 +40,11 @@ def install(version=None, packages=None, clean=False):
4040
.. code-block:: python
4141
4242
import compas_rhino.install
43-
compas_rhino.install.install('6.0')
43+
compas_rhino.install.install()
4444
4545
.. code-block:: bash
4646
47-
python -m compas_rhino.install -v 6.0
47+
python -m compas_rhino.install
4848
4949
"""
5050
version = compas_rhino._check_rhino_version(version)

src/compas_rhino/uninstall.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def uninstall(version=None, packages=None):
2525
----------
2626
version : {'5.0', '6.0', '7.0', '8.0'}, optional
2727
The version number of Rhino.
28-
Default is ``'6.0'``.
28+
Default is ``'7.0'``.
2929
packages : list of str, optional
3030
List of packages to uninstall.
3131
Default is to uninstall all packages installed by the COMPAS installer.
@@ -35,11 +35,11 @@ def uninstall(version=None, packages=None):
3535
.. code-block:: python
3636
3737
import compas_rhino
38-
compas_rhino.uninstall('6.0')
38+
compas_rhino.uninstall()
3939
4040
.. code-block:: bash
4141
42-
python -m compas_rhino.uninstall -v 6.0
42+
python -m compas_rhino.uninstall
4343
4444
"""
4545
version = compas_rhino._check_rhino_version(version)

src/compas_rhino/uninstall_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def uninstall_plugin(plugin, version=None):
2121
The name of the plugin.
2222
version : {'5.0', '6.0', '7.0', '8.0'}, optional
2323
The version of Rhino for which the plugin should be uninstalled.
24-
Default is ``'6.0'``.
24+
Default is ``'7.0'``.
2525
2626
Notes
2727
-----

0 commit comments

Comments
 (0)