it's not very useful (using the sdist from PyPI is ok, no need to support
zip archives from github), and causes issues with latest setuptools_scm
Fixes#19
Calling `Execute` on an empty `Pyclipper` instance would silently pass
without exception in previous pyclipper 1.0.7 with Clipper lib version 6.2.1.
Now, the `Clipper::Execute` method returns unsuccessful if called before any
`AddPath` or `AddPaths`, so pyclipper duly raises an exception.
> Default parameters for C++ methods are not yet supported (and it's an
even worse bug that we don't give a sensible error message). For the
time being you'll have to enumerate them as overloads.
https://groups.google.com/forum/#!topic/cython-users/4ecKM-p8dPA
related cython issue:
https://github.com/cython/cython/issues/1374
After applying this patch, these warnings are no longer produced:
```
pyclipper/pyclipper.cpp:4307:55: warning: passing NULL to non-pointer argument 1 of ‘ClipperLib::Clipper::Clipper(int)’ [-Wconversion-null]
__pyx_v_self->thisptr = new ClipperLib::Clipper(NULL);
^
pyclipper/pyclipper.cpp: In function ‘int __pyx_pf_9pyclipper_15PyclipperOffset___cinit__(__pyx_obj_9pyclipper_PyclipperOffset*, double, double)’:
pyclipper/pyclipper.cpp:5895:61: warning: passing NULL to non-pointer argument 1 of ‘ClipperLib::ClipperOffset::ClipperOffset(double, double)’ [-Wconversion-null]
__pyx_v_self->thisptr = new ClipperLib::ClipperOffset(NULL);
```
There were no changes in the ABI of the functions wrapped in pyclipper,
hence no major changes were performed here. Clipper.Execute now fails if
called after clear, and this brought changes to the test suite.
* Update embedded Clipper version
* Remove execution permissions from Clipper files
* Closes#10
sha256:
pyclipper/clipper.cpp:
5c642a3668311701f72572443aa42c1a981edb037298efc015166d9d90be0755
pyclipper/clipper.hpp:
734eba9dc9d399089b2b467017074bd24728a1b9e64c7429e827806ed10e54cc
After publishing 1.0.6 via twine command, I noticed the PKG-INFO 'Description' was empty...
That's because setup.py was missing 'long_description' field.
So I had to manually upload a modified PKG-INFO with the content of the current README.rst.
For next releases this won't be necessary.
The 'License' was also missing in the sdist PKG-INFO, so I added that too.
The Python 3.3 installer does not work any more on the latest Travis osx images:
https://travis-ci.org/anthrotype/pyclipper/jobs/192154380#L84
I think it's about time to let it go...
I also removed it from Appveyor. Windows users can more easily upgrade Pythoh than Linux users
who usually have it bundled with the OS.
Travis by default clone with --depth=50. If the last tag is not within
this range (unlikely but possible), setuptools_scm can fail to derive
the version string.