Commit Graph

3767 Commits

Author SHA1 Message Date
Paul Ganssle c3fee87dee
Add custom sdist command to modify Cargo.toml
This enables PEP 517 builds from an sdist, and should fix `tox` builds
using `pip >= 19.0`. This does not fix pip installing the directory;
pinning to `pip < 19.0` is still the best strategy for that.
2019-04-25 07:06:26 -04:00
Yuji Kanagawa 7e8616de33
Merge pull request #464 from Alexander-N/fixes
Small fixes for tests
2019-04-25 12:59:28 +09:00
Alexander Niederbühl 1d92c24db8 Add pypy.md to doctests
At the moment there are no code snippets, but all files in the guide
should be included.
2019-04-24 22:44:47 +02:00
Alexander Niederbühl e912900926 Add mistakenly ignored test again 2019-04-24 22:41:59 +02:00
Yuji Kanagawa 60cd0d09c4
Merge pull request #419 from kngwyu/pyclass-regression
Allow slf: PyRef<Self>/PyRefMut<Self> in pymethods
2019-04-24 14:10:28 +09:00
Yuji Kanagawa 5cc6b55c71
Merge pull request #455 from Alexander-N/clippy
Fix some clippy lints
2019-04-24 12:39:21 +09:00
konstin 661f472660
Merge pull request #458 from Alexander-N/doctest
Fixup for Contributing.md
2019-04-23 22:20:54 +02:00
Alexander Niederbühl e59f973ba2 Fixup for Contributing.md 2019-04-23 22:14:27 +02:00
konstin ffb66a33b7
Merge pull request #454 from Alexander-N/doctest
Use doc-comment to test guide and readme
2019-04-23 22:12:15 +02:00
Alexander Niederbühl faa3feda3f Merge branch 'master' into doctest 2019-04-23 21:58:09 +02:00
Alexander Niederbühl 6d87934ce0 Fix some clippy lints 2019-04-23 21:44:40 +02:00
konstin 7149a1fecb
Bump to 0.7.0-alpha.1 (#457) 2019-04-23 18:55:35 +02:00
kngwyu c7d6c48e68 Add changelog entry about `slf: PyRef` 2019-04-23 23:16:09 +09:00
kngwyu a7736dd51b Add test of slf: PyRefMut<_> 2019-04-23 23:16:09 +09:00
kngwyu 09bf9bbf4a Allow slf: PyRef<Self> by replacing Self 2019-04-23 23:16:09 +09:00
kngwyu 5a2b021fda Remove FromPyObject from PyRef
It's invalid
2019-04-23 23:16:09 +09:00
kngwyu b2e01066f0 Introduce FromPyPointer for slf: PyRef/PyRefMut 2019-04-23 23:16:09 +09:00
kngwyu 515c7beac0 Allow slf: Py<Self>/PyRef<Self>/PyRefMut<Self> in pymethods 2019-04-23 23:16:08 +09:00
Omer BenAmram f8bf258602 Support rust extensions for PyPy via cpyext (#393)
* wip

* removed stuff

* removed another change

* implemented minimum amouth of ifdefs to make pypy3 hello world to compile

* implemented minimum amount of ifdefs to make pypy3 hello world to compile

* hacking on build.rs

* compiler is happy!

* few todos remain

* extracted build logic to seperate module

* added pypy test

* finally fixed pypy structs

* removed some todos

* test should now be machine independent

* fixed all pypy3 symbols

* added pypy feature

* removed `is_pypy`

* added pypy2 declerations also

* fix for cpython2

* improved libpypy detection

* added all pypy2 macros

* fixed errneous type

* more fixes

* fix python2 string macros

* modsupport symbol

* fix

* fixed and added many symbols

* fixes

* remove dup

* remove mac-specific config

* fix all name mangling macros

* unite imports

* missing symbol

* fix pybool

* implemented another missing symbol

* it works

* fix merge conflict

* uncomment non default features

* cargo.toml

* Cargo fmt

* small merge fixes

* use newer build version

* whoops

* fix build script

* more build hacks

* some random hiccups

* small fixes

* it builds!

* it builds and runs

* revert everything in FFI2

* revert changes to ffi2

* check python3 for pypy

* tiny fix

* revert ffi2 for real

* revert weird formatting changes

* bring back missing feature

* tiny error

* fix py3.7 issue

* add pypy3.5 6.0 to travis

* remove dbg!

* another tiny fix

* removed some useless annotations, and fixed inlines annotations

* removed `pretty_assertions`

* removed pypy feature from cargo.toml

* fix for Py_CompileStringFlags

* tox runs word_count!

* __dict__ changes are not supported for PyPy

* fix 3.7 and copy comment

* fix test script 😳

* transfer ownership of strings to cpython when possible

* remove cstr! macro

* added missing nuls

* as_bytes() -> b’’ string

* symbol removed by mistake

* properly shim pypy date time API, some tests are passing!

* extension_module tests now not crashing! (some still skipped)

* maybe travis has new pypy version?

* small error on windows (build script)

* fix conditional compilation

* try to make tests run on travis..

* invert condition

* added pytest-faulthandler to facilitate debugging

* correctly name dir

* use full paths

* say —yes to conda

* fix

* syntax error

* change PATH

* fixed a terrible bug with PyTypeObjects in PyPy

* fix PyTypeObject defs

* re-enabled tests!

* all tests are passing!

* make the fix ad-hoc for now

* removed build module

* revert changes that cause an additional GC bug

* prevented buggy test from failing pypy

* removed unused comment

* don’t run coverage on pypy

* removed some erroneous symbols from function calls which are actually macros

* restore py37 pyunicode missing def

* use only `link_name` in PyPy specific declarations

* only setup PyPy when testing against PyPy

* annotation that was eaten during merge

* remove change to  comment by mistake + unnecessary changes to cargo.toml

* xfail dates test only on pypy

* changed comment to be a little more helpful

* cleaned up some warnings

* Update src/ffi3/ceval.rs

Co-Authored-By: omerbenamram <omerbenamram@gmail.com>

* @konstin PR notes

* rustfmt

* some documentation

* if configured via env var only, default to cpython

* remove extra unsafe

* refer users to guide for pypy

* Update guide/src/pypy.md

Co-Authored-By: omerbenamram <omerbenamram@gmail.com>

* Update guide/src/pypy.md

Co-Authored-By: omerbenamram <omerbenamram@gmail.com>

* @konstin applied patch

* check that pypy at least build

* search explicitly for libpypy

* added note about some known unsupported features

* use ld_version

* export PYTHON_SYS_EXECUTABLE to `cargo build` test

* inverted if

* always link pypy dynamically

* remove unused imports

* Apply @kngwyu’s suggestion

* fix tox configuration

* try conda virtualenv

* try to simply not install python at all inside pypy environment

* setup pypy before using “python"

* use system_site_packages

* revert change to .travis

* moved cpyext datetime documentation to module level, and revised it.

* Update src/ffi/datetime.rs

Co-Authored-By: omerbenamram <omerbenamram@gmail.com>

* rustfmt

* Update src/ffi/datetime.rs

Co-Authored-By: omerbenamram <omerbenamram@gmail.com>

* kept only notes that are relevant to users.

* invert if

* use bash and not sh
2019-04-23 13:18:42 +02:00
Yuji Kanagawa fb8d3605d1
Merge pull request #449 from birkenfeld/unwrapped_prop_types
Allow omitting PyResult wrapping in property get/set methods
2019-04-22 12:00:42 +09:00
Alexander Niederbühl f1b0288d3c Remove docmatic and several workarounds for the doctests 2019-04-19 22:47:21 +02:00
Alexander Niederbühl 5858823e83 Test readme and user guide with doc-comment
Also rename some files for consistency.
2019-04-19 22:38:11 +02:00
Yuji Kanagawa 77f0974daf
Merge pull request #453 from pganssle/fix_coverage_comment
Fix inaccurate comment
2019-04-19 13:29:42 +09:00
konstin f62f384ecd
Merge pull request #448 from PyO3/fix_442
Properly scope libc to fix #442
2019-04-18 18:46:47 +02:00
konstin ff8a31a8e0
Merge pull request #451 from birkenfeld/test-contributing
Add advice for test and test-doc to Contributing.md
2019-04-18 18:30:07 +02:00
konstin da25a17b30
Merge pull request #444 from birkenfeld/set_new
Make Py(Frozen)Set::new return PyResult<&Py(Frozen)Set>
2019-04-18 18:12:50 +02:00
Paul Ganssle 821ce0e375
Fix inaccurate comment
The previous commit was merged somewhat prematurely, and fixed the
coverage on Travis by limiting `kcov` to a single process.

The previous commit also pins to a specific branch, which was not
necessary to fix this issue, but is a good idea anyway to prevent
bad commits on kcov's master branch from breaking PyO3's build.
2019-04-18 12:12:17 -04:00
konstin 95d8dda37c
Merge pull request #452 from pganssle/fix_coverage
WIP: Fix code coverage
2019-04-18 18:09:28 +02:00
Paul Ganssle c4c7997c7b
Pin kcov to the v36 release 2019-04-18 11:57:21 -04:00
Georg Brandl 3dc4af0522 Add advice for test and test-doc to Contributing.md 2019-04-18 08:09:42 +02:00
Georg Brandl 117f6eb47d Allow omitting PyResult wrapping in property get/set methods
fixes #443
2019-04-17 22:29:12 +02:00
konstin 6d80ee0679 Properly scope libc to fix #442
Apparently we can't add a test for that because the test crates have libc
in scope
2019-04-17 19:08:55 +02:00
Yuji Kanagawa dc2fc80f4a
Merge pull request #441 from serpilliere/fix_tipo
Fix typo
2019-04-17 23:43:33 +09:00
Fabrice Desclaux 73e4ed723f Fix typo 2019-04-17 14:22:16 +02:00
Georg Brandl 527da127f3 Make Py(Frozen)Set::new return PyResult<&Py(Frozen)Set>
fixes #437
2019-04-17 12:17:58 +02:00
Yuji Kanagawa f5c7b92c2d
Merge pull request #434 from ijl/pyfloat-macro
PyFloat_AS_DOUBLE()
2019-04-17 11:21:12 +09:00
ijl afb82ee875 PyFloat_AS_DOUBLE() 2019-04-16 12:53:03 +00:00
Martin Larralde 60efd5b9c2
Merge pull request #432 from althonos/master
Fix documentation-related bugs
2019-04-14 19:05:59 -07:00
Martin Larralde edd2fba2d6 Add tests for quotes in class/method documentation 2019-04-15 01:29:13 +02:00
Yuji Kanagawa 85489ebd8e
Merge pull request #433 from Hywan/patch-1
doc(types) Fix a typo in `PySlice`
2019-04-14 13:09:29 +09:00
Ivan Enderlin a78465f8b1
doc(types) Fix a typo in `PySlice`
Thanks for the awesome project!
2019-04-13 20:59:31 -07:00
Martin Larralde e6ca87d5dc Update `CHANGELOG.md` with latest bugfixes 2019-04-14 01:56:11 +02:00
Martin Larralde 51be6a60fe Run `cargo fmt` on `pyo3-derive-backend` and `tests` 2019-04-14 01:50:00 +02:00
Martin Larralde 4e3d828181 Remove uneeded `syn::parse_str` from `pyo3-derive-backend` 2019-04-14 01:47:19 +02:00
Martin Larralde 3f4f068c7f Ensure `#[getter]` doc is exposed as the `__doc__` of the descriptor 2019-04-14 00:23:59 +02:00
Martin Larralde 569a7e9e95 Add more tests for `#[pymethods]` docstrings 2019-04-13 23:25:45 +02:00
Yuji Kanagawa 6673c440fb
Merge pull request #431 from PyO3/konstin-patch-1
Fix pyo3 version in the readme for #430
2019-04-12 12:27:05 +09:00
konstin f5b4713010
Fix pyo3 version in the readme for #430 2019-04-11 13:19:02 +02:00
Yuji Kanagawa 4458c09fbf
Merge pull request #429 from scOwez/patch-1
Added capitalization & wording changes to README.md
2019-04-09 19:16:44 +09:00
Owez 303dc22831
Update CHANGELOG.md 2019-04-09 11:02:19 +01:00