Commit graph

46 commits

Author SHA1 Message Date
Cosimo Lupo
569a7af7d9 mute some cython and setuptools warnings 2021-12-01 12:09:31 +00:00
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
8aefba84b5 turn pyclipper into a package, export dynamic '__version__'
the _version.py file is autogenerated at build time from git tag using setuptools_scm; the pyclipper.__version__ variable exports that, as it's common in python packaging. This allows clients to import pyclipper and check its __version__ without needing to query the package metadata (which may be missing when pyclipper is embedded in native applications).
2021-06-25 17:08:44 +01:00
pgajdos
a81510bebd remove unittest2 from test dependencies 2020-07-16 12:18:43 +02:00
Cosimo Lupo
2bf1b6729e
Add cython to setup_requires and pyproject.toml 2019-11-29 17:19:33 +00: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
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
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
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
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
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
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
48ea7443ca Bump version 2016-08-17 13:58:09 +02:00
Gregor Ratajc
bb76d0f84d Bump version number 2015-11-23 21:48:31 +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
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 R
8756bfd51c Bump version 2015-03-26 00:14:34 +01:00
Gregor R
6c53355a4b Bump version 2015-03-25 18:36:33 +01:00
Gregor R
912e128601 Bump version 2015-03-25 16:58:36 +01:00
Gregor R
9e55d93aa6 Bump version 2015-03-20 13:57:21 +01:00
Gregor R
364ab50b0e Enable use_lines preprocessor directive by default 2015-03-20 13:51:08 +01:00
Gregor R
3212392376 Small formatting fix 2015-03-18 17:28:56 +01:00
Gregor R
deff76bc33 Changed format (md->rst) of the readme 2015-03-18 17:26:23 +01:00
Gregor R
090d21133e Bump version 2015-03-18 16:14:34 +01:00
Gregor R
71fa9cf244 Bump version 2015-03-18 16:09:23 +01:00
Gregor R
f2da931f9d Bump version 2015-03-18 16:04:36 +01:00
Gregor R
d45ff30ffa Added OSI Approved classifier for Boost Software License 2015-03-18 16:02:09 +01:00
Gregor R
ce14e6c2da Bump version number 2015-02-25 13:15:27 +01:00
Gregor R
c202b5e6a6 Bump version number 2015-02-25 12:53:32 +01:00
Gregor R
05e0423389 Removed long_description, it's replaced by README 2015-02-25 12:50:22 +01:00
Gregor R
3e33f91a8f Added condition to build with or without Cython 2015-02-25 10:48:43 +01:00
Gregor R
8cbfa948da Fix cython extensions 2015-02-24 22:21:52 +01:00
Gregor R
dcdcc7c8bc Merged README.md and long_description 2015-02-24 21:09:17 +01:00
Gregor R
7a3b5ec93e Cythonize fix 2015-02-24 19:11:46 +01:00
Gregor R
6c3bb3b53e Added publish and tag commands 2015-02-24 14:00:37 +01:00
Gregor R
037d9a8e80 Added PyTest command source 2015-02-24 13:35:21 +01:00
Gregor R
01b0ee4193 Migrated to setuptools 2015-02-24 13:32:41 +01:00
Gregor R
c656242bad Added test command for setup script 2015-02-24 12:49:42 +01:00
Gregor R
3f7df3d6f0 Updated setup script to properly install pyclipper without pyclipper/pyclipper submodule 2015-02-24 12:37:25 +01:00
Gregor R
2a41c7f03e Updated setup.py file for new file organization 2015-02-23 10:19:50 +01:00
Lukas Treyer
0dd07fb478 Initial commit July 24th 2013 2013-07-24 12:20:18 +02:00