Commit graph

45 commits

Author SHA1 Message Date
Tobias Ahrens
7a4970605e Disable the use of ninja for windows builds
Aperantly github added ninja to all of there runners now. This
causes the windows build to fail. This is expected because we
add the architecture as a compiler arg which is not known to
ninja. Even with this the build fails.

This commit disables ninja on windows for now. Once we fixed the
underlying issue with ninja and windows we can reenable it.
2023-10-23 10:23:16 -07:00
Jacob Alexander
313d0d4c6d Prepare for v2.0.0b1 release
- Update CHANGELOG.md
- Update to bundled capnproto-1.0.1
  * Compiles with capnproto-0.8.0 and higher
- *Breaking Change* Remove allow_cancellation (see
  https://capnproto.org/news/2023-07-28-capnproto-1.0.html)
  * This is tricky to handle for older versions of capnproto. Instead of
    dealing with lots of complication, removing it entirely.
- Fix some documentation after the build backend support was added
- Update tox.ini to support 3.8 to 3.12
- Update cibuildwheel to 2.16.1
  * Adds Python 3.12 supports and implicitly deprecates EOL 3.7 (though it's
    still built)
2023-10-03 12:29:48 -07:00
Matt Sachtler
01c4469e08
Add Python 3.11 to Github Actions builds (#306)
* Add Python3.11 to the Github Actions, in the manylinux2014 build as well as the
packaging test.

I added a second image, x86_64, to the manylinux2014 build matrix - the i686
build didn't immediately pass, so I left it out.

* Move the bundled capnproto library forward to 0.10.3.

* Remove the 2010 build entirely, and update the 2014 build to include i686.
2023-01-26 16:28:21 -08:00
Jacob Alexander
56ef658e46 Update bundled bundled capnp to 0.8.1 due to CVE-2022-46149
- This only affects pycapnp if you're using bundled capnp (otherwise
  just update libcapnp)
  * pypi packages are affected
2022-11-30 10:18:06 -08:00
Jacob Alexander
6e7fffd7de
Applying black formatting
- Fixing flake8 configuration to agree with black
- Adding black validation check to github actions
2021-10-01 11:12:21 -07:00
Jacob Alexander
a4ef16e831
Fixing flake8 linting errors
- Enabling builds to fail on simple lint failures now
2020-11-20 23:38:13 -08:00
Jacob Alexander
49fd4854d8 Minor code cleanup
- Reducing linter errors
- Removing old Python 2-only code (__future__ print)
2020-06-08 23:51:07 -07:00
Jacob Alexander
255119b838 Updating to capnproto v0.8.0
- Includes some test stabilization
- Fixes manylinux2010 build issues (linker flag order due to old gcc)
- More rigorous python setup.py clean
- Requires capnproto v0.8.0 or greater
- Including system libcapnp include path for import (e.g. import
  stream_capnp)
- Bundle libcapnp .capnp files when not using system libcapnp
- Removing more distutils usage. Now using pkg-config to determine the
  system version of libcapnp (mainly for Linux, but should work on macOS
  with brew)
- Removed dead code

Resolves issues #215 #216 #217
Lots of fixes for Issue #218 (all sorts of retry methods needed for
GitHub Actions)
2020-06-08 11:49:17 -07:00
Jacob Alexander
6cd971e74f
Adding manylinux2010 github action
- Validates that the manylinux2010 environment can build pycapnp
- Handle lib and lib64 cases
- Has patch for aligned_alloc symbol (not available prior to glibc 2.16)
https://github.com/capnproto/capnproto/issues/743
- Fixes #197
- Should be ready to prepare a v1.0.0b1 release
2019-12-21 00:13:04 -08:00
Jacob Alexander
fc75e4083d
Fixing remaining flake8 lint warnings 2019-12-11 22:44:44 -08:00
Jacob Alexander
964f514180
Code gardening
- Removing unused code sections
2019-10-17 00:54:21 -07:00
Jacob Alexander
8062e6f401 Adding Windows 32-bit and 64-bit builds
- Basic tests are working
- May need some adjustments to get all tests working
- Cleaned up bundling to take Python arch into account when building
with multiple architectures
2019-10-17 00:36:46 -07:00
Jacob Alexander
063522d308
Adding Windows compilation support
- Automatically determining build arch from running Python shell
  * Should work across all platforms
2019-10-15 18:39:47 -07:00
Jacob Alexander
67d5276936
Defaulting to built-in capnproto
- Adding code to detect if bundled capnproto is already built
2019-10-15 09:35:55 -07:00
Jacob Alexander
7789ebbf96
Fixing flake8 linting errors 2019-10-15 01:08:11 -07:00
Jacob Alexander
f2651facde
Updating capnproto bundling code to use CMake and ninja
- Must faster
- Also showing output by default (easier to diagnose errors)
  * ninja has minimal verbosity (unless there are errors)
