From d1ed30ba8f0a1b14a18dd92360eeddf8443713e3 Mon Sep 17 00:00:00 2001 From: Jeremy Wright Date: Fri, 17 Apr 2020 22:53:50 -0400 Subject: [PATCH 1/5] Prepare for the 2.0 release --- cadquery/__init__.py | 2 +- changes.md | 133 ++++++++++++++----------------------------- setup.py | 2 +- 3 files changed, 45 insertions(+), 92 deletions(-) diff --git a/cadquery/__init__.py b/cadquery/__init__.py index 62ac5df4e..6ac5ef35d 100644 --- a/cadquery/__init__.py +++ b/cadquery/__init__.py @@ -62,4 +62,4 @@ "plugins", ] -__version__ = "2.0RC2" +__version__ = "2.0" diff --git a/changes.md b/changes.md index 24d08ab66..958d4e7b4 100644 --- a/changes.md +++ b/changes.md @@ -1,100 +1,53 @@ Changes ======= - -v0.1 ------ - * Initial Version - -v0.1.6 ------ - * Added STEP import and supporting tests - -v0.1.7 ------ - * Added revolve operation and supporting tests - * Fixed minor documentation errors - -v0.1.8 ------ - * Added toFreecad() function as a convenience for val().wrapped - * Converted all examples to use toFreecad() - * Updated all version numbers that were missed before - * Fixed import issues in Windows caused by fc_import - * Added/fixed Mac OS support - * Improved STEP import - * Fixed bug in rotateAboutCenter that negated its effect on solids - * Added Travis config (thanks @krasin) - * Removed redundant workplane.py file left over from the PParts.com migration - * Fixed toWorldCoordinates bug in moveTo (thanks @xix-xeaon) - * Added new tests for 2D drawing functions - * Integrated Coveralls.io, with a badge in README.md - * Integrated version badge in README.md - -v0.2.0 ------ - * Fixed versioning to match the semantic versioning scheme - * Added license badge in changes.md - * Fixed Solid.makeSphere implementation - * Added CQ.sphere operation that mirrors CQ.box - * Updated copyright dates - * Cleaned up spelling and misc errors in docstrings - * Fixed FreeCAD import error on Arch Linux (thanks @moeb) - * Made FreeCAD import report import error instead of silently failing (thanks @moeb) - * Added ruled option for the loft operation (thanks @hyOzd) - * Fixed close() not working in planes other than XY (thanks @hyOzd) - * Added box selector with bounding box option (thanks @hyOzd) - * CQ.translate and CQ.rotate documentation fixes (thanks @hyOzd) - * Fixed centering of a sphere - * Increased test coverage - * Added a clean function to keep some operations from failing on solids that need simplified (thanks @hyOzd) - * Added a mention of the new Google Group to the readme - -v0.3.0 ------ - * Fixed a bug where clean() could not be called on appropriate objects other than solids (thanks @hyOzd) #108 - * Implemented new selectors that allow existing selectors to be combined with arithmetic/boolean operations (thanks @hyOzd) #110 - * Fixed a bug where only 1 random edge was returned with multiple min/max selector matches (thanks @hyOzd) #111 - * Implemented the creation of a workplane from multiple co-planar faces (thanks @hyOzd) #113 - * Fixed the operation of Center() when called on a compound with multiple solids - * Add the named planes ZX YX ZY to define different normals (thanks @galou) #115 - * Code cleanup in accordance with PEP 8 (thanks @galou) - * Fixed a bug with the close function not resetting the first point of the context correctly (thanks @huskier) - * Fixed the findSolid function so that it handles compounds #107 - * Changed the polyline function so that it adds edges to the stack instead of a wire #102 - * Add the ability to find the center of the bounding box, rather than the center of mass (thanks @huskier) #122 - * Changed normalize function to normalized to match OCC/PythonOCC nomenclature #124 - * Added a label attribute to all freecad_impl.shapes so that they can have IDs attached to them #124 - -v0.4.0 +2.0 (stable release) ------ - * Added Documentation, which is available on dcowden.github.io/cadquery - * Added CQGI, an adapter API that standardizes use of cadquery from within structured execution environments - * Added ability to import STEP files from a web URL (thanks @huskier ) #128 - -v0.4.1 ------- - * Minor CQGI updates - -v0.5.0-stable + * Numerous commits to move from FreeCAD as the underlying API to PythonOCC - thanks @adam-urbanczyk for all the effort that required + * Updated for Python 3.6 and 3.7 + * Made sure solids were fused when extrude both=True #321 - thanks @adam-urbanczyk + * Improved boolean operations #312 - thanks @adam-urbanczyk + * Fixed a bug in helix creation #311 - thanks @adam-urbanczyk + * Improved MacOS support + * Updated CQGI counters for Python 3.8 compatibility #305 - thanks @jwhevans + * Added tangent arc operation #284 - thanks @marcus7070 + * Added ellipse creation #265 - thanks @bernhard-42 + * Added ability to produce a plate surface with a thickness (optional), enclosed by edge points, polylines or splines, and going through interpolation points (optional) #253 - thanks @bragostin + * Fix plane rotation method #243 - thanks @Peque + * Added ability to tag a particular object in the chain to be referred to later #252 - thanks @marcus7070 + * Added Black formatting check to CI #255 - thanks @Peque + * Added ability to accept unordered edges when constructing a wire #237 - thanks @bragostin + * Updated to using pytest #236 - thanks @Peque + * Fixed wedge primitive and made wedge act consistent with other primitives #228 + * Fix to correctly support anisotropic scaling #225 - thanks @adam-urbanczyk + * Documentation fixes #215 - thanks @Renha + * Fixed a spline example in the docs #200 - thanks @adam-urbanczyk + * Added 2D slot feature #186 - thanks @bweissinger + * Fixed a segmentation fault when trying to loft with one wire #161 - thanks @HLevering + * Fixed a bug where the tolerance parameter of BoundingBox had no effect #167 - thanks @mgreminger + * Fixed a bug when calling findSolid with multiple solids on stack #163 - thanks @adam-urbanczyk + * Documentation fixes #144 and #162 - thanks @westurner + * Fixed a feature/bug that prevented a polyline or spline from closing properly in some instances #156 - thanks @adam-urbanczyk + * Added ability to determine if an arbitrary point is inside a solid #138 - thanks @mgreminger + * Fixed bug where combine=True kept union from working properly #143 - thanks @adam-urbanczyk + * Fixed bug where string selectors "-X" and "+X" returned the same thing #141 - thanks @gebner + * Removed unused 'positive' argument from 'cutThruAll' #135 - thanks @mgreminger + * Increased the HASH_CODE_MAX to prevent hash collisions during face selection #140 - - thanks @mgreminger + * Added option to center workplane on projected origin #132 - thanks @mgreminger + * Improved sweep along multisection wires #128 - thanks @adam-urbanczyk + * Fixed version number that was missed during update to 2.x #129 - thanks @asukiaaa + * Numerous CI and documentation improvements + +2.0RC2 (release candidate) ------ - * Configuring Travis to push to PyPI on version releases. + * Changes included in v2.0 release -v0.5.1 +2.0RC1 (release candidate) ------ - * Mirroring fixes (thanks @huskier) - * Added a mirroring example (thanks @huskier) + * Changes included in v2.0 release -v0.5.2 +2.0RC0 (release candidate) ------ - * Added the sweep operation #33 + * Changes included in v2.0 release -v1.0.0 ------- - * Added an option to do symmetric extrusion about the workplane (thanks @adam-urbanczyk) - * Extended selector syntax to include Nth selector and re-implemented selectors using pyparsing (thanks @adam-urbanczyk) - * Added logical operations to string selectors (thanks @adam-urbanczyk) - * Cleanup of README.md and changes.md (thanks @baoboa) - * Fixed bugs with toVector and Face 'Not Defined' errors (thanks @huskier) - * Refactor of the initialization code for PEP8 compliance and Python 3 compatibility (thanks @Peque) - * Making sure that the new pyparsing library dependency is handled properly (thanks @Peque) +The changelog for older CadQuery 1.x releases can be found [here](https://github.com/dcowden/cadquery/blob/master/changes.md). \ No newline at end of file diff --git a/setup.py b/setup.py index 48f712e4b..09a5b77d3 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ # if we are building in travis, use the build number as the sub-minor version -version = "0.5-SNAPSHOT" +version = "2.0" if "TRAVIS_TAG" in os.environ.keys(): version = os.environ["TRAVIS_TAG"] From ded2bdce96536bdef939bacbc201e51ffd7214ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Urba=C5=84czyk?= Date: Thu, 23 Apr 2020 08:52:07 +0200 Subject: [PATCH 2/5] Add reference to #106 --- changes.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/changes.md b/changes.md index 958d4e7b4..0e59c9011 100644 --- a/changes.md +++ b/changes.md @@ -37,6 +37,7 @@ Changes * Improved sweep along multisection wires #128 - thanks @adam-urbanczyk * Fixed version number that was missed during update to 2.x #129 - thanks @asukiaaa * Numerous CI and documentation improvements + * Support for text rendering #106 2.0RC2 (release candidate) ------ @@ -50,4 +51,4 @@ Changes ------ * Changes included in v2.0 release -The changelog for older CadQuery 1.x releases can be found [here](https://github.com/dcowden/cadquery/blob/master/changes.md). \ No newline at end of file +The changelog for older CadQuery 1.x releases can be found [here](https://github.com/dcowden/cadquery/blob/master/changes.md). From 8d5dd8b456413218bf7b9dab7119166c0fbdcac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Urba=C5=84czyk?= Date: Thu, 23 Apr 2020 08:53:41 +0200 Subject: [PATCH 3/5] Typo fix --- changes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changes.md b/changes.md index 0e59c9011..27ae97d02 100644 --- a/changes.md +++ b/changes.md @@ -32,7 +32,7 @@ Changes * Fixed bug where combine=True kept union from working properly #143 - thanks @adam-urbanczyk * Fixed bug where string selectors "-X" and "+X" returned the same thing #141 - thanks @gebner * Removed unused 'positive' argument from 'cutThruAll' #135 - thanks @mgreminger - * Increased the HASH_CODE_MAX to prevent hash collisions during face selection #140 - - thanks @mgreminger + * Increased the HASH_CODE_MAX to prevent hash collisions during face selection #140 - thanks @mgreminger * Added option to center workplane on projected origin #132 - thanks @mgreminger * Improved sweep along multisection wires #128 - thanks @adam-urbanczyk * Fixed version number that was missed during update to 2.x #129 - thanks @asukiaaa From aa1abf8a95c13b1489fa9e7c2f3c7c4eaef5d3ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Urba=C5=84czyk?= Date: Thu, 23 Apr 2020 09:00:34 +0200 Subject: [PATCH 4/5] Added info about breaking changes --- changes.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/changes.md b/changes.md index 27ae97d02..396d1273b 100644 --- a/changes.md +++ b/changes.md @@ -3,6 +3,12 @@ Changes 2.0 (stable release) ------ + +### Deprecations and breaking changes + * `centerOption` default value will change from `CenterOfMass` to `ProjectedOirigin` in the 2.1 release #313 + +### Non-breaking changes + * Numerous commits to move from FreeCAD as the underlying API to PythonOCC - thanks @adam-urbanczyk for all the effort that required * Updated for Python 3.6 and 3.7 * Made sure solids were fused when extrude both=True #321 - thanks @adam-urbanczyk From 6a5dd93db81d905b60491079bc831ec75378301d Mon Sep 17 00:00:00 2001 From: Jeremy Wright Date: Thu, 23 Apr 2020 17:20:22 -0400 Subject: [PATCH 5/5] Fixed a typo --- changes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changes.md b/changes.md index 396d1273b..39c9d5b6f 100644 --- a/changes.md +++ b/changes.md @@ -5,7 +5,7 @@ Changes ------ ### Deprecations and breaking changes - * `centerOption` default value will change from `CenterOfMass` to `ProjectedOirigin` in the 2.1 release #313 + * `centerOption` default value will change from `CenterOfMass` to `ProjectedOrigin` in the 2.1 release #313 ### Non-breaking changes