Commit graph

28 commits

Author SHA1 Message Date
Cosimo Lupo
7b6924ffb2 Merge branch 'master' of https://github.com/pgajdos/pyclipper into pgajdos-master 2021-10-19 14:30:49 +02:00
Cosimo Lupo
5e10a2eda1
Merge pull request #40 from fonttools/export-version-string
Some checks failed
Build + Deploy / build_unix (macos-latest, x64, 3.6) (push) Has been cancelled
Build + Deploy / build_unix (macos-latest, x64, 3.7) (push) Has been cancelled
Build + Deploy / build_unix (macos-latest, x64, 3.8) (push) Has been cancelled
Build + Deploy / build_unix (macos-latest, x64, 3.9) (push) Has been cancelled
Build + Deploy / build_unix (ubuntu-latest, x64, 3.6) (push) Has been cancelled
Build + Deploy / build_unix (ubuntu-latest, x64, 3.7) (push) Has been cancelled
Build + Deploy / build_unix (ubuntu-latest, x64, 3.8) (push) Has been cancelled
Build + Deploy / build_unix (ubuntu-latest, x64, 3.9) (push) Has been cancelled
Build + Deploy / build_win (x64, 3.6) (push) Has been cancelled
Build + Deploy / build_win (x64, 3.7) (push) Has been cancelled
Build + Deploy / build_win (x64, 3.8) (push) Has been cancelled
Build + Deploy / build_win (x64, 3.9) (push) Has been cancelled
Build + Deploy / build_win (x86, 3.6) (push) Has been cancelled
Build + Deploy / build_win (x86, 3.7) (push) Has been cancelled
Build + Deploy / build_win (x86, 3.8) (push) Has been cancelled
Build + Deploy / build_win (x86, 3.9) (push) Has been cancelled
Build + Deploy / deploy (push) Has been cancelled
export pyclipper.__version__ as conventional in python packaging
2021-06-25 17:43:06 +01:00
Cosimo Lupo
19fcc36ee1 test_pyclipper: check pyclipper.__version__ exists and is a string 2021-06-25 17:30:35 +01:00
Cosimo Lupo
1d003cdeaf drop long deprecated SCALING_FACTOR warnings
since we moved the extension module to an internal pyclipper._pyclipper submodule, setting SCALING_FACTOR on the parent pyclipper package won't work any more. We may as well remove the deprecation warnings altogether since they have been there for long time now.
2021-06-25 17:15:52 +01:00
Cosimo Lupo
2830e21bc2
Fix SyntaxWarning x is 0
Fixes #28
2020-12-27 10:53:08 +01:00
pgajdos
305ecf949a fallback to unittest, it is enough for python3 2020-06-02 17:01:18 +02:00
Cosimo Lupo
566d378c50 tests: catch ClipperException when calling Execute before any AddPath
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.
2018-01-08 17:26:10 +00:00
Cosimo Lupo
ec088f827d minor: don't assign to unused variable 2018-01-06 11:53:26 +00:00
Athos Ribeiro
fe781a0a3c Use Clipper 6.4.2
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
2017-10-23 00:52:27 -02:00
Cosimo Lupo
c40870f301 set up CI to run tests and build wheels for osx, manylinux1 and windows (#7)
* add matthew-brett/multibuild as git submodule

* add .travis.yml file

* add config.sh file with run_tests function to invoke py.test command

print python version and number of bits (32 vs 64) before running the tests,
just to be sure...

* test_pyclipper.py: define 'integer_types' as (int, long) on PY2 and int on PY3

* setup.cfg: default to sdist --formats=zip as it's more portable

* .travis.yml: add deploy section to upload sdist and wheel to Github Releases on tags

* .travis.yml: commented out 'deploy' stage; greginvm needs to replace it using his authentication details

* appveyor: run tests and build wheels on Windows Python 2.7, 3.4 and 3.5 (32 and 64 bit)

We use Olivier Grisel (ogrisel) batch script to configure environment
variables to use the correct MSVC C++ compilers when building the
extension module.

https://github.com/ogrisel/python-appveyor-demo

* .appveyor.yml: add deploy section for uploading wheels to Github Releases on tags

* .appveyor: comment out deploy section; to be replaced by greginvm's auth_token

* .travis.yml: add Python 3.3 (Linux and OS X) to the matrix

* .appveyor.yml: add Windows Python 3.3 (32 and 64 bit) to the matrix
2016-08-18 21:35:53 +02:00
Gregor Ratajc
fba4d86d5a Long lines cleanup 2016-08-17 13:39:44 +02:00
Jamie Bull
2c0692c99b Ensure 0 is converted to sympy Zero object 2016-08-17 12:43:02 +02:00
Jamie Bull
4fe352e0e4 Skip test_sympyzero if sympy not available 2016-08-17 12:25:15 +02:00
Jamie Bull
a481166866 Add a test using sympy.Zero values
Assume that this sympy dependency is not wanted , it's just here to show
that the fix works.
2016-08-17 11:27:58 +02:00
Gregor Ratajc
0c6c5b31f5 Replaces unittest with unittest2 2015-11-23 21:10:33 +01:00
Michael Schwarz
35e33bb37c Added scale_{from,to}_clipper(). 2015-11-03 21:56:43 +01:00
Michael Schwarz
ef61a542b3 Replace unit tests using SCALING_FACTOR.
Removed test which tested the behavior of SCALING_FACTOR and added tests which test whether the appropriate warnings are raised when SCALING_FACTOR is set to a value different from 1.
2015-11-03 19:43:02 +01:00
Michael Schwarz
8bd64ff176 Test case for handling of very large coordinates. 2015-10-02 01:37:33 +02:00
Gregor R
add6a9c319 Refactor tests 2015-03-26 00:08:24 +01:00
Gregor R
7c049253b0 Add tests to check PyPolyNode.Contour 2015-03-20 13:08:14 +01:00
Gregor R
1b87c388f4 Fix test for SCALING_FACTOR 2015-03-18 15:52:37 +01:00
Gregor R
bae7b36dfb Bugfix scaling factor 2015-03-18 15:05:53 +01:00
Gregor R
232f870454 Implemented wrappers for SimplifyPolygons and CleanPolygons functions 2015-03-18 14:39:27 +01:00
Gregor R
01fa520520 Added missing PolyTree filter functions 2015-03-18 14:03:02 +01:00
Gregor R
e016385d47 Fix function calls to Pyclipper 2015-03-18 13:19:36 +01:00
Gregor R
e0de764780 Fix compatibility with Python3 in tests 2015-02-25 12:42:11 +01:00
Gregor R
37d47ea962 Fix ClipperOffset properties test 2015-02-24 22:21:17 +01:00
Gregor R
3f7df3d6f0 Updated setup script to properly install pyclipper without pyclipper/pyclipper submodule 2015-02-24 12:37:25 +01:00