Christoph Reiter
642e51edea
travis: try building with a newer macos image
...
setuptools fails somehow, maybe this helps
2019-10-24 22:02:21 +02:00
Christoph Reiter
d34f41efd4
travis: test with Python 3.8
2019-10-22 20:13:57 +02:00
Christoph Reiter
9ff2fe0722
travis-ci: try working around pip installing the wrong attrs version
2019-10-22 19:37:27 +02:00
Christoph Reiter
46f02404b2
travis-ci: udpate to pypy6
2019-03-23 18:51:33 +01:00
Christoph Reiter
ac6c5d3c66
travis: handle homebrew libffi brokenness
2019-03-09 20:33:06 +01:00
Christoph Reiter
f069beaa8e
travis: install glib on macos, somehow some deps are missing
2019-03-09 17:54:20 +01:00
Christoph Reiter
c6821da67d
ci: don't fail on codecov errors, it's flaky atm
2018-11-07 20:55:40 +01:00
Christoph Reiter
c89635f4f0
travis: switch to the xcode9.4 image, homebrew Python is broken on the older one
2018-11-02 09:45:03 +01:00
Christoph Reiter
a10af0bb9f
travis-ci: add Python 3.7, drop 3.3
2018-07-07 16:33:50 +02:00
Christoph Reiter
2131602d7e
setup.py: default to setuptools
2018-04-15 11:10:21 +02:00
Christoph Reiter
1786acfe70
travis-ci: add 3.7-dev
2018-04-15 10:39:13 +02:00
Christoph Reiter
b893898c8d
setup.py: always use -fno-strict-aliasing
...
pypy3 also doesn't set it by default, might as well force it always now that
we can check if the compiler supports it.
2018-04-12 09:49:41 +02:00
Christoph Reiter
8637672c8a
setup.py: add detection of supported compiler warning options
...
This allows us to get rid of the PYCAIRO_WARN env var and always
use warning options.
This is a copy of what I added on pygobject.
2018-03-16 19:18:25 +01:00
Christoph Reiter
520c3e006e
travis: adjust for homebrew package name changes
2018-03-02 20:40:41 +01:00
Christoph Reiter
fa667febd4
Add PEP 484 annotation stubs. See #99
2018-02-25 17:07:45 +01:00
Christoph Reiter
ff4c33f0fc
travis-ci: try newer pypy releases
2018-02-07 16:50:36 +01:00
Christoph Reiter
fa0707e565
Move header into the package and add a get_include() function. See #92
...
Pycairo installs .pc files which work quite well where the default
prefix is used, like with distro packaging etc. In virtualenvs
the pkg-config look up path needs to be set manually, and in pip
wheels are involved, where we had to disable installing .pc files
as they can get reused for a different prefix.
To make it easier for other python modules to use the C API introduce
a new function get_include() (similar ot what numpy has) which returns
the include path that needs to be passed to the compiler.
Since we can't really get the old header install path from the module
(one could walk up the tree and look for matching files, but that's ugly)
move the header file into the package itself, so that the path can be
dervived from the package path.
To prevent code from breaking which hardcodes the old include path
install a header to the old location which includes the new header
location.
2018-01-31 21:53:59 +01:00
Christoph Reiter
1ed20501f8
travis-ci: add pypy3
2018-01-30 15:38:04 +01:00
Christoph Reiter
947f0055cf
Add basic PyPy support. See #90
...
Use PyObject_GetAttrString() for accessing exception args as that works
on PyPy too.
Set tp_hash=PyObject_HashNotImplemented for some types, as PyPy doesn't
make them unhashable if tp_richcompare is set:
https://bitbucket.org/pypy/pypy/issues/2740
Skip some tests due to:
https://bitbucket.org/pypy/pypy/issues/2741
https://bitbucket.org/pypy/pypy/issues/2742
Skip test_image_surface_create_for_data_array(), as it hangs.
And test_fspaths(). Needs investigating..
2018-01-30 10:42:40 +01:00
Christoph Reiter
5888659ca3
travis: grrr^2
2017-10-15 22:10:55 +02:00
Christoph Reiter
1cf4c83eb6
grrr
2017-10-15 21:37:45 +02:00
Christoph Reiter
b406aa2c0b
travis-ci: fix?
2017-10-15 21:25:18 +02:00
Christoph Reiter
3a50517bad
travis-ci: use a newer osx image, maybe that's less broken
2017-10-15 20:57:55 +02:00
Christoph Reiter
9bc5fb7ba1
Try using more warning flags when testing and fail for warnings under msvc
...
We can't check if the compiler supports the flags, so enable
them only when PYCAIRO_WARN is defined in the environment.
2017-09-16 17:06:40 +02:00
Christoph Reiter
78a2b33e95
travis: install pygame in the venv
2017-08-14 14:45:31 +02:00
Christoph Reiter
0ac93f5eb1
travis: install pygame
2017-08-13 08:28:44 +02:00
Christoph Reiter
fcd7aaed1b
ci: install hypothesis
2017-08-10 14:37:29 +02:00
Christoph Reiter
f9cd77744f
Add codecov support
2017-08-10 14:15:02 +02:00
Christoph Reiter
b906f9c324
travis: fix?
2017-08-08 20:29:03 +02:00
Christoph Reiter
044eece7fa
travis: install zlib on macOS
...
It doesn't get pulled in for some reason, maybe this helps
2017-08-08 16:48:23 +02:00
Christoph Reiter
976dc3a2c3
travis: work around setuptools upgrade bug
2017-08-07 15:47:10 +02:00
Christoph Reiter
99cd1667b8
travis,appveyor: also test setup.py install
2017-07-26 10:14:38 +02:00
Christoph Reiter
e549639cfe
travis: try to fix the osx/py2 run
...
It seems to pick up the system Python now, try using python2 instead.
2017-07-18 20:10:05 +02:00
Christoph Reiter
63a3dfcab3
travis: try running tests under osx with homebrew
2017-05-07 12:15:11 +02:00
Christoph Reiter
e1bc3a92ce
travis: build documentation and fail on warnings
2017-05-02 23:12:20 +02:00
Christoph Reiter
29511786dc
travis: test with flake8
2017-05-01 16:24:19 +02:00
Christoph Reiter
9ca8846490
setup.py: Alwasy use -Wno-strict-aliasing under Python 2
...
Some Python 2 envs enable strict aliasing for build_ext. While we could fix
most cases, internal macros like Py_RETURN_TRUE warn too. Just disable the
warnings for Python 2.
2017-04-20 13:12:16 +02:00
Christoph Reiter
1579d7cb0b
Use c90 and enforce it on travis. Fixes #5
2017-04-14 08:54:06 +02:00
Christoph Reiter
037ba8abc2
Add basic travis-ci configuration
2017-04-09 18:01:14 +02:00