Skip to content

Commit

Permalink
v3.0.0
Browse files Browse the repository at this point in the history
No intentional breaking changes have been made, but a major refactor has been carried out to the packaging process, and the components ('old' GHPython ones) are now being built in Rhino 8.

 - Automated API tests
 - Experimental installation using pip
 - Experimental installation in Rhino 8 CPython 3 components
 - Available on PyPi
  • Loading branch information
JamesParrott committed May 22, 2024
1 parent 57b5941 commit a6e1c14
Show file tree
Hide file tree
Showing 42 changed files with 42 additions and 42 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ sDNA_GH:
- Allows easy adding of a native Legend.

## User manual.
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

## Table of contents

Expand Down
2 changes: 1 addition & 1 deletion dev/tests/create_random_grid_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

from random import random as random_num
from math import trunc as floor # for an int, not a float. math.floor(2.33) == 2.0; math.trunc(2.33) == 2
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build-backend = "hatchling.build"

[project]
name = "sDNA_GH"
version = "3.0.0.alpha_4"
version = "3.0.0"
authors = [{name = "James Parrott", email = "[email protected]"}, {name = 'Crispin Cooper', email = '[email protected]'}]
description = "sDNA is a world leading tool for Spatial Design Network Analysis. sDNA_GH is a plug-in for Grasshopper, that runs sDNA on Rhino and Grasshopper geometry and data. "
readme = {file = "README.md", content-type = "text/markdown"}
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/data_cruncher.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"""

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import logging
import warnings
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/dev_tools/dev_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import os
import logging
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/dev_tools/unload_sDNA_GH.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"""

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'


from ghpythonlib.componentbase import executingcomponent as component
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/gdm_from_GH_Datatree.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'


import logging
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"""

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'



Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/logging_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# SOFTWARE.

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import sys
import os
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"""

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'


import os
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/options_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'
"""
Functions to override namedtuples, from dicts, toml files
and other named tuples e.g. for options data structures.
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/pyshp_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'
""" Reads .shp files, and parses data and writes .shp files from any iterable.
"""

Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/skel/add_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

from collections import OrderedDict
import logging
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/skel/basic/ghdoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'


import Rhino
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/skel/basic/quacks_like.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/python
# -*- coding: utf-8 -*-
__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'


import abc
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/skel/basic/smart_comp.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"""

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import logging
import inspect
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/skel/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import os
import shutil
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/skel/tools/helpers/checkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'


import os
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/skel/tools/helpers/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# SOFTWARE.

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import os
import logging
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/skel/tools/helpers/rhino_gh_geom.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'


import os
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/skel/tools/inserter.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import logging
import collections
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/skel/tools/name_mapper.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/python
# -*- coding: utf-8 -*-
__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import logging
import collections
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/skel/tools/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'


import logging
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/tests/api_tests/parse_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# SOFTWARE.

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import itertools

Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/tests/api_tests/read_geom.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# SOFTWARE.

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import os
import itertools
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/tests/api_tests/recolour_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# SOFTWARE.

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'


import System
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/tests/api_tests/roundtrip_polylines_shp.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# SOFTWARE.

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import os
import itertools
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/tests/api_tests/roundtrip_usertext.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# SOFTWARE.

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import itertools

Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/tests/test_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'


import sys
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/tests/test_running_component_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# SOFTWARE.

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import os
import sys
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/tests/unit_tests/sDNA_GH_unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import sys
import os
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@


__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'


# Import classes etc. from sub modules, to allow the existing imports
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/tools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# SOFTWARE.

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'


import os
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/tools/old_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"""

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import os
import sys
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/tools/sdna.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"""

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import os
import sys
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/tools/support/Parse_Data.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@


__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import os
import sys
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/tools/support/Read_Geom.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"""

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import os
import sys
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/tools/support/Read_Shp.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"""

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import os
import sys
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/tools/support/Read_Usertext.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"""

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import os
import sys
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/tools/support/Recolour_Objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"""

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'


import abc
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/tools/support/Write_Shp.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"""

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import os
import sys
Expand Down
2 changes: 1 addition & 1 deletion src/sDNA_GH/tools/support/Write_Usertext.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"""

__authors__ = {'James Parrott', 'Crispin Cooper'}
__version__ = '3.0.0.alpha_4'
__version__ = '3.0.0'

import os
import sys
Expand Down

0 comments on commit a6e1c14

Please sign in to comment.