Commit Graph

1171 Commits

Author SHA1 Message Date
569f5b9938 Update shapes.py
Fix type mismatch.
2020-09-26 08:26:49 -04:00
a1bb80741c Update test_cadquery.py
Check for non-existent file instead of trying to use it and possibly segfaulting.
2020-09-26 07:26:38 -04:00
6b8d486860 Update shapes.py
Check for non-existent file instead of trying to use it and possibly segfaulting.
2020-09-26 07:26:34 -04:00
26de7bc9c2 Update test_cadquery.py
Changed directory to point to test data.
2020-09-24 13:29:59 -04:00
62c287a62e Add files via upload
Add font for testing makeText
2020-09-24 13:27:13 -04:00
00a1329c2e Update test_cadquery.py
Perhaps the call to os.path.join will allow the tests to run.
2020-09-22 21:48:26 -04:00
8dd1038226 Update test_cadquery.py
Try pulling a valid path from elsewhere in the file.
2020-09-22 17:25:20 -04:00
31d4a4f79a Update test_cadquery.py
Try just the current directory.
2020-09-22 17:08:16 -04:00
f934f45bf7 Update test_cadquery.py
Trying Unix style path.
2020-09-22 16:49:21 -04:00
6b2df42ed6 Update test_cadquery.py
Add test for "text" using fontPath keyword argument.
2020-09-22 16:36:58 -04:00
bf01b6a552 Update shapes.py
Adding a space between comment and function call :/
2020-09-22 15:16:34 -04:00
904095998f Update shapes.py
Change whitespace to try and pass automated checks.
2020-09-22 15:00:05 -04:00
6bb90245b1 Update shapes.py
Fix inconsistent tabs and spaces
2020-09-22 13:10:00 -04:00
fac2a94059 Update shapes.py
Fixed argument name mismatch.
2020-09-21 12:49:28 -04:00
7ede22146e Update cq.py
Add the option to specify a path to the font.
2020-09-21 12:40:36 -04:00
1e16111056 Update shapes.py
Add the option to specify a path to the font.
2020-09-21 12:16:23 -04:00
2d721d0ff8 add the choice to not import all dxf layers (#442)
* add the choice to not import all dxf layers

this is especially useful for ignoring layers in drawings containing note text or dimensions

* remove a blank line

* Rework layer exclusion in dxf import

* add dxf for layer tests

* add tests for dxf import layer filtering and extrusion

fix edges/wires mixup

remove extra `)`

fix var name typo

fix lint

Co-authored-by: Adam Urbańczyk <adam-urbanczyk@users.noreply.github.com>
2020-08-31 09:26:26 +02:00
b3d089f9f1 Merge pull request #445 from CadQuery/selectors-fix
Allow spaces in a vector literal
2020-08-30 20:20:35 -04:00
a8d13c969e Get rid of libstdc++6 apt install 2020-08-30 15:04:24 +02:00
44498cdad1 Test the grammar extension 2020-08-30 14:11:39 +02:00
75be3e655d Allow spaces in a vector literal 2020-08-30 14:07:25 +02:00
c7b7e9592f Integrate sphinxcadquery to visualize 3D parts (#111)
* Integrate `sphinxcadquery` to visualize 3D parts

* Try different default export tolerance

* Change the tolerance for toString too

* Tighter angularTolerance for toString

Co-authored-by: Adam Urbańczyk <adam-urbanczyk@users.noreply.github.com>
2020-08-18 17:27:51 +02:00
5ad5fdfa3d Merge pull request #436 from CadQuery/dev-version
Mark dev version in setup.py
2020-08-15 09:40:01 -04:00
1a6651d67d Add py.typed file to make CQ PEP-561 compatibile (#435)
* Add PEP-561 compatibility

This change signals to mypy that there is type annotations in the files
and they should be used to validate type information for cadquery.

See: https://mypy.readthedocs.io/en/stable/installed_packages.html#making-pep-561-compatible-packages

* Add py.typed to MANIFEST.in

* Delete MANIFEST

Co-authored-by: Adam Urbańczyk <adam-urbanczyk@users.noreply.github.com>
2020-08-14 23:48:43 +02:00
5b4ca98247 Update .gitignore (#437)
Ignore MANIFEST, cadquery.egg-info directory and files generated by
running pytest out.* and res?.* ,
2020-08-14 19:07:45 +02:00
02ca901cae Mark dev version in setup.py 2020-08-13 17:49:59 +02:00
c6e922eb02 Updated the installation to reference OCP and pointed people to the master installation option. (#434) 2020-08-12 21:53:54 +02:00
83ad6ebd19 Fix type annotation for selectors (#430) 2020-08-12 08:58:35 +02:00
7a15fc84a5 Merge pull request #429 from CadQuery/py38-build
Build for python 3.8 on azure
2020-08-11 17:12:58 -04:00
6312153212 Do not specify IPython version 2020-08-11 22:51:43 +02:00
4414e850f8 Use Python 3.8 in travis 2020-08-11 22:04:17 +02:00
a0297e6469 Fix CQGI for py38 2020-08-11 18:38:38 +02:00
65edb68099 Unpin ipython version 2020-08-11 08:55:20 +02:00
89eacc3be5 Use conda bld 3.19.2 2020-08-10 23:30:00 +02:00
44bc293dd5 Use newer conda-build 2020-08-10 20:51:09 +02:00
af6ea1fe99 Update selectors.rst (#427)
Fix a couple of counterintuitive description of Faces selectors.
2020-08-10 20:34:12 +02:00
25bc0a9a56 Build for 3.8 on azure 2020-08-10 20:21:11 +02:00
727f0e1b34 Merge pull request #424 from winksaville/add-angularPrecision
Add angular precision
2020-08-07 23:38:35 -04:00
5b1cd24788 Update the tests accordingly 2020-08-07 08:50:53 +02:00
056f626bdb Make tolerance naming convention self-consistent 2020-08-07 08:49:16 +02:00
35dee903c7 Changed naming convention. 2020-08-07 08:44:28 +02:00
2945673d46 Fix deprecation warning about assertAlmostEquals (#423) 2020-08-07 08:30:03 +02:00
3756a243c8 Fix lint bug I introduced. 2020-08-06 14:34:22 -07:00
462dcea6c4 Add angularPrecision to export, exportShape and toString
Add tolerance and angularPrecision to TestExporters._exportBox and in
the call to exportShape.
2020-08-06 12:20:12 -07:00
4f0f333ad8 Fix deprecation warning about assertAlmostEquals 2020-08-06 12:02:12 -07:00
6ed1578deb Docstring and typechecking in the add method (#422)
Updated the docstring to reflect the removal of the CQ class, and used
the more pythonic isinstance typechecking.
2020-08-05 17:54:29 +02:00
5f67eb89db Merge pull request #420 from CadQuery/tessellate-fix
Fix tessellate
2020-08-04 16:19:44 -04:00
5120642ef3 Winding fix 2020-08-04 08:54:50 +02:00
c80b073e82 Fix tessellate 2020-08-03 16:55:51 +02:00
cc1f8f3183 Merge pull request #419 from CadQuery/README-update
Mention DXF export in the README
2020-08-02 21:19:59 -04:00