Commit graph

214 commits

Author SHA1 Message Date
Cosimo Lupo
7e8ce86d6f MANIFEST.in: include pyclipper.cpp; exclude 'dev', CI config files and git metadata 2016-08-20 17:18:07 +01:00
Cosimo Lupo
efbe9d84f3 setup.py: use custom sdist command to run cythonize on *.pyx sources to ensure *.cpp is up-to-date 2016-08-20 17:12:11 +01:00
Cosimo Lupo
902d705b90 setup.py: remove 'tag' command as version is generated from the tag, not viceversa 2016-08-20 17:02:23 +01:00
Cosimo Lupo
cd8ee1e243 use setuptools_scm to generate package version and list of files to include in sdist
setuptools_scm is a setuptools plugin that uses git metadata to manage python package versions

https://github.com/pypa/setuptools_scm

It also replaces the use of MANIFEST.in, by including in the soruce distribution all the
files that are under version control (using `git ls-files`).

An extra plugin 'setuptools_scm_git_archive' also adds support for git archives,
e.g the .zip files automatically generated on Github.

https://github.com/Changaco/setuptools_scm_git_archive

For example, one could do: `pip install https://github.com/greginvm/pyclipper/archive/1.0.4.zip`

Note that installing from git archives currently works only for tagged commits, because
of limitations of git archive format itself.

However, for non-tagged commits one can still install from the git repo:
`pip install git+https://github.com/greginvm/pyclipper`
2016-08-20 16:05:47 +01:00
Gregor Ratajc
a74af7326a Bump version 2016-08-18 23:18:33 +02:00
Gregor Ratajc
0065c72cb8 Squashed commit of the following:
commit 3b61c229d56f2a74ca94c8f07c25f98b986704f5
Author: Gregor Ratajc <gregor.ratajc@zemanta.com>
Date:   Thu Aug 18 22:51:25 2016 +0200

    Update deploy section

commit 1a55a02bee82f455918114fd157fe2b624cb5141
Author: Gregor Ratajc <gregor.ratajc@zemanta.com>
Date:   Thu Aug 18 22:50:43 2016 +0200

    Update deploy section

commit 708f4943d4415c35b744704997f85f24b0aa2f04
Author: Gregor Ratajc <gregor.ratajc@zemanta.com>
Date:   Thu Aug 18 22:12:03 2016 +0200

    Update authors
2016-08-18 22:52:21 +02:00
Gregor Ratajc
c253a57006 Update badges 2016-08-18 21:51:01 +02:00
Gregor Ratajc
368eee7cd4 Adds build badges 2016-08-18 21:41:37 +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
48ea7443ca Bump version 2016-08-17 13:58:09 +02:00
Gregor Ratajc
e71e2d1392 Update authors 2016-08-17 13:57:52 +02:00
Gregor Ratajc
fba4d86d5a Long lines cleanup 2016-08-17 13:39:44 +02:00
Gregor Ratajc
37a404dcb9 Merge pull request #6 from jamiebull1/number_vs_collection
Number vs collection
2016-08-17 13:31:51 +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
Jamie Bull
665e45f68d Invert check for type in scale_from_clipper and scale_to_clipper
Check if the object is a collection first using __len__, otherwise
assume the object is numeric.
2016-08-17 11:26:37 +02:00
Gregor Ratajc
541e9084fb Added offset example 2015-11-24 21:28:08 +01:00
Gregor Ratajc
bb76d0f84d Bump version number 2015-11-23 21:48:31 +01:00
Gregor Ratajc
032aee8304 Fixes formatting 2015-11-23 21:36:25 +01:00
Gregor Ratajc
a185cb43f4 Updates readme 2015-11-23 21:34:51 +01:00
Gregor Ratajc
36da1a0106 Bumps version 2015-11-23 21:10:45 +01:00
Gregor Ratajc
0c6c5b31f5 Replaces unittest with unittest2 2015-11-23 21:10:33 +01:00
Gregor Ratajc
05048b821f Updates readme 2015-11-23 21:10:21 +01:00
Gregor Ratajc
b018e5f17f Merge pull request #3 from Feuermurmel/inexact-coordinates
Replace SCALING_FACTOR with dedicated scaling functions.
2015-11-23 21:08:59 +01:00
Michael Schwarz
35e33bb37c Added scale_{from,to}_clipper(). 2015-11-03 21:56:43 +01:00
Michael Schwarz
3c095a065b Updated readme regarding scaling. 2015-11-03 21:56:27 +01:00
Michael Schwarz
5896bd9d35 Removed SCALING_FACTOR support.
This resolves #2.
2015-11-03 19:43:02 +01:00
Michael Schwarz
6efebc1592 Warn about deprecated SCALING_FACTOR. 2015-11-03 19:43:02 +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
Michael Schwarz
6da1a4cfb2 Only run tests in 'tests' directory.
Having e.g. Cython installed in a virtualenv inside the project root make pytest also find the Cython test cases. These take a lot of time and also fail without some additional libraries being installed.
2015-10-02 01:37:12 +02:00
Gregor Ratajc
81a0d99eb3 Merge pull request #1 from JesseCrocker/bugfix/readme-subj-typo
Fix typo in readme, s/PT_SUBJ/PT_SUBJECT/
2015-08-31 14:20:01 +02:00
Jesse Crocker
b953805613 Fix typo in readme, s/PT_SUBJ/PT_SUBJECT/ 2015-08-25 13:30:01 -06:00
Gregor Ratajc
114468c7c0 Update README.rst 2015-06-04 22:25:10 +02:00
greginvm
258a6564a1 Added PyPI link 2015-05-10 15:19:57 +02:00
greginvm
cbdd5809f3 Add license 2015-03-27 12:27:31 +01:00
Gregor R
8756bfd51c Bump version 2015-03-26 00:14:34 +01:00
Gregor R
5d72fd6efa Update changelog 2015-03-26 00:14:21 +01:00
Gregor R
add6a9c319 Refactor tests 2015-03-26 00:08:24 +01:00
Gregor R
70ba19d195 Fix description of SCALING_FACTOR in README 2015-03-25 22:44:29 +01:00
Gregor R
79dde966fb Use scale_factor for relevant properties 2015-03-25 22:39:38 +01:00
Gregor R
6c53355a4b Bump version 2015-03-25 18:36:33 +01:00
Gregor R
e256f19269 Don't include empty paths in PyPolyNode filter 2015-03-25 18:35:35 +01:00
Gregor R
f0c9624f34 Update changelog 2015-03-25 17:01:44 +01:00
Gregor R
a5cd3efef1 Update changelog 2015-03-25 17:00:55 +01:00
Gregor R
912e128601 Bump version 2015-03-25 16:58:36 +01:00
Gregor R
eff2754123 Fix setting IsHole property of PyPolyNode 2015-03-25 16:55:58 +01:00
Gregor R
9e55d93aa6 Bump version 2015-03-20 13:57:21 +01:00
Gregor R
9fa7a42f00 Update changelog 2015-03-20 13:55:57 +01:00