Commit Graph

873 Commits

Author SHA1 Message Date
konstin d789eb658f
Merge pull request #174 from jalexvig/master
Updated README for macs
2018-06-05 11:32:43 +02:00
Alex Vig cf5423b5dc Updated README for macs
Made the instructions around generating a Python package more clear
(particularly for macs).

closes #172
2018-06-02 19:01:40 -04:00
konstin 2d57b3bef7 Link to the new guides; Fixes #165 2018-06-01 15:03:04 +02:00
konstin 727a051548 Fetch tags in travis 2018-05-30 16:24:57 +02:00
konstin 6448a016b1 Use the latest tag across all branches for the guide 2018-05-30 15:25:13 +02:00
konstin b4be009e38 Deploy different versions of the guide to github pages 2018-05-30 15:07:25 +02:00
konstin c9db4f0da2 Some cleanup and housekeeping 2018-05-30 15:03:31 +02:00
konstin d94054db3f
Merge pull request #169 from kngwyu/vec_to_dict
impl IntoPyDictPointer for IntoIterator<Item=(K, V)>
2018-05-30 14:37:21 +02:00
kngwyu 4795a35143 impl IntoPyDictPointer for IntoIterator<Item=(K, V)>
this commit has 2 purposes:
1. Avoid duplication of implementation(for BTreeMap & HashMap)
2. Enable conversion from Vec<(K, V)> to PyDict
2018-05-30 16:26:23 +09:00
konstin a6b91a5320
Merge pull request #166 from PyO3/env_rebuild
Rerun the build script if any relevant env var changed
2018-05-29 16:36:20 +02:00
konstin 6aeeebf5a2
Merge pull request #167 from rumpelsepp/master
Bump regex crate version to 1.0
2018-05-29 16:32:20 +02:00
Stefan Tatschner 44b494c921 Bump regex crate version to 1.0 2018-05-28 21:22:28 +02:00
konstin a6b92c0707 Rerun the build script if any relevant env var changed 2018-05-26 12:04:58 +02:00
konstin 40ad4b8b5a Make travis a little less verbose 2018-05-23 16:38:44 +02:00
konstin 051519d0f9
Merge pull request #164 from kmp1/master
Added a function to PyModule to load a module from a string of Python
2018-05-21 16:40:34 +02:00
Kevin Phillips 7412eda4b0 Changed the import for the test_module to include ToPyObject in order to make travis CI pass 2018-05-21 16:34:44 +02:00
Kevin Phillips 9544adaf1d Marked from_code on PyModule to only work with Python 3. It could work with Python 2 if you call, for example, Py_CompileStringFlags and pass std::prt::null_mut() as the last argument and when calling PyImport_ExecCodeModuleEx passing mutable pointers for the first and last arguments. I also added a test for this to test_module.rs 2018-05-21 16:03:21 +02:00
Kevin Phillips 1b1121e558 Added a function to PyModule to load a module from a string of Python 2018-05-21 16:03:20 +02:00
konstin b3c92f2be7 Make the travis scripts more verbose 2018-05-21 15:25:09 +02:00
konstin c42b71bc55 Fix python2 2018-05-19 17:42:40 +02:00
konstin 314a4a2b3e Some more documentation work 2018-05-19 17:27:26 +02:00
konstin 319afe1f76 Small documentation improvements 2018-05-17 23:59:38 +02:00
Martin Larralde 0b75334b70 Update `book.toml` to new `mdbook` format [ci skip] 2018-05-17 11:57:09 +02:00
Martin Larralde 8ba801ccaf
Merge pull request #160 from PyO3/syn13
Update to `syn 0.13` and `quote 0.5`
2018-05-17 11:30:05 +02:00
konstin 19ba972964 Add issue template
I hope you don't mind the emoji
2018-05-14 23:23:20 +02:00
konstin 63441a4b94 Fix ObjectProtocol usage 2018-05-14 22:44:30 +02:00
Martin Larralde 01b7b3feeb Fix link to organisation page in `Cargo.toml` manifests [ci skip] 2018-05-14 18:53:37 +02:00
Martin Larralde 31ff8356b6 Add some additional test cases to `test_methods` 2018-05-14 18:47:13 +02:00
Martin Larralde 8e4e446e32 Fix warning about unused import when adding a function to module 2018-05-14 18:13:07 +02:00
Martin Larralde 2607fe9fdc Fix unused `add_function` result in `#[pyfn]` expansion 2018-05-14 16:50:08 +02:00
Martin Larralde 37eff44308 Store argument names as `Ident` instead of `String` in `args::Argument` 2018-05-14 16:29:38 +02:00
Martin Larralde df89720e23 Remove uneeded imports from `py_class.rs` 2018-05-14 13:56:58 +02:00
Martin Larralde 580e50f727 Make `build_py_proto` and `build_py_methods` only accept `ImplItem` 2018-05-14 13:34:36 +02:00
Martin Larralde 758d30abbd Allow unused imports in `#[proto]` 2018-05-14 13:17:58 +02:00
Martin Larralde 269ddbdd59 Use `&T` instead of `&Box<T>` where applicable 2018-05-14 13:04:29 +02:00
Martin Larralde d5efc40445 Fix module init function name in `py2_init` 2018-05-14 03:19:29 +02:00
Martin Larralde d1ec82d4a7 Remove `attr_with_parentheses` from `utils.rs` 2018-05-14 01:56:25 +02:00
Martin Larralde ecadcef0c9 Fix `items` in `pyo3-derive-backed::args` test module 2018-05-14 01:49:12 +02:00
Martin Larralde 4414d684e4 Tidy up `pyo3cls/src/lib.rs` 2018-05-14 01:14:50 +02:00
Martin Larralde d1d0dddb48 Improve error messages in `pyo3cls` 2018-05-14 01:01:23 +02:00
Martin Larralde d07c538779 Port `pyo3cls` to latest `syn` 2018-05-14 00:49:15 +02:00
Martin Larralde bf550c3c1f Make `process_functions_...` only accept `ItemFn` 2018-05-13 21:33:59 +02:00
Martin Larralde b43b481980 Merge #154 and #155 changed with `syn13` 2018-05-13 21:24:40 +02:00
konstin 103bde7db1 Improve build script 2018-05-13 15:55:13 +02:00
konstin a6944b6485 Bump minimum rust version
There were some significant changes in last weeks
2018-05-13 15:19:21 +02:00
konstin 46b9bd6a9f
Merge pull request #155 from PyO3/pyobject_macros
Refactor and Export Pyobject_* macros
2018-05-13 14:54:57 +02:00
konstin 5717463daf
Merge pull request #154 from konstin/capybara
Relax return types and add functions
2018-05-12 20:43:40 +02:00
Martin Larralde 416a7fd8d3
Export PyUnicode in Python3 as well 2018-05-08 12:54:21 +02:00
konstin d445d60e0a Export PyUnicode to fix #141 2018-05-08 10:42:17 +02:00
konstin cb5bae2c90 Export pyobejct_* macros
This is required for interaction with other native python extensions, e.g. numpy

Fixes #153
2018-05-07 23:47:23 +02:00