Commit graph

1353 commits

Author SHA1 Message Date
ijl 2bb0d05a30 Drop support for python2 2019-03-29 12:37:26 +00:00
konstin bc7776e61f
Merge pull request #382 from Alisa-lisa/patch-1
Remove unrequired encoding header
2019-03-28 13:20:43 +01:00
konstin 7086141f85 Fix version in docs 2019-03-28 12:58:19 +01:00
konstin 8acc5289cc Revert 176e0981c1 2019-03-28 12:54:26 +01:00
konstin 176e0981c1 (cargo-release) start next development iteration 0.6.1-alpha.0 2019-03-28 12:52:34 +01:00
konstin 3f27647b1b Bump to 0.6.0 2019-03-28 12:49:59 +01:00
konstin b2561e9db1 Better error message when python is not on PATH for #414
Example for the new error message:
                                                                                       
   Compiling pyo3 v0.6.0-alpha.4 (/home/konsti/pyo3)
error: failed to run custom build command for `pyo3 v0.6.0-alpha.4 (/home/konsti/pyo3)`
process didn't exit successfully: `/home/konsti/pyo3/target/debug/build/pyo3-bcc3e702033ec884/build-script-build` (exit code: 1)
--- stderr
Error: "Could not find any interpreter at python, are you sure you have python installed on your PATH?"
2019-03-26 12:47:35 +01:00
konstin b2a5c705a2
Merge pull request #418 from PyO3/fmt_on_travis
Try fixing cargo fmt on travis ci
2019-03-26 12:30:02 +01:00
konstin 20481e8324 Whitelist clippy error 2019-03-24 17:33:08 +01:00
konstin 97189a16b9 Try fixing cargo fmt on travis ci 2019-03-24 17:19:15 +01:00
konstin f75f742c58 Fix CStr usages 2019-03-20 21:48:41 +01:00
konstin 0d346458c3
Merge pull request #408 from milesgranger/update-docs-into-dict
Update tests & docs with IntoPyDict::into_py_dict(py)
2019-03-20 21:07:54 +01:00
Miles Granger 711155d7ad Update tests & docs with IntoPyDict::into_py_dict(py) 2019-03-20 20:04:00 +01:00
konstin 421b26bcef
Merge pull request #406 from Alexander-N/changelog
Fix markdown links in CHANGELOG.md
2019-03-19 21:03:10 +01:00
Alexander Niederbühl 484ceb43e1 Fix markdown links in CHANGELOG.md 2019-03-19 18:42:17 +01:00
konstin 7cdd253593
Merge pull request #397 from Alexander-N/coverage
Reactivate coverage on CI
2019-03-18 15:11:51 +01:00
konstin 3e475b052b
Merge pull request #388 from kngwyu/pyany
Rename PyObjectRef with PyAny
2019-03-18 11:04:29 +01:00
konstin 09883574e5 Remove cstr macro 2019-03-18 11:01:55 +01:00
Alexander Niederbühl 5cc43b8d86 Reactivate coverage on CI
Also exclude tests from coverage report and test py3-derive-backend in
travis.
2019-03-18 01:05:08 +01:00
konstin 59a9d4fd9f
Merge branch 'master' into pyany 2019-03-18 01:00:26 +01:00
konstin d8dc3a17bd
Merge pull request #403 from Alexander-N/__dict__
Complete __dict__ support
2019-03-18 00:51:48 +01:00
Alexander Niederbühl 5a3466d1d7 Fix compilation for Python 2 2019-03-17 21:06:26 +01:00
Alexander Niederbühl dd8e6211d5 Update CHANGELOG.md 2019-03-17 20:39:51 +01:00
Alexander Niederbühl dc581fa746 Update guide 2019-03-17 20:39:38 +01:00
Alexander Niederbühl f79f84a31b Complete __dict__ support
Add `__dict__` slot to tp_getset of type_object. See
https://bugs.python.org/issue16272 for why this is necessary.
2019-03-17 20:31:05 +01:00
konstin 88924a3122
Merge pull request #401 from PyO3/backend_reuse
Backend reuse
2019-03-16 11:56:34 +01:00
konstin a56147fa52 Replace ::pyo3:: with only pyo3:: in the proc macros
This makes reexporting the macro output possible in the 2018 edition
2019-03-16 11:42:10 +01:00
konstin 6540a374af Export pyo3_derive_backend::pyimpl::impl_methods 2019-03-16 11:38:05 +01:00
Yuji Kanagawa 5a421fcdc7
Merge pull request #399 from s3bk/master
Remove T: ToPyObject requirement for the IntoPyObject impl of Vec<T> #398
2019-03-16 11:01:37 +09:00
Sebastian Köln 7564f76051 fix #398 2019-03-15 15:54:14 +01:00
konstin 6c58766243
Merge pull request #396 from Alexander-N/typos
Fix some typos in user guide
2019-03-13 22:23:55 +01:00
Alexander Niederbühl 548f3f91cf Replace Pyo3 with PyO3 in README.md 2019-03-13 17:36:16 +01:00
Alexander Niederbühl 438bd7f616 Refer to PyO3 in a consistent way 2019-03-13 17:26:48 +01:00
Alexander Niederbühl 310e597693 Fix some typos in user guide 2019-03-13 17:14:17 +01:00
konstin a9e78b98d1 Lower travis log level 2019-03-11 12:19:46 +01:00
konstin b60b3395f7
Create pull_request_template.md 2019-03-10 22:16:49 +01:00
konstin 25f14d37a5
Merge pull request #390 from Alexander-N/fix-flaky-tests
Fix flaky tests
2019-03-10 21:39:19 +01:00
konstin ba5bc0f1e6
Merge pull request #387 from Alexander-N/test-examples
Test examples in user guide with travis
2019-03-10 21:37:01 +01:00
konstin 21f2804c3b
Merge pull request #389 from PyO3/c_api_and_stacktrace
Add notes about the c api and stacktraces to the guide
2019-03-10 21:32:21 +01:00
Alexander Niederbühl 3a6e0a2724 Remove use of INCREF and cnt 2019-03-10 02:49:51 +01:00
Alexander Niederbühl e2e4733b82 Test examples in user guide with travis
Test could only be activated for Python 3.5 and some tests had to be
ignored, see #381 and #387.
2019-03-09 23:54:28 +01:00
konstin d63fac8d1c
Merge pull request #391 from Alexander-N/typos
Fix some typos and grammar in class.md
2019-03-08 00:31:23 +01:00
Alexander Niederbühl ae93e71a30 Fix some typos and grammar in class.md 2019-03-07 22:21:16 +01:00
Alexander Niederbühl f68ae0cfae Fix flaky tests
The tests were flaky because they took references to the empty tuple
which is a singleton. Use a unique object for each test to make them
independent.
2019-03-06 00:12:30 +01:00
kngwyu 2db0612b6e Add a note about PyAny in CHANGELOG 2019-03-05 13:15:34 +09:00
konstin 41ffe1ecdd Add notes about the c api and stacktraces to the guide 2019-03-04 23:18:54 +01:00
kngwyu f3fe0dfdd5 Move From<PyRef> impl to any.rs 2019-03-04 21:49:43 +09:00
kngwyu c6a6634d8a Move PyAny to any.rs 2019-03-04 14:23:40 +09:00
kngwyu 874d8a0835 Rename PyObjectRef with PyAny 2019-03-04 13:50:43 +09:00
Yuji Kanagawa 0866dd8989
Merge pull request #383 from Alexander-N/fix-examples
Fix PyRef example
2019-03-04 12:47:10 +09:00