2019-10-15 00:42:34 -07:00
Yann Diorcet
722579d671
Guess include and lib directory using capnp executable 2019-09-30 00:58:10 -07:00
Yann Diorcet
a7efe4e3f8
Fix setup.py for MSVC 2019-09-30 00:55:16 -07:00
Jacob Alexander
b3021e4f6b
Fixing flake8 warnings and errors
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude benchmark

Excluding the benchmark directory (due to protobuf generated files)
Also removing some Python2 specific code
2019-09-27 00:15:13 -07:00
Jacob Alexander
db4e567c6b
Upgrading to capnproto-0.7.0
- Needed for asyncio support
2019-09-26 21:42:55 -07:00
Jacob Alexander
de22f7eb97
Fixing compilation errors with capnproto-7.0.0 2019-09-16 21:33:56 -07:00
Yuval Katsnelson
74618de3ef Update bundled capnp to 0.6.1 2017-12-06 10:49:09 +02:00
Ben Moran
1221ec75a9 Update bundled capnproto to 0.6.0 2017-06-08 12:19:52 +01:00
Jason Paryani
341b536baf Bump bundled capnp version to v0.5.3.1 2017-04-18 21:42:50 -07:00
Matt Mullins
82a53013bd customize_compiler is recommended by distutils doc
On Unix platforms, environment variables such as CFLAGS, LDFLAGS are not
honored if this is not called.
2016-08-20 15:00:05 -07:00
Jason Paryani
aabd61301c Fix travis builds
Stop running `make check` for capnproto. It has some networking test
problem with travis.
2016-03-04 11:04:58 -08:00
Jason Paryani
5d69eda752 Add --libcapnp-url to allow installing arbitrary libcapnp versions 2016-02-17 17:24:27 -08:00
Jason Paryani
338b587413 Update bundled libcapnp to v0.5.2 2015-06-16 11:49:40 -07:00
Jason Paryani
aa7d530319 Make libcapnp version easier to change in setup_travis.sh 2015-03-10 11:22:50 -07:00
Jason Paryani
02907bb50c Fix unintended changing of CXXFLAGS after building bundled libcapnp 2015-03-10 00:33:48 -07:00
Jason Paryani
55ca927ab1 Update travis build to use libcapnp v0.5.2 2015-03-10 00:33:36 -07:00
Jason Paryani
2027bac434 Update bundled libcapnp to v0.5.1.2 2015-03-05 12:52:06 -08:00
Jason Paryani
6c84789799 Update bundled libcapnp to v0.5.1.1 2015-03-02 14:11:34 -08:00
Jason Paryani
09875ac4a5 Bump version for bundled C++ libcapnp to v0.5.1 2015-02-01 22:17:32 -08:00
Omer Katz
26610adbec Bumped capnproto to 0.5.1. 2015-02-02 07:21:15 +02:00
Jason Paryani
358d9c8930 Bump C++ Cap'n Proto version for travis builds 2014-12-15 12:45:23 -08:00
Jason Paryani
2ee4498318 Merge branch 'feature/v0.5' into develop
Conflicts:
	capnp/helpers/helpers.pxd
	capnp/helpers/rpcHelper.h
	capnp/lib/capnp.pxd
	capnp/lib/capnp.pyx
	requirements.txt
	setup.py
	test/test_struct.py
2014-12-15 12:20:26 -08:00
Jason Paryani
5cde525501 Change setup_travis.sh to build current release 2014-12-12 12:33:12 -08:00
Jason Paryani
026740509f Remove set -u from setup_travis.sh 2014-12-12 12:31:30 -08:00
Jason Paryani
53d21f787b Add O2 and DNDEBUG flags to libcapnp build 2014-12-12 12:20:13 -08:00
Jason Paryani
ce25cbfd64 Add set -euxo pipefail to travis setup script 2014-12-11 23:17:54 -08:00
Jason Paryani
c4f558a9b4 Add -fPIC flag to libcapnp build 2014-12-11 22:25:47 -08:00
Jason Paryani
4a26499586 Fix problem with detect libcapnp function 2014-12-11 22:17:37 -08:00
Jason Paryani
3411581d89 Change travis to build with and without libcapnp pre-installed 2014-12-11 22:11:25 -08:00
Jason Paryani
4c0d4ec290 Add automatic build of libcapnp if it's not detected 2014-12-11 22:04:34 -08:00