Commit graph

166 commits

Author SHA1 Message Date
Cosimo Lupo
edf8bfbc79
setup automatic deployment on tags to PyPI 2019-11-29 17:34:02 +00:00
Cosimo Lupo
572b00852d
appveyor: set build to off and build wheel in test_script section 2019-11-29 17:21:54 +00:00
Cosimo Lupo
2bf1b6729e
Add cython to setup_requires and pyproject.toml 2019-11-29 17:19:33 +00:00
Cosimo Lupo
3452a7e7bf
travis/appveyor: build wheels for python 3.8
also:
- run tests by calling 'pytest' command
- Don't build wheels for python 3.4 as multibuild no longer supports it
2019-11-29 16:40:37 +00:00
Cosimo Lupo
7d369391aa
update multibuild submodule to latest devel branch 2019-11-29 16:32:55 +00:00
Cosimo Lupo
e9d5117352
README.rst: fixup url
[skip ci]
2018-07-27 12:29:33 +01:00
Cosimo Lupo
a742c0ffec
README.rst: modified github links and added myself as maintainer 2018-07-27 12:28:14 +01:00
Cosimo Lupo
4e9be33e19
README.rst: update urls to Travis/Appveyor CI 2018-07-27 11:10:43 +01:00
Cosimo Lupo
652bcc2257
add maintainer info to setup.py 2018-07-27 11:08:23 +01:00
Cosimo Lupo
bb84596e5e
remove setuptools_scm_git_archive
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
2018-07-27 11:01:35 +01:00
Cosimo Lupo
69c98e7713
specify minimum build requirements for sdist in pyproject.toml
https://www.python.org/dev/peps/pep-0518/
https://pip.pypa.io/en/stable/reference/pip/#pep-518-support
2018-07-25 12:36:10 +01:00
Cosimo Lupo
519884d20d
install setuptools_scm with pip or it may fail on old pythons without proper TLS support
https://travis-ci.org/greginvm/pyclipper/jobs/408010793
2018-07-25 12:28:56 +01:00
Cosimo Lupo
e40f2ba6ed
travis: drop support for python3.3
multibuild no longer supports it, neither does pip nor anybody else...
2018-07-25 12:10:08 +01:00
Cosimo Lupo
c05ae9864b
CI: build wheels for python3.7
Fixes #17
2018-07-25 12:06:20 +01:00
Cosimo Lupo
acb768d4ee
update multibuild submodule 2018-07-25 12:03:27 +01:00
Cosimo Lupo
e772bd9466
Merge pull request #14 from anthrotype/test-empty-clipper
tests: catch ClipperException when calling Execute before any AddPath
2018-01-09 12:34:17 +01: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
330d3b16b7 README.rst: Update changelog for 1.1.0 2018-01-06 14:52:45 +00:00
Cosimo Lupo
c19428ebac Update refs to embedded clipper lib version: 6.2.1 -> 6.4.2 [skip ci] 2018-01-06 14:42:37 +00:00
Cosimo Lupo
f6c4266eac
Merge pull request #13 from greginvm/fix-cpp-default-args
use overloaded constructor instead of unsupported c++ default arguments
2018-01-06 14:02:53 +00:00
Cosimo Lupo
a315ced492 use overloaded ctor instead of unsupported c++ default arguments
> 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);
```
2018-01-06 12:46:36 +00:00
Cosimo Lupo
1b858296dc Update multibuilt submodule to latest master
Fixes CI failures on osx workers among other things
2018-01-06 11:54:32 +00:00
Cosimo Lupo
ec088f827d minor: don't assign to unused variable 2018-01-06 11:53:26 +00:00
Cosimo Lupo
962519620c setup.py: use_lines is already defined in clipper.hpp
I keep the inline comment to exemplify how to set macros via distutils
2018-01-06 11:52:57 +00:00
Cosimo Lupo
3b4ee0a5ab
Merge pull request #11 from athos-ribeiro/clipper-6.4.2
Use Clipper 6.4.2
2018-01-06 11:37:15 +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
e74bb76cf7
[setup.py] use README.rst for 'long_description', used for PyPI project page
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.
2017-01-20 13:48:14 +00:00
Cosimo Lupo
fd1ef8e832
[README.rst] update changelog for 1.0.6
I know, I had to do this *before* tagging the release...
Too late -- don't think this is worth a new patch release.
2017-01-20 13:38:06 +00:00
Cosimo Lupo
b9d58327b5
[appveyor] deploy from any 'brach' as long as it's tagged, not just master
Appveyor treats tags as 'branches', so since it was not 'master' it skipped auto-deployment to Github Releases
https://ci.appveyor.com/project/greginvm/pyclipper/build/1.0.39/job/k0u6hvllbfa3bh6i#L226

I had to download the wheels from Appveyor build report, and upload them manually to Github :(
2017-01-20 13:34:28 +00:00
Cosimo Lupo
89813f6db1 Merge pull request #9 from anthrotype/py36
Set up Travis/Appveyor for Python 3.6
2017-01-20 09:25:45 +00:00
Cosimo Lupo
f9c6602535
[ci] remove python3.3 for mac and windows; only keep it for linux
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.
2017-01-15 18:34:15 +00:00
Cosimo Lupo
8e040079b6
Update multibuild submodule (18e69bc) 2017-01-15 18:22:30 +00:00
Cosimo Lupo
d7c6386ef3
[ci] Add support for python 3.6 2017-01-15 18:19:33 +00:00
Gregor Ratajc
1ff323b427 Update setuptools just before sdist 2016-08-22 23:55:36 +02:00
Gregor Ratajc
5300d738ff Reverts "Remove extra space" 2016-08-22 23:28:45 +02:00
Gregor Ratajc
4451c00be0 Remove extra space 2016-08-22 23:10:30 +02:00
Gregor Ratajc
775ad1e213 Reverts "Run egg_info before building" 2016-08-21 23:28:48 +02:00
Gregor Ratajc
0fb2195ee9 Run egg_info before building 2016-08-21 23:20:23 +02:00
Gregor Ratajc
d893bc9fbc Reverts "Run egg-info before building" 2016-08-21 22:54:42 +02:00
Gregor Ratajc
bee44963c2 Run egg-info before building 2016-08-21 22:48:02 +02:00
Gregor Ratajc
4d224a8ac9 Removes egg-info 2016-08-21 22:41:45 +02:00
Gregor Ratajc
cde432637d Run egg-info to write version info 2016-08-21 22:18:54 +02:00
Gregor Ratajc
5493fa9e1e Merge pull request #8 from anthrotype/setuptools_scm
use setuptools_scm to generate package version and sdist files list
2016-08-21 20:00:34 +02:00
Cosimo Lupo
cd01fcfeb7 .gitignore: add '.eggs/' folder 2016-08-21 12:22:47 +01:00
Cosimo Lupo
968db00833 .appveyor.yml: use pip to install test dependencies to work around issue with unittest2 on Windows:
See issue:
https://code.google.com/archive/p/unittest-ext/issues/95

Appveyor build error:
https://ci.appveyor.com/project/greginvm/pyclipper/build/1.0.13/job/9blrl0jsss9mlfee
2016-08-21 12:19:12 +01:00
Cosimo Lupo
3ea7709a31 .appveyor.yml: let setuptools resolve test dependencies; use pytest default options from setup.cfg 2016-08-21 12:05:53 +01:00
Cosimo Lupo
b11691e950 setup.py: remove 'publish' alias for setup.py upload; use twine instead
setuptools `upload` command is not recommeded by the PyPA packaging guide,
becaue of security issues:
https://packaging.python.org/distributing/#upload-your-distributions

You should use `twine upload dist/*` instead.
2016-08-21 12:00:32 +01:00
Cosimo Lupo
b8e94dc9f5 setup.cfg: add 'test = pytest' alias; run pytest in verbose, show extra summary info 2016-08-21 12:00:32 +01:00
Cosimo Lupo
d07cc5b80c setup.py: use pytest-runner to run tests
http://doc.pytest.org/en/latest/goodpractices.html#integrating-with-setuptools-python-setup-py-test-pytest-runner
2016-08-21 12:00:32 +01:00
Cosimo Lupo
70b64c251e .travis.yml: disable Travis git --depth option
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.
2016-08-20 18:00:29 +01:00